~Monochromatic~A Platformer

Instructions: IF SOMEONE ADVERTISE, FEEL FREE TO SAY\n'DON'T ADVERTISE!', 'NO ADS' :)\n\nFox Speed Draw: https://scratch.mit.edu/projects/328183374/\nMusic : Alan Walker-Dark Side\n\nIf (you think) you are famous and loved (or faved) this\nproject, please comment 'i loved (and faved)'\n----------------------------Instructions--------------------------\n+[Arrow] keys/mobile controls+\n+Don't touch spikes+\n+Touch the portal to go to the next level+\n+The shape 'ㅠ' is bouncy+\n+[R] to restart/[s] to skip+\n+Every level is possible+\n-------------------------------Credits-----------------------------\n+Alan Walker for the music+\n+@xamuil2&@noodlebot for the inspiration&art idea+\n+@TimMCcool for the moving portal script+\n---------------------------------------------------------------------\n@eunice0913 loved and faved!\n@staffordboys loved!\n@Cicada_19 loved and faved!\n@abogaczyk loved!\n@xamuil2 loved!\n@AndrewDai loved!\n@C9M09B loved and faved! \n@JWhandle loved!\n@dn_scratch loved and faved!\n@TimMCCool loved and faved!\n@FakePotatoTV loved!\n@Bar_Ben loved!\n----------------------------------------------------------------------\nUpdates : \n9/24/2019 shared!\n9/24/2019 added death fading!\n9/25/2019 added transist!\n9/25/2019 del. level variable&added text lev counter!\n9/25/2019 fixed the level 10 glitch!\n9/26/2019 fixed the level 10 glitch again!\n-----------------------------------------------------------------------\n#Monochromatic #mobile #platformer #eunice0913 \n#xamuil2 #850 #followers #thank #you #not #top-love\n#please #love #fav #follow #timmccool 

@Stage\n\nwhen flag clicked\nforever\n    play sound [alan-walker-darkside-feat-aura-and-tomine-harket v] until done\nend\n\n@Player\n\nwhen [s v] key pressed\nchange [level v] by (1)\nbroadcast (transist v)\ngo to x: (-170) y: (-120)\n\nwhen flag clicked\nforever\n    if <touching (portal v)?> then\n        change [level v] by (1)\n        broadcast (transist v)\n        go to x: (-170) y: (-120)\n    end\nend\n\nwhen [r v] key pressed\ngo to x: (-170) y: (-120)\n\nwhen flag clicked\nshow\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nhide variable [level v]\ngo to x: (-170) y: (-120)\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (ground v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [yv v] to [13]\n        end\n    end\n    if <touching (spikes v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait (0.5) seconds\n        set [ghost v] effect to (0)\n        go to x: (-170) y: (-120)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <touching (bouncy v)?> then\n        set [yv v] to [25]\n    end\n    change y by (1)\nend\n\n@ground\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@spikes\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@bouncy\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    if <not <(Level) > [11]>> then\n        hide\n    else\n        show\n        switch costume to ((Level) - (11))\n    end\nend\n\n@portal\n\nwhen flag clicked\nshow\nset size to (100) %\nforever\n    repeat (10)\n        change size by (1.3)\n    end\n    repeat (10)\n        change size by (-1.3)\n    end\n    repeat (10)\n        change size by (-1.3)\n    end\n    repeat (10)\n        change size by (1.3)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [1]> then\n        go to x: (164) y: (-109)\n    end\n    if <(Level) = [4]> then\n        go to x: (183) y: (124)\n    end\n    if <(Level) = [7]> then\n        go to x: (-177) y: (112)\n    end\n    if <(Level) = [9]> then\n        go to x: (-18) y: (-124)\n    end\n    if <(Level) = [11]> then\n        go to x: (-170) y: (89)\n    end\n    if <(Level) = [12]> then\n        go to x: (158) y: (109)\n    end\n    if <(Level) = [14]> then\n        go to x: (-172) y: (110)\n    end\n    if <(Level) = [16]> then\n        go to x: (109) y: (121)\n    end\n    if <(Level) = [17]> then\n        go to x: (180) y: (-125)\n    end\n    if <(Level) = [18]> then\n        hide\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nshow\nforever\n    repeat (20)\n        turn right (-2.5) degrees\n    end\n    repeat (20)\n        turn right (2.5) degrees\n    end\n    repeat (20)\n        turn right (2.5) degrees\n    end\n    repeat (20)\n        turn right (-2.5) degrees\n    end\nend\n\n@thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n@transist\n\nwhen flag clicked\nhide\n\nwhen I receive [transist v]\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nset [ghost v] effect to (0)\nwait (0.05) seconds\nrepeat (50)\n    go to [front v] layer\n    change [ghost v] effect by (2)\nend\nhide\n\n@level counter\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (모양 1 v)\nforever\n    switch costume to (Level)\nend\n\n