Under - A Mobile Friendly Platformer
@Stage\n\n@Levels\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\nwhen flag clicked\nforever\n    set volume to (25) %\n    play sound [NIVIRO - Flashes v] until done\nend\n\n@Player\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\nwhen flag clicked\ngo to x: (-220) y: (86)\ngo to [front v] layer\nswitch costume to (costume2 v)\nforever\n    change [y v] by (-0.5)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-0.9)\n        switch costume to (costume3 v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (0.9)\n        switch costume to (costume2 v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (levels2 v)?> then\n        change y by (1)\n        if <touching (levels2 v)?> then\n            change y by (1)\n            if <touching (levels2 v)?> then\n                change y by (1)\n                if <touching (levels2 v)?> then\n                    change y by (1)\n                    if <touching (levels2 v)?> then\n                        change y by (1)\n                        if <touching (levels2 v)?> then\n                            change y by (1)\n                            if <touching (levels2 v)?> then\n                                change y by (-6)\n                                if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>> then\n                                    set [y v] to [10]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching (levels2 v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching (levels2 v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>>> then\n        set [y v] to [9]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <touching (lava v)?> then\n        change [y v] by (2)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [238]> then\n        broadcast (Next Level v)\n    end\nend\n\nwhen I receive [next level v]\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-220) y: (86)\n\nwhen flag clicked\nforever\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <key (up arrow v) pressed?>> then\n        switch costume to (costume5 v)\n    end\nend\n\n\n\nwhen flag clicked\nforever\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <key (up arrow v) pressed?>> then\n        switch costume to (costume4 v)\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <touching (spikes v)?> then\n        go to x: (-220) y: (86)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (s v) pressed?> then\n        broadcast (Next Level v)\n        wait (.5) seconds\n    end\nend\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\nwhen I receive [lava jump v]\n\n@Lava\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\n\n@Spikes\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [next level v]\nnext costume\n\n@Fog\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (50)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        set [ghost v] effect to (10)\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    if <(costume [number v]) = [9]> then\n        set [ghost v] effect to (5)\n    end\nend\n\n@Levels2\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\ngo to x: (0) y: (0)\nforever\n    if <(Level) = [10]> then\n        show\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n
Hello everyone! This is my newest platformer "Under". Even the physics are confusing to me! Hope you guys enjoy! Don't forget to like, love and follow :)\n\n++++++++++++++++Instructions++++++++++++++++\n-Arrow key's, WASD, and mobile to move!\n\n