Cloud!- A Mobile-Friendly Platformer [Entry]

Instructions: GO TO https://scratch.mit.edu/projects/670446871/ FOR ANOTHER FUN PLATFORMER!! (pls, its on my new account it'll help a lot <3)\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nReshared not for fame I added more levels, I know you guys have wanted that! Your welcome!\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nHello and welcome to my first platformer!\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nThis is Cloud-A Mobile Friendly Platformer, entry to the contest above! [Coding Done By @-SapphireDemon-]\n -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nThis is a platformer, the art was so hard I spent like 2 HOURS on it! *Pats self on back*\n -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nI am sure you know how to do a platformer, but here it is anyway:\nArrow keys: Left arrow to go left [<] Right arrow to go right [>] Up arrow to go up [^] And that's pretty much it! Do not touch spikes, though some are trolls, and you will find other secrets when you play!\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nThanks so much for the support, guys! Means a lot!\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nOVER 10,000 VIEWS! TYSM!!\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nThe music is sorry i like you - burbank\n@-LegendAdom-, thank you for the coding for the love fave and follow sign (please do all three)!\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nI might make a sequel, on Earth, with more levels! IDEA FROM:  @Ablair156\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\nMUSIC: burbank- sorry i like you\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER#PLATFORMER

@Stage\n\n@Player\n\ndefine reset\nclear graphic effects\ngo to x: (-200) y: (-50)\npoint in direction (90)\nset [dead? v] to [0]\nset [x v v] to [0]\nset [y v v] to [0]\nset size to (100) %\nshow\n\nwhen I receive [next level v]\nset [change? v] to [1]\nreset\nset [change? v] to [0]\n\nwhen I receive [alright bros let's go v]\nset [level v] to [1]\nset [dead? v] to [0]\nset size to (100) %\nreset\nforever\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <(dead?) = [0]>> then\n        change [x v v] by (.9)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <(dead?) = [0]>> then\n        change [x v v] by (-.9)\n    end\n    set [x v v] to ((X v) * (0.9))\n    change x by (X v)\n    if <touching (ground v)?> then\n        change y by (2)\n        if <touching (ground v)?> then\n            change y by (2)\n            if <touching (ground v)?> then\n                change y by (2)\n                if <touching (ground v)?> then\n                    change y by (2)\n                    if <touching (ground v)?> then\n                        change y by (2)\n                        if <touching (ground v)?> then\n                            change x by ((X v) * (-2))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n                                if <(X v) > [0]> then\n                                    set [x v v] to [-5]\n                                else\n                                    set [x v v] to [5]\n                                end\n                                set [y v v] to [13]\n                            else\n                                set [x v v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v v] by (-0.8)\n    change y by (Y v)\n    if <touching (ground v)?> then\n        change y by ((Y v) * (-1))\n        set [y v v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            set [y v v] to [12]\n        end\n    end\n    change y by (1)\n    if <<<<<touching (killer wheel v)?> or <touching (spikes v)?>> or <touching (killer wheel2 v)?>> or <touching (lightning v)?>> and <(dead?) = [0]>> then\n        Spin off screen\n    end\n    if <touching (jump pad v)?> then\n        set [y v v] to [20]\n    end\nend\n\nwhen I receive [alright bros let's go v]\nforever\n    set [direction v] to (direction)\nend\n\nwhen I receive [alright bros let's go v]\nset [change? v] to [0]\nforever\n    if <<(x position) = [240]> and <(dead?) = [0]>> then\n        broadcast (NEXT LEVEL v)\n        change [level v] by (1)\n    end\nend\n\nwhen I receive [alright bros let's go v]\nforever\n    if <(y position) = [-179]> then\n        Spin off screen\n    end\nend\n\nwhen [r v] key pressed\nif <(dead?) = [0]> then\n    reset\nend\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [alright bros let's go v]\nshow\n\ndefine Spin off screen\nset [dead? v] to [1]\nchange [player death v] by (1)\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nreset\n\nwhen I receive [alright bros let's go v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (center2 v)\nrepeat (10)\n    change [ghost v] effect by (5)\n    change size by (-5)\nend\ndelete this clone\n\nwhen flag clicked\nbroadcast (alright bros let's go v) and wait\n\n@Ground\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Spikes\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Fake\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (0)\nset [mosaic v] effect to (0)\nwait (.5) seconds\nrepeat (50)\n    go to [front v] layer\n    change [ghost v] effect by (2)\nend\n\n@Sound\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    set volume to (0) %\n    next costume\nelse\n    set volume to (100) %\n    next costume\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset volume to (100) %\nforever\n    play sound [burbank-sorry i like you v] until done\nend\n\n@LOVE FAVE FOLLOW PLEASE!\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (50)\nhide\nset [ghost v] effect to (100)\nwait (pick random (2) to (6)) seconds\nforever\n    show\n    repeat until <(y position) < [0.2]>\n        change [ghost v] effect by (-10)\n        change y by (((0) - (y position)) / (7))\n    end\n    wait (4) seconds\n    repeat until <(y position) > [50]>\n        change [ghost v] effect by (10)\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\n    wait (pick random (2) to (10)) seconds\nend\n\nwhen I receive [alert v]\nstop [other scripts in sprite v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nshow\nswitch costume to (costume2 v)\ngo to x: (0) y: (50)\nrepeat until <(y position) < [0.2]>\n    change [ghost v] effect by (-10)\n    change y by (((0) - (y position)) / (7))\nend\nwait (4) seconds\nrepeat until <(y position) > [50]>\n    change [ghost v] effect by (10)\n    change y by (((y position) + (5)) / (5))\nend\nhide\n\n@Sprite1\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    repeat (50)\n        change [ghost v] effect by (-2)\n    end\n    wait (3) seconds\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\n    wait (3) seconds\nend\n\n