Cyansquare || A Mobile Friendly Platformer #All #Games #Platformer #Trending #MobileFriendly

Instructions: ------------This is my platformer Cyansquare!----------\n----------Make sure to ❤️ and ⭐ if you like it!--------\n-------------------------------------------------------------------                         \n || || || || || || || || ||  How to play?  || || || || || || || || || ||\n-------------------------------------------------------------------\nYou have to get to the portal at the end to go to the next level. You also have to avoid the spikes and lava. Use arrow keys,  WASD, or tap to move. You can also use space to jump. Yellow are jump pads, and blue is speed boosts.\n--------------------------------------------------------------------\n  || || || || || || || || || || || || || || || || || || || || || || || || || || || \n--------------------------------------------------------------------

@Stage\n\n@Sprite1\n\n@Important things//Player\n\ndefine Move - in steps (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speed x) / (steps))\n    if <touching color (#808080)?> then\n        set x to (last value)\n        set [speed x v] to [0]\n    end\n    set [last value v] to (y position)\n    change y by ((speed y) / (steps))\n    if <touching color (#808080)?> then\n        set y to (last value)\n        set [speed y v] to [0]\n        set [falling v] to [0]\n    end\nend\n\nwhen I receive [play again v]\nset [gravity v] to [-1]\nset [speed y v] to [0]\ngo to x: (-150) y: (55)\n\nwhen flag clicked\nswitch costume to (player v)\nset [gravity v] to [-1]\nset [speed y v] to [0]\ngo to x: (-150) y: (55)\nforever\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <key (space v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n        if <(falling) < [3]> then\n            set [speed y v] to [12]\n        end\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [speed x v] by (-1.5)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [speed x v] by (1.5)\n    end\n    set [speed x v] to ((speed x) * (0.8))\n    change [speed y v] by (GRAVITY)\n    Move - in steps (([abs v] of (speed x) ) + ([abs v] of (speed y) ))\n    if <<touching color (#ef0000)?> or <touching color (#cf0000)?>> then\n        set [gravity v] to [-1]\n        set [speed y v] to [0]\n        go to x: (-150) y: (55)\n    end\n    if <<<touching color (#922bff)?> or <touching color (#7900e6)?>> or <touching color (#6200cc)?>> then\n        broadcast (next level v)\n    end\n    if <touching color (#fff100)?> then\n        set [speed y v] to [20]\n    end\n    if <touching color (#0090ff)?> then\n        set [speed x v] to [65]\n    end\n    set [player x v] to (x position)\n    set [player y v] to (y position)\nend\n\n@Important things//Level\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\nbroadcast (play again v)\n\n@More Important things//background\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    set y to ((player y) / (6))\n    set x to ((player x) / (6))\nend\n\n@More Important things//Thumbnail\n\nwhen flag clicked\nforever\n    set [thumbnail v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <(thumbnail) > [0.01]> then\n        go to [front v] layer\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(thumbnail) < [0.01]>> then\n        go to [front v] layer\n        show\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\nshow\nwait (0.3) seconds\nforever\n    change [ghost v] effect by (25)\nend\n\n@Addons//sound\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nforever\n    play sound [Dubstep v] until done\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        set [pitch v] effect to (0)\n        set volume to (100) %\n    end\n    if <(costume [number v]) = [2]> then\n        set [pitch v] effect to ((-1) / ())\n        set volume to (0) %\n    end\nend\n\n@Addons//Like fave & follow\n\nwhen flag clicked\nforever\n    hide\n    wait (4) seconds\n    go to x: (-165) y: (181)\n    show\n    glide (1) secs to x: (-165) y: (155)\n    wait (1) seconds\n    glide (1) secs to x: (-165) y: (181)\nend\n\n