DESERT -  PLATFORMER

Instructions: (Did Not Want To Be Late)          Level 3 Is Out!!!  \n\nThe Theme That I Chose Is The Sandy Desert Based On The Idea Of @CubingAnimations\n\nHope U Like It\n\n\n\nTAGS:\n\n#D#e#s#e#r#t#p#l#a#t#f#o#r#m#e#r#Platformer#Best\n___________________________________________\n\n(Not Played Level 1 Or 2 Check Them Out)\n\nhttps://scratch.mit.edu/projects/398162729\nhttps://scratch.mit.edu/projects/398676213\n\n\n\n\n\n\nAND NOW BYE                           (-_-)

@Stage\n\nwhen I receive [outro v]\nstop all sounds\nwait (0.2) seconds\nstart sound [Winning Song v]\n\nwhen backdrop switches to [starter background v]\nstop all sounds\nwait (0.2) seconds\nstart sound [Starter Sound v]\n\nwhen backdrop switches to [level 0 v]\nstop all sounds\nwait (0.2) seconds\nstart sound [Gameplay Sound v]\n\nwhen backdrop switches to [help background v]\nstop all sounds\nwait (0.2) seconds\nstart sound [Help Pause Music v]\n\n@Player\n\nwhen flag clicked\nhide\nswitch backdrop to (starter background v)\nswitch costume to (up v)\ngo to x: (-223) y: (0)\nset [speedx v] to [0]\nset [speedy v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [speedx v] by (2)\n    end\n    if <key (left arrow v) pressed?> then\n        change [speedx v] by (-2)\n    end\n    change x by (speedX)\n    if <touching (platform v)?> then\n        change x by ((speedX) * (-1))\n        set [speedx v] to [0]\n    else\n        set [speedx v] to ((speedX) * (0.8))\n    end\n    change y by (speedY)\n    if <touching (platform v)?> then\n        change y by ((speedY) * (-1))\n        set [speedy v] to [0]\n        if <(Lock) = [0]> then\n            if <key (up arrow v) pressed?> then\n                set [speedy v] to [15]\n                set [lock v] to [1]\n            end\n        end\n    else\n        change [speedy v] by (-1)\n        set [lock v] to [0]\n    end\n    if <key (up arrow v) pressed?> then\n        switch costume to (up v)\n    end\n    if <key (down arrow v) pressed?> then\n        switch costume to (down v)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (left v)\n    end\n    if <<key (up arrow v) pressed?> and <key (right arrow v) pressed?>> then\n        switch costume to (up - right v)\n    end\n    if <<key (up arrow v) pressed?> and <key (left arrow v) pressed?>> then\n        switch costume to (up - left v)\n    end\n    if <<key (down arrow v) pressed?> and <key (right arrow v) pressed?>> then\n        switch costume to (down - right v)\n    end\n    if <<key (down arrow v) pressed?> and <key (left arrow v) pressed?>> then\n        switch costume to (down - left v)\n    end\n    if <<key (up arrow v) pressed?> and <key (down arrow v) pressed?>> then\n        switch costume to (up - down v)\n    end\n    if <<key (right arrow v) pressed?> and <key (left arrow v) pressed?>> then\n        switch costume to (up - down v)\n    end\nend\n\nwhen I receive [start v]\nshow\ngo to x: (-216) y: (-30)\n\nwhen I receive [back v]\nhide\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (Lvl1 v)\n        go to x: (-223) y: (0)\n        switch backdrop to (level 1 v)\n    end\n    if <touching color (#00ff18)?> then\n        broadcast (Lvl2 v)\n        go to x: (-223) y: (0)\n        switch backdrop to (level 2 v)\n    end\n    if <touching color (#e7ff00)?> then\n        broadcast (Lvl3 v)\n        go to x: (-223) y: (0)\n        switch backdrop to (level 3 v)\n    end\n    if <touching color (#90c9ff)?> then\n        broadcast (Lvl4 v)\n        go to x: (-223) y: (0)\n        switch backdrop to (level 4 v)\n    end\n    if <touching color (#ff7400)?> then\n        broadcast (Lvl5 v)\n        go to x: (-223) y: (0)\n        switch backdrop to (level 5 v)\n    end\n    if <touching color (#ff9090)?> then\n        broadcast (Outro v)\n        switch backdrop to (outro v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (cactus v)?> then\n        start sound [Laser1 v]\n        go to x: (-223) y: (0)\n    end\nend\n\n@Platform\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nswitch costume to (level 0  v)\n\nwhen I receive [start v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen I receive [lvl1 v]\nswitch costume to (level 1 v)\n\nwhen I receive [lvl2 v]\nswitch costume to (level 2 v)\n\nwhen I receive [lvl3 v]\nswitch costume to (level 3 v)\n\nwhen I receive [lvl4 v]\nswitch costume to (level 4 v)\n\nwhen I receive [lvl5 v]\nswitch costume to (level 5 v)\n\nwhen I receive [outro v]\nswitch costume to (level 0  v)\n\n@Levels\n\nwhen flag clicked\nhide\nswitch costume to (0 v)\ngo to x: (-193) y: (131)\n\nwhen I receive [start v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen I receive [lvl1 v]\nstart sound [Coin v]\nswitch costume to (1 v)\n\nwhen I receive [lvl2 v]\nstart sound [Coin v]\nswitch costume to (2 v)\n\nwhen I receive [lvl3 v]\nstart sound [Coin v]\nswitch costume to (3 v)\n\nwhen I receive [lvl4 v]\nstart sound [Coin v]\nswitch costume to (4 v)\n\nwhen I receive [lvl5 v]\nstart sound [Coin v]\nswitch costume to (5 v)\n\nwhen I receive [outro v]\nhide\n\n@Logo\n\nwhen flag clicked\npoint in direction (90)\nshow\nset size to (100) %\ngo to x: (0) y: (145)\nforever\n    set size to (98) %\n    wait (0.1) seconds\n    turn right (5) degrees\n    set size to (96) %\n    wait (0.1) seconds\n    turn left (5) degrees\n    set size to (94) %\n    wait (0.1) seconds\n    turn right (5) degrees\n    set size to (92) %\n    wait (0.1) seconds\n    turn left (5) degrees\n    set size to (90) %\n    wait (0.1) seconds\n    turn right (5) degrees\n    set size to (92) %\n    wait (0.1) seconds\n    turn left (5) degrees\n    set size to (94) %\n    wait (0.1) seconds\n    turn right (5) degrees\n    set size to (96) %\n    wait (0.1) seconds\n    turn left (5) degrees\n    set size to (98) %\n    wait (0.1) seconds\n    turn right (5) degrees\n    set size to (100) %\n    wait (0.1) seconds\n    turn left (5) degrees\nend\n\nwhen I receive [help v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [start v]\nhide\n\n@Starter\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [help v]\nhide\n\nwhen I receive [back v]\nswitch backdrop to (starter background v)\nshow\n\nwhen I receive [start v]\nhide\n\n@Start\n\nwhen flag clicked\nshow\ngo to x: (76) y: (-127)\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (clicked v)\n    else\n        switch costume to (unclicked v)\n    end\nend\n\nwhen I receive [help v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen this sprite clicked\nstart sound [Suction Cup v]\nswitch backdrop to (level 0 v)\nhide\nbroadcast (Start v)\n\n@Back\n\nwhen flag clicked\nhide\ngo to x: (-117) y: (107)\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (clicked v)\n    else\n        switch costume to (unclicked v)\n    end\nend\n\nwhen I receive [help v]\ngo to x: (0) y: (-160)\nshow\n\nwhen this sprite clicked\nstart sound [Suction Cup v]\nhide\nbroadcast (Back v)\n\n@Help\n\nwhen flag clicked\nshow\ngo to x: (217) y: (-160)\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (clicked v)\n    else\n        switch costume to (unclicked v)\n    end\nend\n\nwhen this sprite clicked\nstart sound [Suction Cup v]\nswitch backdrop to (help background v)\nhide\nbroadcast (Help v)\n\nwhen I receive [back v]\nshow\n\nwhen I receive [start v]\nhide\n\n@Text\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [help v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen I receive [start v]\nhide\n\n@Cactus\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl3 v]\nswitch costume to (4 v)\nshow\n\nwhen I receive [back v]\nhide\n\nwhen I receive [lvl4 v]\nswitch costume to (5 v)\nshow\n\nwhen I receive [outro v]\nhide\n\nwhen I receive [start v]\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [lvl1 v]\nswitch costume to (2 v)\nshow\n\nwhen I receive [lvl2 v]\nswitch costume to (3 v)\nshow\n\nwhen I receive [lvl5 v]\nswitch costume to (6 v)\nshow\n\n@TN\n\nwhen flag clicked\nshow\nforever\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\n    go to [front v] layer\nend\n\n@Dust Particles\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (1 v)\nshow\nset size to (pick random (50) to (100)) %\nset [ghost v] effect to (pick random (0) to (40))\nrepeat until <touching (platform v)?>\n    change y by (-10)\nend\ndelete this clone\n\nwhen I receive [start v]\ngo to [back v] layer\nclear graphic effects\nset size to (100) %\nforever\n    go to x: (pick random (240) to (-240)) y: (170)\n    wait (0.008) seconds\n    create clone of (_myself_ v)\nend\n\n