Diamond A Platformer
@Stage\n\n@Player\n\nwhen flag clicked\nswitch costume to (right v)\nset size to (100) %\nshow\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-216) y: (-50)\nforever\n    change [yv v] by (-1)\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-.8)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (.8)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        change x by ((Xv) * (-1))\n                        change y by (-5)\n                        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\n                            end\n                            set [yv v] to [9]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching (ground v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n            set [yv v] to [13.5]\n        end\n    end\n    change y by (1)\n    if <(x position) > [237]> then\n        broadcast (Next v)\n        go to x: (-237) y: (-43)\n        change [level v] by (1)\n    end\n    if <touching (danger v)?> then\n        go to x: (-237) y: (-43)\n        if <(Mute) = [1]> then\n            start sound [Pew v]\n        end\n    end\n    if <<touching (bounce2 v)?> or <<touching (bounce3 v)?> or <<touching (bounce4 v)?> or <touching (bounce v)?>>>> then\n        if <touching color (#f7ff00)?> then\n            set [yv v] to [20]\n        end\n    end\n    if <[-175] > (y position)> then\n        go to x: (-237) y: (-50)\n        if <(Mute) = [1]> then\n            start sound [Pew v]\n        end\n    end\nend\n\nbroadcast (Next v)\n\nplay sound [Pew v] until done\n\n\nplay sound [Pew v] until done\n\nwhen flag clicked\n\nstart sound [Chill v]\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (right2 v)\nset size to (100) %\nshow\nrepeat (10)\n    change [ghost v] effect by (15)\n    change size by (-10)\nend\nwait (1) seconds\ndelete this clone\n\nhide\n\nmove (10) steps\n\n@Ground\n\nwhen flag clicked\nshow\nset [level v] to [1]\nswitch costume to (1 v)\nforever\n\nwhen I receive [next v]\nnext costume\n\n@Danger\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\ngo to [back v] layer\ngo [forward v] (1) layers\nforever\n\n@BOunce\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\nforever\n    hide\n    if <(LEvel) = [7]> then\n        go to x: (-135) y: (-45)\n        show\n        switch costume to (1 v)\n    end\n    if <touching (player v)?> then\n        bounce\n    end\n    if <(LEvel) = [9]> then\n        go to x: (-150) y: (-45)\n        show\n        switch costume to (1 v)\n    end\n    if <touching (player v)?> then\n        bounce\n    end\n    if <(LEvel) = [10]> then\n        go to x: (-135) y: (-45)\n        show\n        switch costume to (1 v)\n    end\n    if <touching (player v)?> then\n        bounce\n    end\n    if <(LEvel) = [11]> then\n        go to x: (-135) y: (-45)\n        show\n        switch costume to (1 v)\n        create clone of (_myself_ v)\n        set [clones v] to [1]\n    end\n    if <touching (player v)?> then\n        bounce\n    end\n    if <(LEvel) = [12]> then\n        go to x: (90) y: (-160)\n        show\n        switch costume to (1 v)\n    end\n    if <touching (player v)?> then\n        bounce\n    end\n    if <(LEvel) = [13]> then\n        go to x: (0) y: (-115)\n        show\n        switch costume to (1 v)\n    end\n    if <touching (player v)?> then\n        bounce\n    end\nend\n\nwhen I start as a clone\nshow\ngo to x: (-135) y: (-45)\nchange x by ((clones) * (110))\nswitch costume to (1 v)\nif <(clones) < [3]> then\n    change [clones v] by (1)\n    create clone of (_myself_ v)\nend\nrepeat until <(LEvel) = [12]>\n    if <touching (player v)?> then\n        bounce\n    end\nend\ndelete this clone\n\nforever\n\nwait (9999) seconds\n\n\n\nwhen flag clicked\nforever\n    show variable [level v]\n    hide variable [level v]\n    if <(LEvel) = [13]> then\n        hide variable [level v]\n    end\nend\n\nstart sound [Low Boing v]\n\nwhen flag clicked\nforever\n    if <(Mute) = [1]> then\n        set volume to (100) %\n    end\n    if <(Mute) = [0]> then\n        set volume to (0) %\n        stop all sounds\n    end\nend\n\nwait (1) seconds\n\ndefine bounce\nswitch costume to (2 v)\nstart sound [Low Boing v]\nwait (.2) seconds\nswitch costume to (1 v)\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nset [level v] to [0]\n\nstop all sounds\n\nglide (1) secs to (random position v)\n\nswitch costume to (costume3 v)\nhide variable [level v]\ngo to [front v] layer\nshow\n\n@Cloud effects\n\nwhen flag clicked\nshow\ngo to [back v] layer\nshow\nswitch costume to (costume9 v)\nforever\n    go to x: (280) y: (50)\n    set [ghost v] effect to (25)\n    repeat (840)\n        change x by (-1)\n    end\n    repeat (3)\n        change [ghost v] effect by (25)\n        wait (.1) seconds\n    end\nend\n\nhide\n\nshow\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (3 v)\nshow\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nhide variable [mute v]\nset [mute v] to [1]\nforever\n    if <(costume [number v]) = [1]> then\n        set [mute v] to [0]\n        set volume to (0) %\n        stop all sounds\n    end\n    if <(costume [name v]) = [3]> then\n        set volume to (100) %\n        set [mute v] to [1]\n        stop all sounds\n        set volume to (100) %\n        start sound [Vexento - Tevo \(Original Mix\) v]\n        wait until <not <(costume [name v]) = [3]>>\n    end\nend\n\nchange [mute v] by (1)\n\n
  --------------------------- CONTROLS---------------------------\n\n-WASD or ARROW KEYS. \n-12 levels\n-Please Love and Favorite\n-This took me a very long time so please make it worth the work\n