Paper Platformer

Instructions: ----------------------------Iɴsᴛʀᴜᴄᴛɪᴏɴs--------------------------\nAs ɴᴏʀᴍᴀʟ, ᴀʀʀᴏᴡ ᴋᴇʏs ᴏʀ WASD. Oғ ᴡʜᴀᴛ ɪᴍ ᴀssᴜʀᴇ ɪs ᴛʜᴀᴛ ᴛʜᴇʀᴇ ᴀʀᴇ ɴᴏ ʙᴜɢs, ᴀɴᴅ ɪғ ғᴏᴜɴᴅ ᴘʟᴇᴀsᴇ ɪɴғᴏʀᴍ ᴍᴇ.\nAɴᴅ ᴛʜɪs ɢᴀᴍᴇ ɪs ᴏ̨ᴜɪᴛᴇ ᴇᴀsʏ, ʙᴜᴛ sᴏᴍᴇ ʟᴇᴠᴇʟs ᴀʀᴇ ᴀɴɴᴏʏɪɴɢ.  ɪғ ʏᴏᴜ'ᴠᴇ ᴊᴜsᴛ ʀᴇᴀᴅ ᴛʜɪs, ɪ sᴜɢɢᴇsᴛ ʏᴏᴜ ᴛʀʏ ᴘʟᴀʏɪɴɢ, ᴀɴᴅ ɪᴍ ɴᴏᴛ ᴏɴᴇ ᴏғ ᴛʜᴏsᴇ ᴘᴇᴏᴘʟᴇ ᴛʜᴀᴛ ᴀsᴋ ғᴏʀ ʟᴏᴠᴇs ᴀɴᴅ ғᴀᴠs ᴄᴏɴsᴛᴀɴᴛʟʏ, ʙᴜᴛ ɪғ ʏᴏᴜ ʟɪᴋᴇᴅ ᴛʜᴇ ɢᴀᴍᴇ, ᴘʟᴇᴀsᴇ ʟᴏᴠᴇ ᴀɴᴅ ғᴀv

@Stage\n\nwhen I receive [end v]\nforever\n    switch backdrop to (backdrop1 v)\n    wait (10) seconds\n    stop [all v]\nend\n\nif <key (n v) pressed?> then\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [introdone v]\nwait (2.5) seconds\nswitch backdrop to (paper bacground v)\nforever\n    play sound [hello v] until done\nend\n\nwhen I receive [soundintro v]\nplay sound [\[MP3DOWNLOAD v] until done\n\nwait (1) seconds\n\n@LevelSprite\n\nwhen I receive [level numbers v]\nnext costume\n\nwhen I receive [end v]\nhide\n\nwhen I receive [end v]\n\nwhen I receive [introdone v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [startgame v]\nshow\nswitch costume to (costume1 v)\nforever\n    go to x: (-199) y: (168)\nend\n\n@Spikes\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [startgame v]\ngo to [front v] layer\nshow\nswitch costume to (01 v)\n\nwhen I receive [levelup v]\nnext costume\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwhen I receive [introdone v]\nswitch costume to (costume2 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-12)\nend\nswitch costume to (costume2 v)\nset size to (100) %\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (12)\nend\nswitch costume to (costume1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-12)\nend\nswitch costume to (costume1 v)\nset size to (100) %\nwait (2) seconds\nbroadcast (play v)\nrepeat (10)\n    change [ghost v] effect by (12)\nend\nhide\n\n@Ground\n\nwhen I receive [end v]\nswitch backdrop to (end thumbnail v)\nbroadcast (Time set WR v)\n\nwhen flag clicked\nhide variable [deaths v]\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen flag clicked\nforever\n    set volume to (0) %\nend\n\nwhen I receive [introdone v]\nforever\n    if <(Level) = [30]> then\n        switch backdrop to (paper bacground v)\n        show\n        hide variable [deaths v]\n        broadcast (end v)\n    end\nend\n\nwhen I receive [levelup v]\nbroadcast (Level numbers v)\nnext costume\n\nwhen I receive [startgame v]\nshow\nswitch costume to (01 v)\n\n@Player\n\nwhen [space v] key pressed\nnext costume\n\nwhen flag clicked\nswitch backdrop to (paper bacground v)\nset [deaths v] to [0]\nset [level v] to [1]\nforever\n\nwhen I receive [end v]\nforever\n    hide\nend\n\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [startgame v]\ngo to [front v] layer\nswitch costume to (costume2 v)\nset [ghost v] effect to (0)\nshow\ngo to x: (-180) y: (-50)\nset [level v] to [1]\nset [x v] to [0]\nset [y v] to [0]\npoint in direction (90)\nforever\n    change [y v] by (-1)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x v] by (-0.8)\n        switch costume to (left v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (right v)\n        change [x v] by (0.8)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-5]\n            else\n                set [x v] to [5]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((0) - (y))\n        set [y v] to [1]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (ground v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <(y position) > [180]> then\n        set [y v] to [0]\n    end\n    if <<key (r v) pressed?> or <touching (spikes v)?>> then\n        go to x: (-180) y: (-50)\n        broadcast (dead v)\n        change [deaths v] by (1)\n    end\n    if <(x position) > [226]> then\n        go to x: (-180) y: (-50)\n        broadcast (levelup v)\n        change [level v] by (1)\n    end\n    if <(Level) = [27]> then\n        broadcast (end v)\n        stop [other scripts in sprite v]\n        hide variable [deaths v]\n    end\nend\n\n@Bottom S\n\nwhen I receive [returninitialstate v]\nrepeat (17)\n    next costume\nend\n\nwhen flag clicked\nbroadcast (soundintro v)\nswitch costume to (17 v)\nshow\ngo to [front v] layer\nrepeat (33)\n    next costume\nend\nwait (1) seconds\nbroadcast (returninitialstate v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nwait (1) seconds\nbroadcast (introdone v)\n\n@Top S\n\nwhen flag clicked\nswitch costume to (17 v)\nshow\ngo to [front v] layer\nrepeat (33)\n    next costume\nend\nwait (1) seconds\nbroadcast (returninitialstate v)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nwhen I receive [returninitialstate v]\nrepeat (17)\n    next costume\nend\n\n@LoadingANMTN\n\nwhen I receive [play v]\nshow\nswitch costume to (1st load v)\nwait (0.7) seconds\nnext costume\nwait (0.4) seconds\nnext costume\nwait (0.3) seconds\nnext costume\nwait (0.6) seconds\nnext costume\nwait (0.9) seconds\nnext costume\nwait (0.6) seconds\nnext costume\nwait (0.8) seconds\nnext costume\nwait (0.7) seconds\nhide\nbroadcast (startgame v)\n\nwhen flag clicked\nhide\n\n@Ground2\n\nwhen I receive [end v]\nswitch backdrop to (end thumbnail v)\nbroadcast (Time set WR v)\n\nwhen flag clicked\nhide variable [deaths v]\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen flag clicked\nforever\n    set volume to (0) %\nend\n\nwhen I receive [introdone v]\nforever\n    if <(Level) = [30]> then\n        switch backdrop to (paper bacground v)\n        show\n        hide variable [deaths v]\n        broadcast (end v)\n    end\nend\n\nwhen I receive [levelup v]\nbroadcast (Level numbers v)\nnext costume\n\nwhen flag clicked\nset [ghost v] effect to (75)\n\nwhen I receive [startgame v]\nshow\nswitch costume to (01 v)\n\n