Scratchy - The Platformer Cat

Instructions: Arrow Keys to move and avoid the lava Moving platformers are very helpful and press spacebar for some music. If i get 50 likes part two will come Please like because this took me 5 hours to make

@Stage\n\n@Sprite1\n\nwhen flag clicked\nset [level v] to [1]\nbroadcast (Start level v)\n\nwhen I receive [start level v]\nset [jumping v] to [false]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    change [y velocity v] by (-1)\n    if <key (left arrow v) pressed?> then\n        if <(X Velocity) > [-5]> then\n            change [x velocity v] by (-2)\n        end\n        if <(costume [number v]) = [1]> then\n            switch costume to (2 v)\n        else\n            switch costume to (1 v)\n        end\n    end\n    if <key (right arrow v) pressed?> then\n        if <(X Velocity) < [5]> then\n            change [x velocity v] by (2)\n        end\n        if <(costume [number v]) = [3]> then\n            switch costume to (4 v)\n        else\n            switch costume to (3 v)\n        end\n    end\n    change x by (X Velocity)\n    if <(X Velocity) > [0]> then\n        change [x velocity v] by (-1)\n    end\n    if <(X Velocity) < [0]> then\n        change [x velocity v] by (1)\n    end\n    change x by (X Velocity)\n    Move Vertical\n    Move Horizontal\n    if <touching color (#e3bc72)?> then\n        broadcast (Next Level v)\n    end\n    if <<(y position) < [-179]> or <touching color (#ff0000)?>> then\n        broadcast (Start level v)\n    end\nend\n\ndefine Move Vertical\nchange y by (Y Velocity)\nif <touching color (#00ff7e)?> then\n    if <(Y Velocity) > [0]> then\n        repeat until <not <touching color (#00ff7e)?>>\n            change y by (-1)\n        end\n    else\n        repeat until <not <touching color (#00ff7e)?>>\n            change y by (1)\n        end\n        set [jumping v] to [false]\n    end\n    set [y velocity v] to [0]\nend\n\nwhen [up arrow v] key pressed\nif <(Jumping) = [false]> then\n    set [y velocity v] to [15]\n    set [jumping v] to [true]\nend\n\ndefine Move Horizontal\nif <touching color (#00ff7e)?> then\n    if <(X Velocity) > [0]> then\n        repeat until <not <touching color (#00ff7e)?>>\n            change x by (-2)\n        end\n    else\n        repeat until <not <touching color (#00ff7e)?>>\n            change x by (2)\n        end\n    end\n    set [x velocity v] to [0]\nend\n\nwhen I receive [start level v]\nif <(Level) = [1]> then\n    go to x: (-168) y: (-141)\n    switch backdrop to (backdrop1 v)\nend\nif <(Level) = [2]> then\n    go to x: (-125) y: (-125)\n    switch backdrop to (backdrop2 v)\nend\nif <(Level) = [3]> then\n    go to x: (-200) y: (156)\n    switch backdrop to (backdrop3 v)\nend\nif <(Level) = [4]> then\n    go to x: (-187) y: (-123)\n    switch backdrop to (backdrop4 v)\nend\nif <(Level) = [5]> then\n    go to x: (-187) y: (-133)\n    switch backdrop to (backdrop5 v)\nend\nif <(Level) = [6]> then\n    go to x: (-215) y: (-140)\n    switch backdrop to (backdrop6 v)\nend\nif <(Level) = [7]> then\n    go to x: (-213) y: (-110)\n    switch backdrop to (backdrop7 v)\nend\nif <(Level) = [8]> then\n    switch backdrop to (backdrop8 v)\n    hide\nend\n\nwhen I receive [next level v]\nchange [level v] by (1)\nstop [other scripts in sprite v]\nbroadcast (Start level v)\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nchange [☁ views v] by (1)\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen I receive [start level v]\nstop [other scripts in sprite v]\nif <<(Level) = [3]> or <(Level) = [6]>> then\n    show\nelse\n    hide\nend\nMove platform\n\ndefine Move platform\nforever\n    glide (1) secs to x: (56) y: (133)\n    glide (1) secs to x: (42) y: (-104)\nend\n\n