Platformer

Instructions: Use arrow keys or wasd to move.\nDon't touch the spikes and lava.\n\nPls ❤️and⭐.\n

@Stage\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch backdrop to (Level)\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    if <not <key (any v) pressed?>> then\n        switch costume to (1 v)\n    end\n    if <key (up arrow v) pressed?> then\n        switch costume to (9 v)\n    end\n    if <<key (up arrow v) pressed?> and <key (right arrow v) pressed?>> then\n        switch costume to (7 v)\n    end\n    if <<key (up arrow v) pressed?> and <key (left arrow v) pressed?>> then\n        switch costume to (8 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (1 v)\nset [x v] to [-216]\nset [y v] to [-87]\ngo to x: (x) y: (y)\nset [xy v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xy v] by (1)\n        switch costume to (6 v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xy v] by (-1)\n        switch costume to (4 v)\n    end\n    change x by (XY)\n    set [xy v] to ((XY) * (0.9))\n    if  then\n        change y by (1)\n        if  then\n            change y by (1)\n            if  then\n                change y by (1)\n                if  then\n                    change y by (1)\n                    if  then\n                        change y by (1)\n                        if  then\n                            change x by ((XY) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                if <(XY) > [0]> then\n                                    set [xy v] to [-10]\n                                else\n                                    set [xy v] to [10]\n                                end\n                                set [yv v] to [15]\n                            else\n                                set [xy v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (YV)\n    if  then\n        change y by ((YV) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if  then\n            set [yv v] to [13]\n        end\n    end\n    change y by (1)\n    if <<touching (sprite3 v)?> or <touching color (#ff4444)?>> then\n        go to x: (x) y: (y)\n    end\n    if <(y position) = [-179]> then\n        go to x: (x) y: (y)\n    end\n    if <touching (sprite4 v)?> then\n        set [yv v] to [17]\n    end\n    if <(x position) = [243]> then\n        change [level v] by (1)\n        go to x: (x) y: (y)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nforever\n    switch costume to (costume1 v)\n    go to (sprite1 v)\n    create clone of (_myself_ v)\n    go to [back v] layer\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-3)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen [space v] key pressed\nnext costume\n\nswitch costume to (costume6 v)\n\n@Sprite3\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\n@Sprite4\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\n@Sprite5\n\nwhen flag clicked\ngo to [front v] layer\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\n@Sprite6\n\n@Sprite7\n\nwhen I receive [message1 v]\nhide\n\nwhen flag clicked\nshow\n\ngo [backward v] (1) layers\n\n@Sprite8\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nhide\nbroadcast (message1 v)\n\n@thumbnail2\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    change [ghost v] effect by (100)\nend\n\nwhen flag clicked\nforever\n    play sound [OnlyMP3 v] until done\nend\n\n