Trickery Platformer

Instructions: Don't click the green flag.\nWASD or arrow keys won't work.\nYou won't find the rest of the instructions in the game.\n\n\nHello, this is green!\nPlease give it a love and fav!\nI will NOT make a part 2, because I don't think I could come up with enough levels. I’ll add levels I think of to this one.

@Stage\n\n@Player\n\nwhen I start as a clone\nswitch costume to (black v)\nrepeat (7)\n    change [ghost v] effect by (7)\n    change size by (-3)\nend\ndelete this clone\n\ndefine reset\nif <<<mouse down?> and <(mouse x) > (x position)>> or <<key (d v) pressed?> or <key (right arrow v) pressed?>>> then\n    change [x v] by (2)\n    switch costume to (right v)\nend\nif <<<mouse down?> and <(mouse x) < (x position)>> or <<key (a v) pressed?> or <key (left arrow v) pressed?>>> then\n    switch costume to (left v)\n    change [x v] by (-2)\nend\nset [x v] to ((x) * (0.8))\nchange x by (round (x))\nif <touching (level v)?> then\n    change x by (round ((x) * (-1)))\nend\nchange [y v] by (-1)\nchange y by (y)\nif <touching (level v)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-1)\nif <<touching (level v)?> and <<<mouse down?> and <(mouse y) > (y position)>> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>>> then\n    set [y v] to [15]\nend\nchange y by (1)\nif <(x position) > [233]> then\n    go to x: (-211) y: (-53)\n    broadcast (next level v)\n    change [level v] by (1)\nend\nif <<<touching (danger v)?> or <touching (lava v)?>> or <(y position) < [-180]>> then\n    change [ghost v] effect by (50)\n    go to x: (-206) y: (-30)\n    wait (0.05) seconds\n    set [ghost v] effect to (0)\nend\nif <touching (bounce v)?> then\n    set [y v] to [5]\n    set [x v] to [0]\nend\n\nwhen I receive [reset v]\nset [music v] to [1]\nforever\n    reset\n    if <(music) = [2]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nshow\ngo to x: (-154) y: (0)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    switch costume to (player v)\n    go to [front v] layer\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nset [music v] to [1]\n\nwhen I receive [skip v]\ngo to x: (-184) y: (-74)\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I receive [start v]\nforever\n    reset\n    if <(music) = [2]> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\n\n@Level\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\ngo to x: (7) y: (-8)\n\n@Danger\n\nwhen flag clicked\nhide\nwait until <(level) = [9]>\nswitch costume to (costume1 v)\nshow\nwait until <(level) = [10]>\nnext costume\nwait until <(level) = [11]>\nhide\nwait until <(level) = [13]>\nshow\nnext costume\nwait until <(level) = [14]>\nnext costume\nwait until <(level) = [15]>\nnext costume\nwait until <(level) = [16]>\nnext costume\nwait until <(level) = [17]>\nnext costume\nwait until <(level) = [18]>\nnext costume\nwait until <(level) = [19]>\nhide\nwait until <(level) = [20]>\nshow\nnext costume\nwait until <(level) = [21]>\nnext costume\nwait until <(level) = [22]>\nnext costume\nwait until <(level) = [23]>\nhide\nwait until <(level) = [24]>\nshow\nnext costume\nwait until <(level) = [25]>\nhide\nwait until <(level) = [26]>\nshow\nnext costume\nwait until <(level) = [27]>\nnext costume\nwait until <(level) = [28]>\nhide\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwait until <(level) = [29]>\n\n@Text\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nhide\nwait until <(level) = [2]>\nswitch costume to (costume1 v)\nshow\n\n@Sprite1\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\nwait until <(level) = [6]>\nhide\nwait until <(level) = [16]>\nswitch costume to (costume6 v)\nshow\nwait until <(level) = [19]>\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\ngo to x: (36) y: (28)\nswitch costume to (costume1 v)\nwait until <(level) = [8]>\nshow\nwait until <(level) = [9]>\nhide\nwait until <(level) = [14]>\nshow\nnext costume\nwait until <(level) = [15]>\nhide\nwait until <(level) = [24]>\nshow\nnext costume\nwait until <(level) = [25]>\nnext costume\nwait until <(level) = [26]>\nhide\n\nwait until <(level) = [26]>\n\n@Bounce\n\nwhen flag clicked\nhide\nset size to (60) %\ngo to x: (-9) y: (-21)\nwait until <(level) = [10]>\nshow\nwait until <(level) = [11]>\nhide\ngo to x: (-92) y: (-25)\nwait until <(level) = [14]>\nshow\nwait until <(level) = [15]>\nhide\n\nwait until <(level) = [11]>\n\n@Sprite3\n\nwhen flag clicked\nhide\nwait until <(level) = [28]>\nforever\n    set [x v] to (pick random (-104) to (253))\n    create clone of (_myself_ v)\n    wait (.05) seconds\nend\n\nwhen I start as a clone\nshow\ngo to x: (X) y: (271)\nglide (1.6) secs to x: (X) y: (10)\ndelete this clone\n\nwhen I start as a clone\nset [color v] effect to (pick random (1) to (100))\n\n@Sprite5\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (.5) seconds\nforever\n    go [forward v] (999) layers\nend\n\nwhen flag clicked\nforever\n    play sound [Vexento - Pixel Party v] until done\nend\n\n@Sprite4\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (1) seconds\nforever\n    go to [front v] layer\nend\n\n@Sprite6\n\nwhen flag clicked\n\nshow\ngo to x: (36) y: (28)\nwait (3) seconds\nforever\n    go to [front v] layer\nend\n\n