Lava platformer

Instructions: The Instructions are in the project and all the controls.

@Stage\n\n@Player 1\n\nwhen flag clicked\n\ndefine moveup\nchange y by (1)\nrepeat until <not <touching (ground v)?>>\n    change y by (1)\nend\nchange y by (-1)\n\nwhen flag clicked\nswitch backdrop to (lava platformer thumbial v)\nwait (10) seconds\nswitch backdrop to (main menu  v)\n\nwhen flag clicked\ngo to x: (-32) y: (-173)\n\nwhen backdrop switches to [level 2 v]\ngo to x: (-33) y: (-173)\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-34) y: (-173)\n        change [deaths v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (s v) pressed?> then\n        switch costume to (shrinky v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (w v) pressed?> then\n        switch costume to (player 1 v)\n    end\nend\n\nwhen flag clicked\nset size to (100) %\n\nwhen backdrop switches to [level 5 v]\nforever\n    if <touching color (#000000)?> then\n        go to x: (-34) y: (-173)\n        change [deaths v] by (1)\n    end\nend\n\nwhen backdrop switches to [level 2 v]\nforever\n    if <touching color (#2bff00)?> then\n        switch backdrop to (level 3 v)\n    end\nend\n\nwhen backdrop switches to [level 5 v]\ngo to x: (-34) y: (-173)\n\nwhen flag clicked\n\nwhen backdrop switches to [level 3 v]\ngo to x: (-57) y: (-173)\n\nwhen backdrop switches to [level 6 v]\nswitch costume to (player 1 v)\n\nwhen backdrop switches to [level 6 v]\ngo to x: (-34) y: (-173)\n\nwhen backdrop switches to [level 6 v]\nforever\n    if <touching color (#ff6c00)?> then\n        go to x: (-37) y: (-173)\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <touching color (#ffc600)?> then\n        switch backdrop to (end game v)\n    end\nend\n\nwhen backdrop switches to [level 5 v]\nforever\n    if <touching color (#00fffd)?> then\n        switch backdrop to (level 6 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (player 1 v)\n\nwhen backdrop switches to [special power  v]\nplay sound [Cheer v] until done\n\nwhen [up arrow v] key pressed\nplay sound [Jump v] until done\nwait (0.1) seconds\n\nwhen backdrop switches to [end game v]\nplay sound [Clapping v] until done\n\nwhen flag clicked\nset volume to (300) %\nclear sound effects\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [level 3 v]\nforever\n    if <touching color (#ff00ba)?> then\n        switch backdrop to (level 4 v)\n    end\nend\n\nwhen backdrop switches to [level 4 v]\ngo to x: (-31) y: (-173)\n\nwhen backdrop switches to [level 4 v]\nforever\n    if <touching color (#00ff90)?> then\n        switch backdrop to (level 5 v)\n    end\nend\n\nwhen backdrop switches to [start game v]\nset [stopwatch v] to [0]\n\nwhen backdrop switches to [start game v]\nset [deaths v] to [0]\n\nwhen flag clicked\nforever\n    if <key (1 v) pressed?> then\n        switch costume to (player 1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (1 v) pressed?> then\n        switch costume to ( v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (2 v) pressed?> then\n        switch costume to (camouflaged  v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (3 v) pressed?> then\n        switch costume to (shrinky2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (4 v) pressed?> then\n        switch costume to (shrinky3 v)\n    end\nend\n\nwhen flag clicked\n\nsay (username)\n\nwhen backdrop switches to [end game v]\n\nforever\n    if <(Stopwatch) < [15]> then\n        say [Well done you have beaten @TheCIPC best time ]\n    end\nend\n\nwhen backdrop switches to [end game v]\n\nforever\n    if <(Stopwatch) = (pick random (16) to (30))> then\n        say [Good time!!]\n    end\nend\n\nwhen backdrop switches to [end game v]\n\nforever\n    if <(Stopwatch) = (pick random (31) to (50))> then\n        say [Not bad getting there!!]\n    end\nend\n\nwhen backdrop switches to [end game v]\n\nforever\n    if <(Stopwatch) = (pick random (51) to (70))> then\n        say [Thank you for playing my game! Try again for a better time!]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Stopwatch) = [1000]> then\n        switch backdrop to (crashed v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Stopwatch) = [1000]> then\n        switch backdrop to (crashed v)\n    end\nend\n\nwhen flag clicked\nadd (username) to [seen v]\n\nforever\n    play sound [Random music v] until done\nend\n\nwhen backdrop switches to [start game v]\nshow\ngo to x: (-37) y: (-169)\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [start game v]\nshow variable [deaths v]\nshow variable [stopwatch v]\n\nwhen flag clicked\nhide variable [deaths v]\nhide variable [stopwatch v]\n\nchange size by (20)\n\nsay (join [Hi ] (join (username) [ Welcome to Lava Platformer ])) for (2) seconds\n\nwhen backdrop switches to [start game v]\nset [vehicle speed v] to [0]\nset [gravity v] to [-1]\nforever\n    if <key (right arrow v) pressed?> then\n        change x by (10)\n    end\n    if <key (left arrow v) pressed?> then\n        change x by (-10)\n    end\n    if <touching (ground v)?> then\n        moveup\n        set [vehicle speed v] to [0]\n        if <key (up arrow v) pressed?> then\n            set [vehicle speed v] to [15]\n        end\n    else\n        change [vehicle speed v] by (Gravity)\n    end\n    change y by (Vehicle speed)\nend\n\nwhen backdrop switches to [start game v]\nforever\n    change [stopwatch v] by (1)\n    wait (1) seconds\nend\n\nwhen backdrop switches to [start game v]\nforever\n    if <touching color (#baff00)?> then\n        switch backdrop to (level 2 v)\n    end\nend\n\nwhen backdrop switches to [start game v]\nforever\n    play sound [Random music v] until done\n    wait (1) seconds\nend\n\nwhen backdrop switches to [start game v]\nrepeat (4)\n    set [ghost v] effect to (100)\n    wait (0.2) seconds\n    clear graphic effects\n    wait (0.05) seconds\nend\n\n@Ground\n\nwhen backdrop switches to [start game v]\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [main menu  v]\nhide\n\n@Spikes\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [Start game]> then\n        hide\n    end\nend\n\nwhen backdrop switches to [level 2 v]\nshow\n\nwhen backdrop switches to [level 3 v]\nhide\n\nwhen backdrop switches to [crashed v]\nforever\n    hide\nend\n\nwhen backdrop switches to [lava platformer thumbial v]\nhide\n\n@Spikes 2\n\nwhen backdrop switches to [start game v]\nhide\n\nwhen backdrop switches to [level 2 v]\nshow\n\nwhen backdrop switches to [level 3 v]\nhide\n\nwhen backdrop switches to [crashed v]\nforever\n    hide\nend\n\nset [stopwatch v] to [995]\n\nwhen backdrop switches to [lava platformer thumbial v]\nhide\n\n@Lava\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 5 v]\nshow\n\nwhen backdrop switches to [level 5 v]\nforever\n    if <touching color (#35ff00)?> then\n        go to x: (185) y: (6)\n        wait (0.1) seconds\n    end\nend\n\nwhen backdrop switches to [level 5 v]\ngo to x: (185) y: (6)\n\nwhen backdrop switches to [level 5 v]\nforever\n    glide (0.2) secs to x: (186) y: (-147)\nend\n\nwhen backdrop switches to [level 6 v]\nhide\n\nwhen backdrop switches to [special power  v]\nhide\n\nwhen backdrop switches to [special power  v]\nhide\n\nwhen backdrop switches to [level 4 v]\nhide\n\n@Back\n\nwhen backdrop switches to [special power  v]\nshow\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nswitch backdrop to (level 5 v)\nhide\n\n@Hidden\n\nwhen this sprite clicked\nswitch backdrop to (special power  v)\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 5 v]\nshow\n\nwhen backdrop switches to [special power  v]\nhide\n\nwhen backdrop switches to [level 6 v]\nhide\n\nwhen backdrop switches to [end game v]\nhide\n\nwhen backdrop switches to [level 4 v]\nhide\n\nwhen backdrop switches to [level 4 v]\ngo to x: (38) y: (80)\n\n@Moving platformer 1\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 4 v]\nshow\n\nwhen backdrop switches to [level 4 v]\nforever\n    glide (0.7) secs to x: (125) y: (111)\nend\n\nwhen backdrop switches to [level 4 v]\nforever\n    if <touching color (#f800ff)?> then\n        glide (0.5) secs to x: (130) y: (-36)\n    end\nend\n\nwhen backdrop switches to [level 5 v]\nhide\n\nwhen flag clicked\nforever\n    next costume\nend\n\nwhen backdrop switches to [crashed v]\nforever\n    hide\nend\n\n@Moving Platformer 2\n\nwhen backdrop switches to [level 4 v]\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 4 v]\nforever\n    glide (1) secs to x: (66) y: (34)\nend\n\nwhen backdrop switches to [level 4 v]\nforever\n    if <touching color (#f800ff)?> then\n        glide (1.5) secs to x: (66) y: (-28)\n    end\nend\n\nwhen backdrop switches to [level 5 v]\nhide\n\nwhen flag clicked\nforever\n    next costume\nend\n\nwhen backdrop switches to [crashed v]\nhide\n\n@Moving Platformer 3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 4 v]\nshow\n\nwhen backdrop switches to [level 4 v]\nforever\n    glide (0.5) secs to x: (263) y: (106)\nend\n\nwhen backdrop switches to [level 4 v]\nforever\n    if <touching color (#f800ff)?> then\n        glide (0.5) secs to x: (273) y: (-70)\n    end\nend\n\nwhen backdrop switches to [level 5 v]\nhide\n\nwhen flag clicked\nforever\n    next costume\nend\n\nwhen backdrop switches to [crashed v]\nhide\n\n@LIGHT BLUE\n\nwhen this sprite clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nset size to (50) %\n\nforever\nend\n\nwhen backdrop switches to [start game v]\nshow\n\nwhen flag clicked\nhide\n\n@Camoflagage \n\nwhen flag clicked\nset size to (50) %\n\nwhen this sprite clicked\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [start game v]\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [main menu  v]\nhide\n\n@SHRINKY 2\n\nwhen backdrop switches to [special power  v]\nshow\n\nwhen flag clicked\nhide\n\nset size to (50) %\n\n@SHRINKY 3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [special power  v]\nshow\n\n@Settings final design\n\nwhen this sprite clicked\nsay [Working in progress] for (2) seconds\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [start game v]\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [main menu  v]\nhide\n\n@Mute\n\nwhen this sprite clicked\nforever\n    stop all sounds\nend\n\nwhen backdrop switches to [start game v]\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [main menu  v]\nhide\n\n@Loading\n\nwhen flag clicked\nforever\n    wait (2) seconds\n    next costume\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        hide\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nswitch costume to (loading 1\(20%\) v)\n\n@Update message\n\nwhen I receive [update message v]\nshow\ngo to x: (-83) y: (-190)\nwait (1) seconds\nglide (1) secs to x: (54) y: (-134)\n\nwhen I receive [hide update message v]\nhide\n\nwhen backdrop switches to [controls v]\nhide\n\nwhen backdrop switches to [lava platformer thumbial v]\nhide\n\n@Ok\n\nwhen I receive [update message v]\nwait (2) seconds\nshow\n\nwhen this sprite clicked\nhide\nbroadcast (Hide Update message v)\n\nwhen backdrop switches to [main menu  v]\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen backdrop switches to [main menu  v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen backdrop switches to [controls v]\nhide\n\nwhen backdrop switches to [lava platformer thumbial v]\nhide\n\n@Play\n\nwhen backdrop switches to [main menu  v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (play2 v)\n    end\nend\n\nwhen backdrop switches to [main menu  v]\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (play v)\n    end\nend\n\nwhen backdrop switches to [main menu  v]\nshow\n\nwhen backdrop switches to [start game v]\nhide\n\nwhen this sprite clicked\nswitch backdrop to (start game v)\n\nwhen backdrop switches to [controls v]\nhide\n\nwhen backdrop switches to [lava platformer thumbial v]\nhide\n\n@Achievements\n\nwhen backdrop switches to [main menu  v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (achievements2 v)\n    end\nend\n\nwhen backdrop switches to [main menu  v]\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (achievements v)\n    end\nend\n\nwhen backdrop switches to [main menu  v]\nshow\n\nwhen backdrop switches to [start game v]\nhide\n\nwhen this sprite clicked\nbroadcast (List of Achievements v)\n\nwhen backdrop switches to [controls v]\nhide\n\nwhen backdrop switches to [lava platformer thumbial v]\nhide\n\n@Controls\n\nwhen backdrop switches to [main menu  v]\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (controls v)\n    end\nend\n\nwhen backdrop switches to [main menu  v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (controls2 v)\n    end\nend\n\nwhen backdrop switches to [main menu  v]\nshow\n\nwhen backdrop switches to [start game v]\nhide\n\nwhen this sprite clicked\nswitch backdrop to (controls v)\n\nwhen backdrop switches to [controls v]\nhide\n\nwhen backdrop switches to [lava platformer thumbial v]\nhide\n\n@Update tab\n\nwhen backdrop switches to [main menu  v]\nshow\n\nwhen backdrop switches to [controls v]\nhide\n\nwhen backdrop switches to [start game v]\nhide\n\nwhen this sprite clicked\nbroadcast (Update Message v)\n\nwhen backdrop switches to [main menu  v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (next update2 v)\n    end\nend\n\nwhen backdrop switches to [main menu  v]\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (next update v)\n    end\nend\n\nwhen backdrop switches to [lava platformer thumbial v]\nhide\n\n@List of  Achievements\n\nwhen I receive [list of achievements v]\nshow\ngo to x: (17) y: (12)\nwait (1) seconds\nglide (60) secs to x: (17) y: (-332)\n\nwhen I receive [list of achievements v]\nforever\n    if <(y position) = [-332]> then\n        hide\n    end\nend\n\nwhen backdrop switches to [controls v]\nhide\n\nwhen backdrop switches to [main menu  v]\nhide\n\nwhen backdrop switches to [start game v]\nhide\n\nwhen backdrop switches to [lava platformer thumbial v]\nhide\n\n@Back2\n\nwhen backdrop switches to [controls v]\nshow\n\nwhen backdrop switches to [main menu  v]\nhide\n\nwhen this sprite clicked\nswitch backdrop to (main menu  v)\n\nwhen backdrop switches to [controls v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (back2 v)\n    end\nend\n\nwhen backdrop switches to [controls v]\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (back v)\n    end\nend\n\n