Water || A platformer               #Games

Instructions: Welcome to my first ever platformer! \n\n(And first project) Use Arrow keys or WASD to move. Avoid Spikes and lava. You can use the Trampolines to jump over lava, spikes, and tall platforms.  

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (LEVEL)\nend\n\nwhen I receive [change_to_scene_2 v]\nswitch backdrop to (scene2 words v)\n\nwhen I receive [change_to_scene_3 v]\nswitch backdrop to (scene3 words v)\n\nwhen I receive [change_to_scene_4 v]\nswitch backdrop to (scene4 words v)\n\nwhen I receive [change_to_scene_5 v]\nswitch backdrop to (scene5 words v)\n\nwhen I receive [change_to_scene_6 v]\nswitch backdrop to (scene6 words v)\n\nwhen I receive [change_to_scene_7 v]\nswitch backdrop to (scene7 words v)\n\nwhen I receive [change_to_scene_8 v]\nswitch backdrop to (scene8 words v)\n\nwhen I receive [change_to_rain_1 v]\nswitch backdrop to (rain1 v)\n\nwhen I receive [change_to_rain_2 v]\nswitch backdrop to (rain2 v)\n\nwhen I receive [end v]\nswitch backdrop to (love, fave, and follow v)\n\nswitch backdrop to (scene1 words v)\n\nwhen flag clicked\nforever\n    play sound [Xaf - Nebula v] until done\nend\n\n@Spike1\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [change_to_scene_2 v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [change_to_scene_3 v]\nhide\n\nwhen I receive [change_to_scene_5 v]\nshow\nset x to (90)\nset y to (-76)\n\nwhen I receive [change_to_scene_6 v]\nswitch costume to (costume2 v)\ngo to x: (250) y: (44)\n\nwhen I receive [change_to_scene_7 v]\nhide\n\nwhen I receive [change_to_scene_8 v]\nshow\nswitch costume to (costume1 v)\ngo to x: (161) y: (-110)\n\nwhen I receive [change_to_rain_1 v]\nhide\n\n@Spike2\n\nwhen flag clicked\nhide\n\nwhen I receive [change_to_scene_2 v]\nswitch costume to (costume1 v)\nshow\ngo to x: (119) y: (-81)\n\nwhen I receive [change_to_scene_3 v]\nhide\n\nwhen I receive [change_to_scene_6 v]\nshow\nswitch costume to (costume2 v)\ngo to x: (260) y: (-59)\n\nwhen I receive [change_to_scene_7 v]\nhide\n\nwhen I receive [change_to_scene_8 v]\nshow\nswitch costume to (costume3 v)\ngo to x: (154) y: (131)\n\nwhen I receive [change_to_rain_1 v]\nhide\n\n@Ground \n\nwhen I receive [change_to_scene_4 v]\nswitch costume to (costume2 v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [change_to_scene_5 v]\nswitch costume to (costume1 v)\n\nwhen I receive [change_to_scene_6 v]\nswitch costume to (costume3 v)\n\nwhen I receive [change_to_scene_7 v]\nswitch costume to (costume1 v)\n\nwhen I receive [change_to_scene_8 v]\nswitch costume to (costume4 v)\n\nwhen I receive [change_to_rain_1 v]\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\n@Lava Scene3\n\nwhen flag clicked\nshow\nforever\n    switch costume to (LEVEL)\nend\n\nset size to (100) %\nset x to (31)\nset y to (31)\nhide\n\nwhen I receive [change_to_scene_3 v]\nshow\n\nwhen I receive [change_to_scene_4 v]\nhide\n\nwhen I receive [change_to_scene_5 v]\nshow\nset y to (28)\nset x to (189)\n\nwhen I receive [change_to_scene_6 v]\nshow\ngo to x: (253) y: (32)\n\nwhen I receive [change_to_scene_7 v]\nshow\ngo to x: (-41) y: (33)\n\nwhen I receive [change_to_scene_8 v]\nhide\n\n@Trampoline!\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [change_to_scene_4 v]\nhide\n\nwhen I receive [change_to_scene_5 v]\nhide\n\nwhen I receive [change_to_scene_6 v]\nshow\nset x to (-9)\nset y to (-75)\n\nwhen I receive [change_to_scene_7 v]\nhide\n\n@LongLava\n\nwhen flag clicked\nhide\n\nwhen I receive [change_to_scene_7 v]\nshow\n\nwhen I receive [change_to_scene_8 v]\nhide\n\n@Red Line 1\n\nwhen flag clicked\nhide\n\nwhen I receive [change_to_scene_8 v]\nshow\n\nwhen I receive [change_to_rain_1 v]\nhide\n\n@Red Line 2\n\nwhen I receive [change_to_scene_8 v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [change_to_rain_1 v]\nhide\n\n@Player\n\nwhen I receive [change_to_scene_2 v]\ngo to x: (-189) y: (0)\n\nwhen I receive [change_to_scene_3 v]\ngo to x: (-189) y: (0)\n\nwhen I receive [change_to_scene_4 v]\ngo to x: (-189) y: (0)\n\nwhen I receive [change_to_scene_5 v]\ngo to x: (-189) y: (0)\n\nwhen I receive [change_to_scene_6 v]\ngo to x: (-189) y: (0)\n\nwhen I receive [change_to_scene_7 v]\ngo to x: (-189) y: (0)\n\nwhen I receive [change_to_scene_8 v]\ngo to x: (-189) y: (0)\n\nwhen I receive [change_to_rain_1 v]\ngo to x: (-189) y: (0)\n\nwhen I receive [change_to_rain_2 v]\ngo to x: (-189) y: (0)\n\nwhen I receive [end v]\ngo to x: (-189) y: (0)\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nrepeat (25)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\ndefine Reset\ngo to x: (-188) y: (38)\n\nwhen flag clicked\nReset\nhide variable [x velocity v]\nhide variable [y velocity v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    Run Dis Game \nend\n\ndefine Run Dis Game \nswitch costume to (player v)\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [x velocity v] by (1)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x velocity v] by (-1)\nend\nchange x by (X Velocity)\nset [x velocity v] to ((X Velocity) * (0.9))\nif <touching (ground  v)?> then\n    change y by (1)\n    if <touching (ground  v)?> then\n        change y by (1)\n        if <touching (ground  v)?> then\n            change y by (1)\n            if <touching (ground  v)?> then\n                change y by (1)\n                if <touching (ground  v)?> then\n                    change y by (1)\n                    if <touching (ground  v)?> then\n                        change x by ((X Velocity) * (-1))\n                        change y by (-5)\n                        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                            if <(X Velocity) > [0]> then\n                                set [x velocity v] to [-10]\n                            else\n                                set [x velocity v] to [10]\n                            end\n                            set [y velocity v] to [15]\n                        else\n                            set [x velocity v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [y velocity v] by (-1)\nchange y by (Y Velocity)\nif <touching (ground  v)?> then\n    change y by ((Y Velocity) * (-1))\n    set [y velocity v] to [0]\nend\nchange y by (-1)\nif <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n    if <touching (ground  v)?> then\n        set [y velocity v] to [15]\n    end\nend\nchange y by (1)\nif <touching (trampoline! v)?> then\n    set [y velocity v] to [20]\nend\nif <<touching (spike1 v)?> or <touching (lava scene3 v)?>> then\n    Reset\nend\ncreate clone of (_myself_ v)\n\nset [y velocity v] to ((Y Velocity) * (0.45))\n\nchange y by (Y Velocity)\n\ndefine CHANGE DIS LEVEL\nif <(x position) > [239]> then\n    change [level v] by (1)\n    Reset\nend\n\nwhen flag clicked\nset [level v] to [1]\nhide variable [level v]\nforever\n    CHANGE DIS LEVEL\nend\n\n