Unusual Platformer
@Stage\n\n@Player\n\nwhen [up arrow v] key pressed\nif <touching (level v)?> then\n    repeat (12)\n        change y by (16)\n    end\nend\n\nif <touching (level v)?> then\n    repeat (12)\n        change y by (16)\n    end\nend\n\nwhen [w v] key pressed\nif <touching (level v)?> then\n    repeat (12)\n        change y by (16)\n    end\nend\n\nwhen I receive [touched spikes v]\ngo to x: (-207) y: (-150)\n\nwhen [space v] key pressed\nforever\n    if <touching color (#0015ff)?> then\n        repeat (12)\n            change y by (30)\n        end\n    end\nend\n\nwhen [space v] key pressed\ngo to x: (-207) y: (-150)\n\nwhen [space v] key pressed\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (Touched Spikes v)\n        change [deaths v] by (1)\n    end\nend\n\nwhen [space v] key pressed\nforever\n    if <not <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>>> then\n        set [x velocity v] to [0]\n    end\nend\n\nwhen [r v] key pressed\ngo to x: (-213) y: (-143)\n\nwhen [space v] key pressed\ngo to x: (-3) y: (0)\nset [x velocity v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-1)\n    end\n    change x by ((X Velocity) * (.8))\n    if <not <touching (level v)?>> then\n        change y by (-8)\n    end\n    if <touching color (#fbff00)?> then\n        broadcast (Next Level v)\n        change [level v] by (1)\n        set [x velocity v] to [0]\n        go to x: (-101) y: (-178)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\ngo to x: (-214) y: (-143)\nshow\n\nwhen flag clicked\nset [deaths v] to [0]\n\nwhen flag clicked\nset [level 13 bonuses v] to [0]\nforever\n    if <touching color (#00ff47)?> then\n        change [level 13 bonuses v] by (1)\n        if <(Level 13 bonuses) = [1]> then\n            broadcast (Show bonuses v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bonus1 v)?> then\n        broadcast (get bonus 1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bonus2 v)?> then\n        change [deaths v] by (-1)\n    end\nend\n\nwhen I receive [get bonus 1 v]\nchange [deaths v] by (-1)\n\nwhen flag clicked\nforever\n    if <touching (bonus3 v)?> then\n        change [deaths v] by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bonus2 v)?> then\n        broadcast (Get bonus 2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bonus3 v)?> then\n        broadcast (Get bonus 3 v)\n    end\nend\n\nwhen [space v] key pressed\nset [deaths v] to [0]\n\nwhen flag clicked\nset [deaths v] to [0]\n\nwhen flag clicked\n\nwhen flag clicked\nif <(Level) = [1]> then\n    set [deaths v] to [0]\n    set [level v] to [0]\n    show variable [deaths v]\n    show variable [level v]\nend\nif <(Level) = [31]> then\n    set [deaths v] to [0]\n    set [level v] to [0]\n    hide variable [level v]\n    hide variable [deaths v]\nend\n\n@level\n\nwhen [space v] key pressed\nshow\n\nwhen flag clicked\nhide\nswitch costume to (level 1 v)\nset [level v] to [1]\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\n\nwhen [s v] key pressed\nnext costume\nchange [level v] by (1)\n\nwhen [h v] key pressed\nsay [you know it is sticking out...........If you still cant figure it out press t] for (10) seconds\n\nwhen [t v] key pressed\nsay [You can touch it when its sticking out] for (10) seconds\n\n@Menu\n\nwhen [space v] key pressed\nbroadcast (Start Game v)\nhide\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [intro is finished v]\nshow\n\nwhen I receive [show menu v]\nshow\n\n@Bonus1\n\nwhen flag clicked\nhide\n\nwhen I receive [show bonuses v]\nshow\n\nwhen I receive [get bonus 1 v]\nhide\n\nwhen [space v] key pressed\nhide\n\n@bonus2\n\nwhen I receive [show bonuses v]\nshow\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nhide\n\nwhen I receive [get bonus 2 v]\nhide\n\n@bonus3\n\nwhen flag clicked\nhide\n\nwhen I receive [show bonuses v]\nshow\n\nwhen [space v] key pressed\nhide\n\nwhen I receive [get bonus 3 v]\nhide\n\n@intro\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [Video Game 1 v] until done\nend\n\nwhen flag clicked\nshow\n\nwhen flag clicked\ngo to x: (-3) y: (7)\nswitch costume to (costume1 v)\npoint in direction (90)\nrepeat (24)\n    wait (0.05) seconds\n    turn right (15) degrees\nend\nrepeat (11)\n    next costume\nend\nswitch backdrop to (backdrop2 v)\nrepeat (24)\n    wait (0.05) seconds\n    turn right (15) degrees\nend\nswitch backdrop to (hufflepuff crest v)\nrepeat (2)\n    glide (1) secs to x: (-1) y: (-75)\n    glide (1) secs to x: (-91) y: (19)\n    glide (1) secs to x: (-1) y: (133)\n    glide (1) secs to x: (97) y: (19)\nend\nglide (1) secs to x: (-3) y: (7)\nswitch backdrop to (backdrop3 v)\nbroadcast (Intro is finished v)\nhide\n\nwhen this sprite clicked\nhide\nbroadcast (Show Menu v)\n\n@thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (12) y: (6)\nend\n\n@=)\n\ndefine Movement (movement v.1)\nforever\n    if <(movement v.1) = [1]> then\n        start sound [Low Whoosh v]\n        show\n        go to [front v] layer\n        glide (1) secs to x: (106) y: (150)\n        repeat (2)\n            point in direction (90)\n            wait (0.1) seconds\n            turn right (4) degrees\n            wait (0.1) seconds\n            turn left (6) degrees\n            wait (0.1) seconds\n            turn right (8) degrees\n            wait (0.1) seconds\n        end\n        set [ghost v] effect to (999999)\n        wait (1) seconds\n        clear graphic effects\n        go to [back v] layer\n        hide\n    end\n    if <(movement v.1) = [2]> then\n        go to x: (106) y: (206)\n        point in direction (90)\n        go to [front v] layer\n        show\n        start sound [Low Whoosh v]\n        glide (1) secs to x: (106) y: (150)\n        repeat (2)\n            point in direction (90)\n            wait (0.1) seconds\n            turn right (4) degrees\n            wait (0.1) seconds\n            turn left (6) degrees\n            wait (0.1) seconds\n            turn right (8) degrees\n            wait (0.1) seconds\n        end\n        point in direction (90)\n        set [ghost v] effect to (999)\n        wait (1) seconds\n        go to [back v] layer\n        hide\n    end\n    wait (30) seconds\nend\n\nwhen flag clicked\nclear graphic effects\ngo to x: (106) y: (206)\npoint in direction (90)\nhide\nwait (pick random (15) to (25)) seconds\nMovement [1]\nwait (pick random (15) to (25)) seconds\nMovement [2]\n\n
-------------------------------Controls----------------------------------\nW or up arrow to jump.\nA or left arrow to go left.\nD or right arrow to go up. \nR to restart the level.\nS to skip the level\nthere is somewhat of wall jumping just walk into the wall and jump\nClick the intro to skip it\n----------------------------------------------------------------------------\nComment how many deaths you got.