platformer
@Stage\n\n@player\n\nwhen flag clicked\ngo to [front v] layer\nset [level v] to [1]\n\nwhen flag clicked\nforever\n    change [y v] by (-0.5)\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [x v] by (0.75)\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        change [x v] by (-0.75)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (1)\n                                if <touching color (#000000)?> then\n                                    change y by (1)\n                                    if <touching color (#000000)?> then\n                                        change y by (1)\n                                        if <touching color (#000000)?> then\n                                            change y by (1)\n                                            if <touching color (#000000)?> then\n                                                change y by (-6)\n                                                change x by ((x) * (-1))\n                                                if <<key (w v) pressed?> or <key (up arrow v) pressed?>> 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                                                    set [x v] to [0]\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <touching color (#ff0000)?> then\n        wait (0.25) seconds\n        repeat (40)\n            change [ghost v] effect by (2.5)\n        end\n        go to x: (-160) y: (-50)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <touching (_edge_ v)?> then\n        go to x: (-160) y: (-50)\n        broadcast (next level v)\n    end\nend\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    play sound [Vexento - Syndrome v] until done\nend\n\n@Sprite1\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (11)\n\n
w,a,s,d or arrow keys to move. try to get to the other side and avoid the red lava. 