Lost Platformer-1#All

Instructions: If I hit 100 likes I will make part-2\nPls like and fav for part-2\nCheck out this cool studio and also follow it pls!\nhttps://scratch.mit.edu/studios/30897484\nFamous likes and faves-\n@prodannau\nFamous Scratchers Comments-\n@ManGold-0658\n@prodannau\n

@Stage\n\n@Player\n\nwhen flag clicked\nshow\nswitch costume to (player v)\ngo to x: (-200) y: (-42)\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x velocity v] by (1)\n        switch costume to (player2 v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x velocity v] by (-1)\n        switch costume to (player3 v)\n    end\n    set [x velocity v] to ((X Velocity) * (0.9))\n    change x by (X Velocity)\n    if <touching (levels v)?> then\n        change y by (1)\n        if <touching (levels v)?> then\n            change y by (1)\n            if <touching (levels v)?> then\n                change y by (1)\n                if <touching (levels v)?> then\n                    change y by (1)\n                    if <touching (levels v)?> then\n                        change y by (1)\n                        if <touching (levels v)?> then\n                            change x by ((X Velocity) * (-1))\n                            change y by (-5)\n                            if <<<(mouse y) > (y position)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(X Velocity) > [0]> then\n                                    set [x velocity v] to [-5]\n                                else\n                                    set [x velocity v] to [8]\n                                end\n                                set [y velocity v] to [12]\n                            else\n                                set [x velocity v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (levels v)?> then\n        change y by ((Y Velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (levels v)?> then\n        if <<<(mouse y) > (y position)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [y velocity v] to [13]\n        end\n    end\n    change y by (1)\n    if <(x position) = [248]> then\n        go to x: (-199) y: (-63)\n        broadcast (Next Level v)\n    end\n    if <touching (enemy v)?> then\n        go to x: (-199) y: (-63)\n    end\n    if <touching (spikes v)?> then\n        go to x: (-199) y: (-63)\n    end\n    if <touching (lava v)?> then\n        go to x: (-199) y: (-63)\n    end\n    if <touching (spikes v)?> then\n        go to x: (-199) y: (-63)\n    end\nend\n\nset [my variable v] to [0]\n\n@Levels\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Enemy\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to x: (-225) y: (16)\nforever\n    if <(costume [number v]) = [8]> then\n        repeat (10)\n            change x by (10)\n        end\n        wait (1) seconds\n        repeat (10)\n            change x by (-10)\n        end\n    end\nend\n\n@Lava\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    set y to ((0) + (([cos v] of (((timer) - (3)) * (200)) ) * (5)))\nend\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Sound\n\nwhen flag clicked\nforever\n    play sound [Unlimited by @-Xaf- v] until done\nend\n\n@TN\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@Intro\n\nwhen flag clicked\nshow\nrepeat (37)\n    next costume\nend\nhide\n\n