Be Squared™ | Scrolling Platformer (Mobile Friendly)

Instructions: -----ALL ADVERTISING WILL BE REPORTED!!!------\n----------REMIX THIS PROJECT----------SPAM REMIX------\n----------CAN WE GET THIS TOP REMIXED?----------\n----------CAN WE GET THIS TO LOVED?------------------\n\nArrow Keys to move! Mobile Friendly!!! Well kinda... I mean it is, but I have never beaten it on mobile yet!\nTTTC (Total Time Taken To Create) Is around 34 hrs. CURRENT VERSION: 2.10.12\n\nPlease love and fave... this took forever to make........\nAlso check out my competition!!!: https://scratch.mit.edu/projects/421234348/\n\n\nTAGS: \n#square\n#squared\n#scrolling\n#Platformer\n#windbreaker\n#windbreakeryt\n#WindBreakerYT\n#WindBreakeryt\n\nNOT ACTUALLY TRADEMARKED, but I would like to know if you use this name!\n•.,¸,.•*¯`•.,¸,.•....╭━━━━╮ \n`•.,¸,.•*¯`•.,¸,.•*¯ |:::::::: /\:__:/\ \n`•.,¸,.•*¯`•.,¸,.•* ;|:::::::::(｡ ●ω●｡) \n`•.,¸,.•*¯`•.,¸,.•* ╰し---し---Ｊ･ﾟ\nCURATED BY: @tornadoyay1\nBefore Curation: Love=58 Fave=40 Views=300\nAfter Curation: Love=700 Fave=600 Views= 16000

@Stage\n\nwhen [m v] key pressed\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [, ] ((mouse y) + (SCROLL Y))))\nshow variable [mouse v]\n\nwhen [n v] key pressed\nhide variable [mouse v]\n\nwhen flag clicked\nhide variable [mouse v]\n\nwhen flag clicked\nhide variable [collected v]\nshow variable [xd v]\n\nwhen flag clicked\nhide variable [xd v]\nwait (1.15) seconds\nshow variable [xd v]\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [5]> then\n        hide variable [xd v]\n    end\nend\n\n@Blank\n\n@Player\n\nwhen flag clicked\nswitch costume to ( right v)\nhide\nwait (1) seconds\nshow\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [green flag v]\npoint in direction (90)\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\npoint in direction (90)\nswitch costume to ( right v)\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [win]> then\n        Game- WIN\n    else\n        Game- DIE\n    end\nend\n\ndefine Tick\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    switch costume to (left v)\n    change [sx v] by (-2)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    change [sx v] by (2)\n    switch costume to ( right v)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x By (round (sx))\nend\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <(In Air) < [4]> then\n        set [sy v] to [16]\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nChange Player y By (sy)\nTest- DIE\nset [scroll x v] to (x)\nif <(SCROLL X) < [-100]> then\n    set [scroll x v] to [-100]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (5)))\nif <(SCROLL Y) < [-40]> then\n    set [scroll y v] to [-40]\nend\nPosition\n\ndefine Change Player y By (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player x By (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game- DIE\npoint in direction (90)\nswitch costume to ( right v)\nset [exit v] to []\nstart sound [OOF v]\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Test- DIE\npoint in direction (90)\nif <<touching (danger v)?> or <(y) < [-140]>> then\n    set [exit v] to [die]\nend\n\nwhen flag clicked\npoint in direction (90)\nwait (1) seconds\nforever\n    play sound [Elektronomia - Sky High \[NCS Release\] v] until done\nend\n\ndefine Game- WIN\npoint in direction (90)\nswitch costume to ( right v)\nrepeat (50)\n    point towards (exit v)\n    turn right (0) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\n\ndefine Game On\nset size to (100) %\nset [x v] to [0]\nset [y v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset [ghost v] effect to (0)\nshow\n\nwhen flag clicked\npoint in direction (90)\n\nwhen flag clicked\n\nforever\n\nwait (pick random (3) to (5)) seconds\nif <<(costume [number v]) = [1]> and <key (right arrow v) pressed?>> then\n    Right Blink\nend\n\ndefine Left Blink\nswitch costume to (left v)\nwait (0.03) seconds\nswitch costume to (blinking left2 v)\nwait (0.03) seconds\nswitch costume to (blinking left3 v)\nwait (0.03) seconds\nswitch costume to (blinking left4 v)\nwait (0.03) seconds\nswitch costume to (blinking left5 v)\nwait (0.03) seconds\nswitch costume to (blinking left5 v)\nwait (0.03) seconds\nswitch costume to (blinking left4 v)\nwait (0.03) seconds\nswitch costume to (blinking left3 v)\nwait (0.03) seconds\nswitch costume to (blinking left2 v)\nwait (0.03) seconds\nswitch costume to (left v)\n\ndefine Right Blink\nswitch costume to ( right v)\nwait (0.03) seconds\nswitch costume to (blinking right2 v)\nwait (0.03) seconds\nswitch costume to (blinking right3 v)\nwait (0.03) seconds\nswitch costume to (blinking right4 v)\nwait (0.03) seconds\nswitch costume to (blinking right5 v)\nwait (0.03) seconds\nswitch costume to (blinking right5 v)\nwait (0.03) seconds\nswitch costume to (blinking right4 v)\nwait (0.03) seconds\nswitch costume to (blinking right3 v)\nwait (0.03) seconds\nswitch costume to (blinking right2 v)\nwait (0.03) seconds\nswitch costume to ( right v)\nwait (0.03) seconds\n\nwhen flag clicked\n\nforever\n\nwait (pick random (3) to (5)) seconds\nif <<(costume [number v]) = [2]> and <key (left arrow v) pressed?>> then\n    Left Blink\nend\n\nwhen flag clicked\nforever\n    set [xd v] to (join (join (COLLECTED) [/]) (COLLECTED MAX))\nend\n\n@Collectable\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    change [collected v] by (1)\n    if <(COLLECTED) = (COLLECTED MAX)> then\n        broadcast (Open Exit v)\n    end\n    delete this clone\nend\n\nwhen I receive [setup v]\nshow\nset [collected v] to [0]\nset [collected max v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (collectable v)\n    Clone at x: [100] y: [0]\n    Clone at x: [160] y: [50]\n    Clone at x: [340] y: [20]\n    Clone at x: [422] y: [20]\n    Clone at x: [500] y: [20]\n    Clone at x: [593] y: [65]\n    Clone at x: [382] y: [100]\n    Clone at x: [290] y: [130]\n    Clone at x: [900] y: [0]\n    Clone at x: [800] y: [130]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (collectable v)\n        Clone at x: [-90] y: [-90]\n        Clone at x: [130] y: [40]\n        Clone at x: [-85] y: [175]\n        Clone at x: [-85] y: [220]\n        Clone at x: [75] y: [160]\n        Clone at x: [140] y: [160]\n        Clone at x: [350] y: [-80]\n        Clone at x: [480] y: [-30]\n        Clone at x: [636] y: [14]\n        Clone at x: [770] y: [55]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (collectable v)\n            Clone at x: [160] y: [140]\n            Clone at x: [420] y: [0]\n            Clone at x: [477] y: [15]\n            Clone at x: [523] y: [15]\n            Clone at x: [777] y: [63]\n            Clone at x: [850] y: [110]\n            Clone at x: [905] y: [5]\n            Clone at x: [1078] y: [-66]\n            Clone at x: [1100] y: [65]\n            Clone at x: [1100] y: [100]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (collectable v)\n                Clone at x: [100] y: [-90]\n                Clone at x: [130] y: [-90]\n                Clone at x: [160] y: [-90]\n                Clone at x: [160] y: [60]\n                Clone at x: [160] y: [90]\n                Clone at x: [160] y: [120]\n            end\n        end\n    end\nend\nset [x v] to [99999999999999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [collected max v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I receive [reset v]\ndelete this clone\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [400] y: [0]\n        Clone at x: [400] y: [0]\n        Clone at x: [400] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [400] y: [0]\n            Clone at x: [400] y: [0]\n            Clone at x: [400] y: [0]\n            Clone at x: [400] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone at x: [400] y: [0]\n                Clone at x: [200] y: [500]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone at x: [400] y: [0]\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I start as a clone\nwait (0) seconds\nshow\n\nwhen I receive [reset v]\ndelete this clone\n\n@Danger\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [400] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [400] y: [0]\n        Clone at x: [400] y: [0]\n        Clone at x: [400] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [400] y: [0]\n            Clone at x: [400] y: [0]\n            Clone at x: [400] y: [0]\n            Clone at x: [400] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone at x: [400] y: [0]\n                Clone at x: [400] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone at x: [400] y: [0]\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I start as a clone\nwait (0) seconds\nshow\n\nwhen I receive [reset v]\ndelete this clone\n\n@Exit\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(costume [number v]) = [2]> and <touching (player v)?>> then\n    set [exit v] to [win]\nend\n\nwhen I receive [setup v]\nshow\nset [collected v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (exit closed v)\n    Clone at x: [686] y: [40]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (exit closed v)\n        Clone at x: [890] y: [50]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (exit closed v)\n            Clone at x: [1200] y: [200]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (exit closed v)\n                Clone at x: [657] y: [321]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (exit closed v)\n                    Clone at x: [10000] y: [10000]\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [open exit v]\nswitch costume to (exit open v)\n\nwhen flag clicked\nswitch costume to (exit closed v)\n\nwhen I receive [reset v]\nswitch costume to (exit closed v)\n\n@Hiding\n\nwhen flag clicked\nwait (0.9) seconds\nforever\n    go to [front v] layer\nend\n\n@TN\n\nwhen flag clicked\ngo to [front v] layer\nshow\ngo to x: (-50) y: (-25)\nwait (1) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n