Platformer Starter Project

Instructions: https://scratch.mit.edu/projects/395725591/\nhttps://scratch.mit.edu/projects/395725591/\nhttps://scratch.mit.edu/projects/395725591/\nhttps://scratch.mit.edu/projects/395725591/\nhttps://scratch.mit.edu/projects/395725591/\nhttps://scratch.mit.edu/projects/395725591/\nhttps://scratch.mit.edu/projects/395725591/\nhttps://scratch.mit.edu/projects/395725591/\nhttps://scratch.mit.edu/projects/395725591/\nhttps://scratch.mit.edu/projects/395725591/\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ncheck that out pls

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nforever\n    play sound [4 v] until done\nend\n\nforever\n    play sound [4 v] until done\nend\n\nforever\n    play sound [4 v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nset volume to (60) %\nstop all sounds\nforever\n    play sound [Sounds of Space v] until done\nend\n\nwhen [s v] key pressed\nbroadcast (level v)\n\n@player\n\nset [ghost v] effect to (50)\n\nwhen flag clicked\nforever\n    go to x: (([x position v] of [hitbox v]) + (3)) y: (([y position v] of [hitbox v]) + (2))\n    go to [back v] layer\nend\n\nwhen flag clicked\nswitch costume to (costume3 v)\ngo to x: (-201) y: (-50)\nforever\n    if <<touching (death v)?> or <touching (saw v)?>> then\n        switch costume to (costume3 v)\n        set [y velocity v] to [0]\n        repeat (20)\n            next costume\n        end\n        go to x: (-201) y: (100)\n        switch costume to (costume3 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume3 v)\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume3 v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n    end\nend\n\n@hitbox\n\nwhen flag clicked\nset rotation style [left-right v]\nset [y velocity v] to [0]\nforever\n    change [y velocity v] by (-2)\n    change y by (y velocity)\n    change [in air v] by (1)\n    handle ground <(y velocity) > [0]>\nend\n\nwhen flag clicked\nforever\n    if <not <touching (death v)?>> then\n        if <key (left arrow v) pressed?> then\n            point in direction (-90)\n            walk [-6]\n        end\n        if <key (right arrow v) pressed?> then\n            point in direction (90)\n            walk [6]\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume3 v)\nforever\nend\n\nif <(y position) < [-170]> then\n    switch costume to (costume3 v)\n    set [y velocity v] to [0]\n    wait (0) seconds\n    go to x: (-201) y: (100)\n    switch costume to (costume3 v)\nend\n\ndefine handle ground <moving up>\nrepeat until <not <touching (platforms v)?>>\n    if <moving up> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [in air v] to [0]\n    end\n    set [y velocity v] to [0]\nend\n\ndefine walk (steps)\nchange x by (steps)\nset [ground lift v] to [0]\nrepeat until <<not <touching (platforms v)?>> or <(ground lift) = [8]>>\n    change y by (1)\n    change [ground lift v] by (1)\nend\nif <(ground lift) = [8]> then\n    change x by ((-1) * (steps))\n    change y by (-8)\nend\n\nwhen flag clicked\nforever\n    if <not <touching (death v)?>> then\n        if <<key (up arrow v) pressed?> and <(in air) < [8]>> then\n            set [y velocity v] to [14]\n        end\n    end\nend\n\nwhen flag clicked\ngo to x: (-201) y: (100)\nforever\n    if <<touching (death v)?> or <touching (saw v)?>> then\n        switch costume to (costume3 v)\n        set [y velocity v] to [0]\n        repeat (20)\n            next costume\n        end\n        go to x: (-201) y: (100)\n        switch costume to (costume3 v)\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    if <<([costume # v] of [player v]) = [1]> and <(x position) > [228]>> then\n        broadcast (level v)\n        go to x: (-201) y: (100)\n    end\n    if <(backdrop [number v]) = [8]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\nforever\n    if <touching (bounce v)?> then\n        set [y velocity v] to [26]\n    end\nend\n\nhide\n\nset [ghost v] effect to (100)\n\nset [ghost v] effect to (0)\n\n@platforms\n\nwhen flag clicked\nswitch costume to (costume1 v)\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [level v]\nnext costume\nnext backdrop\n\ngo to [front v] layer\ngo to [back v] layer\n\n@death\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nset [ghost v] effect to (50)\n\nwhen I receive [level v]\nnext costume\n\ngo [backward v] (1) layers\n\nhide\n\n@stamp\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nforever\n    create clone of (_myself_ v)\nend\n\nwait (0.1) seconds\n\nwhen I start as a clone\ngo to [back v] layer\nset [ghost v] effect to (0)\ngo to (player v)\nrepeat (20)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nhide\n\n@bounce\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [level v]\nnext costume\n\nhide\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [9]> then\n        set [ghost v] effect to (50)\n        go to [front v] layer\n        go [backward v] (4) layers\n    else\n        set [ghost v] effect to (0)\n        go to [back v] layer\n    end\nend\n\n@words\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [level v]\nnext costume\n\nhide\n\n@thumbnail\n\nwhen flag clicked\nhide\nforever\n    if <(username) = [mrzorx75]> then\n        if <key (t v) pressed?> then\n    end\nend\n\nshow\ngo to [front v] layer\n\n@Sprite1\n\n