My First Platformer! #games #all

Instructions: Hello! This is My First Ever Platformer! \n\n▶Advertising is allowed\n▶No spamming or F4F\n▶No mean comments or else you'll be reported\n▶Please LOVE, FAVORITE, and FOLLOW ❤⭐\n▶Hope you enjoy! :D\n\n -{RULES}-\n-Arrow Keys or WASD \n-Don't touch spikes or fall\n-Go to the next level by getting to the green flag\n-Down Arrow or S to make player flat\n\nPlease see a platformer I made: https://scratch.mit.edu/projects/603039933\n\nThanks for 10000 views! :D\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n;-;

@Stage\n\nwhen flag clicked\nforever\n    play sound (pick random (1) to (5)) until done\nend\n\n@Player\n\nwhen I receive [on level v]\nset [ghost v] effect to (0)\nset size to (110) %\nswitch costume to (player v)\ngo to x: (-215) y: (-75)\n\nwhen I receive [on level v]\nset [death count v] to [0]\nforever\n    if <<(y position) < [-175]> or <touching (danger v)?>> then\n        broadcast (Die v)\n        change [death count v] by (1)\n        go to x: (-215) y: (-75)\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nbroadcast (On Level v)\n\nwhen flag clicked\nswitch costume to (player v)\n\nwhen I receive [on level v]\nhide variable [level v]\nset [x speed v] to [0]\nset [y speed v] to [0]\nshow\nforever\n    if <(Stop) = [0]> then\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change x by ((X speed) * (-1))\n                                change y by (-5)\n                                if <key (up arrow v) pressed?> then\n                                    if <(X speed) > [0]> then\n                                        set [x speed v] to [-5]\n                                    else\n                                        set [x speed v] to [5]\n                                    end\n                                    set [y speed v] to [10]\n                                else\n                                    set [x speed v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [y speed v] by (-1)\n        change y by (Y speed)\n    end\nend\n\nwhen I receive [on level v]\nset [stop v] to [0]\nforever\n    if <(Stop) = [0]> then\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            change [x speed v] by (1.1)\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            change [x speed v] by (-1.1)\n        end\n        set [x speed v] to ((X speed) * (.9))\n        change x by (X speed)\n    end\nend\n\nwhen I receive [on level v]\nforever\n    if <(Stop) = [0]> then\n        if <touching (level v)?> then\n            change y by ((Y speed) * (-1))\n            set [y speed v] to [0]\n        end\n        change y by (-1)\n        if <touching (level v)?> then\n            if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                change [y speed v] by (14)\n            end\n        end\n        if <<key (s v) pressed?> or <key (down arrow v) pressed?>> then\n            switch costume to (player2 v)\n        else\n            switch costume to (player v)\n        end\n        change y by (1)\n        if <touching (trampoline v)?> then\n            set [y speed v] to [0]\n            change [y speed v] by (20)\n        end\n        if <touching (flag v)?> then\n            change [level v] by (1)\n            set [x speed v] to [0]\n            set [y speed v] to [0]\n            broadcast (Next Level v)\n            go to x: (-215) y: (-75)\n        end\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-215) y: (-75)\n\n@Level\n\nwhen flag clicked\ngo to x: (36) y: (28)\nshow\nforever\n    switch costume to (Level)\nend\n\n@Flag\n\nwhen flag clicked\nset size to (75) %\ngo [backward v] (1) layers\nshow\nforever\n    if <(Level) = [1]> then\n        go to x: (215) y: (-69)\n    end\n    if <(Level) = [2]> then\n        go to x: (215) y: (88)\n    end\n    if <(Level) = [3]> then\n        go to x: (215) y: (-69)\n    end\n    if <(Level) = [4]> then\n        go to x: (221) y: (-76)\n    end\n    if <(Level) = [5]> then\n        go to x: (215) y: (-76)\n    end\n    if <(Level) = [6]> then\n        go to x: (215) y: (-76)\n    end\n    if <(Level) = [7]> then\n        go to x: (215) y: (-76)\n    end\nend\n\n@Danger\n\nwhen flag clicked\ngo to x: (36) y: (28)\nshow\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\n@Trampoline\n\nwhen flag clicked\nset size to (75) %\ngo [backward v] (1) layers\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        go to x: (-116) y: (-82)\n        show\n    end\n    if <(Level) = [8]> then\n        hide\n    end\n    if <(Level) = [9]> then\n        hide\n    end\n    if <(Level) = [10]> then\n        go to x: (140) y: (-82)\n        show\n    end\nend\n\n@Skip\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (-185) y: (145)\nshow\nforever\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\nwhen this sprite clicked\nchange [level v] by (1)\nbroadcast (Next Level v)\n\n@Thumbnail\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\ngo to x: (0) y: (-35)\nforever\n    go to [front v] layer\nend\n\n