| Powers | Platformer |

Instructions:                    --------| Powers | Platformer |--------\nWelcome to | Powers | Platformer | where you collect and use power-ups to help in your meaningless journey!!\n\n                        --------| Instructions |--------\n-WASD/Arrow Keys to Move Around\n-Touchscreen for Mobile-Users \n-Touch Power-Ups and press their respective buttons to activate them (More info in the Powers Section)\n-Don't Touch Spikes (Well, Duh)\n-Don't Fall into holes\n-S or Skip Button to Skip\n-R or Reset Button to Reset\n-Click on the Trail Button to turn the trail on and off\n\n                             --------| Powers |--------\n-Jump Boost: Press Up Arrow | W Key | Touchscreen while touching the Jump Boost to Jump High\n-Reverse Jump Boost: Press Down Arrow | S Key | Touchscreen while touching the reverse jump boost to cancel changed gravity and to go back to the ground\n-Speed Boost: Press Right Key | D Key | Touchscreen while touching the Speed Boost to Move Fast in one direction (Right)\n-Gravity Boost: Changes Gravity, Press Up Arrow | W Key | Touchscreen to activate it (When you touch the Edge | Finish a level, your gravity resets. (NOTE: You can't jump when having the Gravity boost Activated)\n-Invincibility Boost (Star Icon): Gives you invincibility for 10 seconds | Can't die when falling or touching spikes

@Stage\n\nwhen I receive [next lvl v]\nset [transition v] to [1]\nset [invincibility v] to [0]\nclear graphic effects\nrepeat (5)\n    change [brightness v] effect by (20)\nend\nwait (0.05) seconds\nrepeat (20)\n    change [brightness v] effect by (-5)\nend\nset [transition v] to [0]\nif <(level) = [3]> then\n    broadcast (show v) and wait\n    broadcast (lvl3 v)\nelse\n    if <(level) = [4]> then\n        broadcast (show v) and wait\n        broadcast (lvl4 v)\n    else\n        if <(level) = [5]> then\n            broadcast (show v) and wait\n            broadcast (lvl5 v)\n        else\n            if <(level) = [6]> then\n                broadcast (show v) and wait\n                broadcast (lvl6 v)\n            else\n                if <(level) = [8]> then\n                    broadcast (show v) and wait\n                    broadcast (lvl8 v)\n                else\n                    if <(level) = [10]> then\n                        broadcast (show v) and wait\n                        broadcast (lvl10 v)\n                    else\n                        if <(level) = [11]> then\n                            broadcast (show v) and wait\n                            broadcast (lvl11 v)\n                        else\n                            if <(level) = [12]> then\n                                broadcast (show v) and wait\n                                broadcast (lvl12 v)\n                            else\n                                if <(level) = [15]> then\n                                    broadcast (show v) and wait\n                                    broadcast (lvl15 v)\n                                else\n                                    broadcast (show v) and wait\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [transition v] to [0]\nforever\n    play sound [Sad Music Zone - Background Music my-free-mp3s v] until done\nend\n\n@Player\n\ndefine Platform (jump height) (gravity) (friction) (running speed)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    point in direction (90)\n    change [xv v] by (running speed)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    point in direction (-90)\n    change [xv v] by ((running speed) * (-1))\nend\nset [xv v] to ((XV) * (friction))\nchange x by (XV)\nif <touching (levels v)?> then\n    set [slope v] to [0]\n    repeat until <<(Slope) = [8]> or <not <touching (levels v)?>>>\n        change [slope v] by (1)\n        change y by (1)\n    end\n    if <touching (levels v)?> then\n        change y by ((Slope) * (-1))\n        repeat ([ceiling v] of ([abs v] of (XV) ) )\n            if <touching (levels v)?> then\n                change x by ((([abs v] of (XV) ) / (XV)) * (-1))\n            end\n        end\n        set [xv v] to [0]\n    end\nend\nchange y by (YV)\nif <touching (levels v)?> then\n    repeat ([ceiling v] of ([abs v] of (YV) ) )\n        if <touching (levels v)?> then\n            change y by ((([abs v] of (YV) ) / (YV)) * (-1))\n        end\n    end\n    if <<((([abs v] of (YV) ) / (YV)) * (-1)) = [1]> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n        set [yv v] to (jump height)\n    else\n        set [yv v] to [0]\n    end\nelse\n    change [yv v] by (-1)\nend\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\ngo to [back v] layer\ngo to x: (-195) y: (-60)\npoint in direction (90)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\n    set [xv v] to [0]\n    set [yv v] to [0]\nend\nforever\n    Platform [12] [-1] [0.9] [0.8]\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [239]> then\n        broadcast (next lvl v) and wait\n    end\n    if <<touching (spikes v)?> or <(y position) < [-168]>> then\n        if <(invincibility) = [0]> then\n            clear graphic effects\n            repeat (10)\n                change [ghost v] effect by (10)\n                set [xv v] to [0]\n                set [yv v] to [0]\n            end\n            show\n            go to x: (-195) y: (-60)\n            point in direction (90)\n            repeat (10)\n                change [ghost v] effect by (-10)\n                set [xv v] to [0]\n                set [yv v] to [0]\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (jump boost v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n        set [yv v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (speed boost v)?> and <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        set [xv v] to [30]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (gravity boost v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n        repeat until <<<touching (_edge_ v)?> or <touching (spikes v)?>> or <touching (reverse jump boost v)?>>\n            change [yv v] by (2)\n        end\n    end\nend\n\nwhen flag clicked\nset [invincibility v] to [0]\nforever\n    if <touching (invincibility  boost v)?> then\n        set [invincibility v] to [1]\n        wait (10) seconds\n        set [invincibility v] to [0]\n    end\nend\n\nwhen [r v] key pressed\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    set [xv v] to [0]\n    set [yv v] to [0]\nend\nshow\ngo to x: (-195) y: (-60)\npoint in direction (90)\nrepeat (10)\n    change [ghost v] effect by (-10)\n    set [xv v] to [0]\n    set [yv v] to [0]\nend\n\nwhen I receive [next lvl v]\nchange [level v] by (1)\nhide\n\nwhen I receive [show v]\nshow\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    set [xv v] to [0]\n    set [yv v] to [0]\nend\nshow\ngo to x: (-195) y: (-60)\npoint in direction (90)\nrepeat (10)\n    change [ghost v] effect by (-10)\n    set [xv v] to [0]\n    set [yv v] to [0]\nend\n\nwhen [s v] key pressed\nif <not <(level) = [16]>> then\n    broadcast (next lvl v) and wait\nend\n\nwhen I receive [reset v]\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    set [xv v] to [0]\n    set [yv v] to [0]\nend\nshow\ngo to x: (-195) y: (-60)\npoint in direction (90)\nrepeat (10)\n    change [ghost v] effect by (-10)\n    set [xv v] to [0]\n    set [yv v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <<touching (reverse jump boost v)?> and <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < (y position)>>>> then\n        set [yv v] to [0]\n        repeat (10)\n            change [yv v] by (-2)\n        end\n    end\nend\n\n@Trail\n\nwhen flag clicked\nset [trail v] to [0]\nhide\nforever\n    if <<not <(transition) = [1]>> and <(trail) = [1]>> then\n        wait (0.05) seconds\n        go to (player v)\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nset size to (80) %\nset [ghost v] effect to (0)\nset [brightness v] effect to (0)\nrepeat (20)\n    change size by (-2)\n    change [ghost v] effect by (2)\nend\ndelete this clone\n\n@Levels\n\nwhen flag clicked\nset [level v] to [1]\nshow\nforever\n    go to [front v] layer\n    go [backward v] (9) layers\n    go to x: (0) y: (0)\n    switch costume to (level)\nend\n\nwhen I receive [next lvl v]\nhide\n\nwhen I receive [show v]\nshow\n\n@Cloud\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (5) to (8)) seconds\n    go to [back v] layer\n    go [forward v] (1) layers\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to x: (275) y: (pick random (120) to (-100))\nset [ghost v] effect to (50)\nforever\n    repeat until <(x position) < [-262]>\n        change x by (-1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    if <(transition) = [1]> then\n        hide\n    else\n        show\n    end\nend\n\n@Spikes\n\nwhen flag clicked\nshow\nforever\n    go to x: (0) y: (0)\n    switch costume to (level)\n    go to [back v] layer\n    go [forward v] (3) layers\nend\n\nwhen I receive [next lvl v]\nhide\n\nwhen I receive [show v]\nshow\n\n@Trail 🖾\n\nwhen flag clicked\nforever\n    switch costume to (trail)\nend\n\nwhen this sprite clicked\nif <(trail) = [1]> then\n    set [trail v] to [0]\nelse\n    set [trail v] to [1]\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\nwait (1.5) seconds\ngo to x: (185) y: (-145)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (10000000000) layers\nend\n\nwhen flag clicked\npoint in direction (90)\nturn left (-5) degrees\nforever\n    repeat (10)\n        turn right (-1) degrees\n    end\n    repeat (10)\n        turn right (1) degrees\n    end\nend\n\nwhen I receive [next lvl v]\nhide\n\nwhen I receive [show v]\nshow\n\n@Skip Button\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\nwait (1.5) seconds\ngo to x: (-200) y: (-145)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (10000000000) layers\nend\n\nwhen flag clicked\npoint in direction (90)\nturn left (10) degrees\nforever\n    repeat (10)\n        turn right (2) degrees\n    end\n    repeat (10)\n        turn right (-2) degrees\n    end\nend\n\nwhen this sprite clicked\nif <not <(level) = [16]>> then\n    broadcast (next lvl v) and wait\nend\n\nwhen I receive [show v]\nshow\n\nwhen I receive [next lvl v]\nhide\n\n@Reset Button\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\nwait (1.5) seconds\ngo to x: (-135) y: (-145)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (10000000000) layers\nend\n\nwhen flag clicked\npoint in direction (90)\nturn left (-10) degrees\nforever\n    repeat (10)\n        turn right (-2) degrees\n    end\n    repeat (10)\n        turn right (2) degrees\n    end\nend\n\nwhen this sprite clicked\nbroadcast (reset v) and wait\n\nwhen I receive [next lvl v]\nhide\n\nwhen I receive [show v]\nshow\n\n@Jump Boost\n\nwhen flag clicked\nhide\ngo to x: (-150) y: (-85)\n\nwhen flag clicked\nset [hover v] to [-90]\nforever\n    repeat (15)\n        change [hover v] by (-0.33)\n    end\n    repeat (15)\n        change [hover v] by (0.33)\n    end\nend\n\nwhen flag clicked\nforever\n    set y to (hover)\nend\n\nwhen I receive [lvl3 v]\nshow\n\nwhen I receive [next lvl v]\nhide\n\nwhen I receive [lvl8 v]\nset [hover v] to [-90]\nshow\n\nwhen I receive [lvl11 v]\nset x to (-200)\nshow\n\nwhen I receive [lvl15 v]\nset x to (-100)\nset [hover v] to [-100]\nshow\n\n@Reverse Jump Boost\n\nwhen flag clicked\nhide\ngo to x: (10) y: (80)\n\nwhen flag clicked\nset [hover5 v] to [-90]\nforever\n    repeat (15)\n        change [hover5 v] by (-0.33)\n    end\n    repeat (15)\n        change [hover5 v] by (0.33)\n    end\nend\n\nwhen flag clicked\nforever\n    set y to (hover5)\nend\n\nwhen I receive [next lvl v]\nhide\n\nwhen I receive [lvl11 v]\nset x to (10)\nset [hover5 v] to [80]\nshow\n\n@Speed Boost\n\nwhen flag clicked\nhide\ngo to x: (-150) y: (-85)\n\nwhen flag clicked\nset [hover2 v] to [-90]\nforever\n    repeat (15)\n        change [hover2 v] by (-0.4)\n    end\n    repeat (15)\n        change [hover2 v] by (0.4)\n    end\nend\n\nwhen flag clicked\nforever\n    set y to (hover2)\nend\n\nwhen I receive [lvl4 v]\nshow\n\nwhen I receive [next lvl v]\nhide\n\nwhen I receive [lvl8 v]\ngo to x: (-30) y: (120)\nset [hover2 v] to [120]\nshow\n\nwhen I receive [lvl12 v]\ngo to x: (-50) y: (70)\nset [hover2 v] to [70]\nshow\n\nwhen I receive [lvl15 v]\ngo to x: (-100) y: (70)\nset [hover2 v] to [70]\nshow\n\n@Gravity Boost\n\nwhen flag clicked\nhide\ngo to x: (-160) y: (-85)\n\nwhen flag clicked\nset [hover3 v] to [-90]\nforever\n    repeat (15)\n        change [hover3 v] by (-0.33)\n    end\n    repeat (15)\n        change [hover3 v] by (0.33)\n    end\nend\n\nwhen flag clicked\nforever\n    set y to (hover3)\nend\n\nwhen I receive [next lvl v]\nhide\n\nwhen I receive [lvl5 v]\nshow\n\nwhen I receive [lvl10 v]\ngo to x: (-40) y: (135)\nset [hover3 v] to [135]\nshow\n\nwhen I receive [lvl11 v]\ngo to x: (10) y: (135)\nset [hover3 v] to [-95]\nshow\n\n@Invincibility  Boost\n\nwhen flag clicked\nhide\ngo to x: (-160) y: (-85)\n\nwhen flag clicked\nset [hover4 v] to [-90]\nforever\n    repeat (15)\n        change [hover4 v] by (-0.33)\n    end\n    repeat (15)\n        change [hover4 v] by (0.33)\n    end\nend\n\nwhen flag clicked\nforever\n    set y to (hover4)\nend\n\nwhen I receive [next lvl v]\nhide\n\nwhen I receive [lvl6 v]\nshow\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nclear graphic effects\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n