Jelly Dash (Platformer)

Instructions: Arrow Keys To Move, Lava Will Kill You, Levels Are All Possible\n\nLast Level Hint: Look closely at all the lava.

@Stage\n\nwhen flag clicked\nforever\n    play sound [01 -Jumper- \(ID_ 168734\).mp3 v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (-210) y: (-80)\ngo to [front v] layer\ngo [backward v] (1) layers\nset size to (220) %\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-210) y: (-90)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-1.3)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (1.3)\n    end\n    set [xv v] to ((xv) * (0.85))\n    change x by (xv)\n    if <touching color (#ff00bf)?> then\n        change y by (1)\n        if <touching color (#ff00bf)?> then\n            change y by (1)\n            if <touching color (#ff00bf)?> then\n                change y by (1)\n                if <touching color (#ff00bf)?> then\n                    change y by (1)\n                    if <touching color (#ff00bf)?> then\n                        change y by (1)\n                        if <touching color (#ff00bf)?> then\n                            change y by (1)\n                            if <touching color (#ff00bf)?> then\n                                change y by (-5)\n                                change x by ((-1) * (xv))\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <not <(xv) = [0]>>> then\n                                    set [mode v] to [walljump]\n                                    set [yv v] to [8]\n                                    set [xv v] to (((xv) / ([abs v] of (xv) )) * (-10))\n                                else\n                                    set [mode v] to [wallslide]\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (2)\n    end\n    change y by (-3)\n    if <touching color (#ff00bf)?> then\n        if <(yv) = [-3]> then\n            if <<key (a v) pressed?> or <<key (d v) pressed?> or <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>>>> then\n                set [mode v] to [run]\n            else\n                if <([abs v] of (xv) ) > [.1]> then\n                    set [mode v] to [skid]\n                else\n                    set [mode v] to [stand]\n                end\n            end\n        end\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [mode v] to [jump]\n            set [yv v] to [9]\n        end\n    end\n    if <<<<(mode) = [jump]> or <(mode) = [walljump]>> and <(yv) < [0]>> or <<<(mode) = [run]> or <(mode) = [skid]>> and <(yv) < [-3]>>> then\n        set [mode v] to [fall]\n    end\n    change y by (3)\n    if <(yv) > [-15]> then\n        change [yv v] by (-0.5)\n    end\n    change y by (-2)\n    if <not <touching color (#ff00bf)?>> then\n        change y by (-1)\n        if <not <touching color (#ff00bf)?>> then\n            change y by (-1)\n            if <not <touching color (#ff00bf)?>> then\n                change y by (-1)\n                if <not <touching color (#ff00bf)?>> then\n                    change y by (-1)\n                    if <not <touching color (#ff00bf)?>> then\n                        change y by (-1)\n                        if <not <touching color (#ff00bf)?>> then\n                            change y by (5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (2)\n    change y by (yv)\n    if <touching color (#ff00bf)?> then\n        change y by (-2)\n        if <touching color (#ff00bf)?> then\n            change y by ((-1) * (yv))\n            set [yv v] to [-3]\n        end\n        change y by (2)\n    end\nend\n\nwhen flag clicked\nforever\n    if <[230] < (x position)> then\n        broadcast (next level v) and wait\n        go to x: (-210) y: (-90)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\n\n@Sprite3\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\n\n