Red Cube - Platformer
@Stage\n\n@Player\n\nwhen flag clicked\nforever\n    Scrolling Code\nend\n\ndefine Scrolling Code\nchange [y-vel v] by (-1)\nif <key (right arrow v) pressed?> then\n    change [x-vel v] by (1)\n    switch costume to (player v)\nend\nif <key (left arrow v) pressed?> then\n    change [x-vel v] by (-1)\n    switch costume to (player2 v)\nend\nset [x-vel v] to ((x-vel) * (0.9))\nchange x by (x-vel)\nif <touching (levels v)?> then\n    change y by (1)\nend\nif <touching (levels v)?> then\n    change y by (1)\nend\nif <touching (levels v)?> then\n    change y by (1)\nend\nif <touching (levels v)?> then\n    change y by (1)\nend\nif <touching (levels v)?> then\n    change y by (-4)\n    change x by ((x-vel) * (-1))\n    if <key (up arrow v) pressed?> then\n        set [y-vel v] to [15]\n        if <(x-vel) > [0]> then\n            set [x-vel v] to [-10]\n        else\n            set [x-vel v] to [10]\n        end\n    else\n        set [x-vel v] to [0]\n    end\nend\nchange y by (y-vel)\nif <touching (levels v)?> then\n    change y by ((y-vel) - ((y-vel) * (2)))\n    set [y-vel v] to [0]\nend\nchange y by (-1)\nif <<key (up arrow v) pressed?> and <touching (levels v)?>> then\n    set [y-vel v] to [15]\nend\nchange y by (1)\nchange [scroll x v] by ((x position) * (-1))\nchange [scroll y v] by ((y position) * (-1))\ngo to x: (0) y: (0)\nif <touching (lava v)?> then\n    Position\nend\nif <(Scroll Y) > [600]> then\n    Position\nend\n\ndefine Position\nset [scroll x v] to [217]\nset [scroll y v] to [119]\n\nwhen flag clicked\nforever\n\nwhen flag clicked\nshow\n\n@Levels\n\nwhen flag clicked\nset [scroll x v] to [217]\nset [scroll y v] to [119]\n\nwhen flag clicked\nforever\n    go to x: (Scroll X) y: (Scroll Y)\nend\n\nwhen flag clicked\nshow\n\n@Lava\n\nwhen flag clicked\n\nforever\n    if <<(Scroll X) = (x position)> and <(Scroll Y) = (y position)>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    go to (levels v)\nend\n\nwhen flag clicked\nshow\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\n@YT\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (1) to (7)) seconds\n    switch costume to (costume1 v)\n    go to x: (351) y: (320)\n    show\n    go to [front v] layer\n    repeat (9)\n        change y by (-6)\n    end\n    repeat (5)\n        change y by (3)\n    end\n    repeat (5)\n        change y by (-1)\n    end\n    wait (2) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\nend\n\n@Sound\n\nwhen flag clicked\nforever\n    play sound [Geometry Dash - Back on Track - All Coins v] until done\nend\n\n
Use the arrow keys to move.\nYou can stick to ceilings and jump off them.\n\nThis platformer is a loop! \nYou go around in a circle. But as you go around, things get harder, until you get stuck and have to find a secret...\n