Life - a Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [youth v] until done\nend\n\n@Sprite1\n\ndefine Platform gravity: (gravity) Jump height: (jump height) Side Movement Speed: (side movement) Friction (friction) slope: (slope)\nchange [yv v] by (gravity)\nchange y by (Yv)\nif <touching color (#ccffd9)?> then\n    repeat until <not <touching color (#ccffd9)?>>\n        change y by ((([abs v] of (Yv) ) / (Yv)) * (-1))\n    end\n    if <<key (up arrow v) pressed?> and <(([abs v] of (Yv) ) / (Yv)) = [-1]>> then\n        set [yv v] to (jump height)\n    else\n        set [yv v] to [0]\n    end\nend\nset [xv v] to (((Xv) + ((<key (left arrow v) pressed?> * ((side movement) * (-1))) + (<key (right arrow v) pressed?> * (side movement)))) * (friction))\nchange x by (Xv)\nset [slope v] to [0]\nrepeat until <<(slope) = ((slope) * (-1))> or <not <touching color (#ccffd9)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching color (#ccffd9)?> then\n    change y by (slope)\n    repeat until <not <touching color (#ccffd9)?>>\n        change x by ((([abs v] of (Xv) ) / (Xv)) * (-1))\n    end\nend\n\nwhen I receive [message1 v]\ngo to x: (-200) y: (0)\n\nwhen flag clicked\ngo to x: (-200) y: (-50)\nswitch backdrop to (backdrop1 v)\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    Platform gravity: [-1] Jump height: [14] Side Movement Speed: [3] Friction [0.8] slope: [8]\n    if <(x position) > [240]> then\n        next backdrop\n        go to x: (-200) y: (-120)\n    end\n    if <<touching color (#ffcccc)?> or <touching color (#d095ac)?>> then\n        go to x: (-200) y: (-100)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <key (r v) pressed?> then\n        go to x: (-200) y: (-100)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\nend\n\n@Sprite2\n\nwhen backdrop switches to [backdrop7 v]\nshow\nwait (8) seconds\nhide\n\nwhen flag clicked\nhide\n\n@thumbnail\n\nwhen flag clicked\nshow\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.03) seconds\nend\nhide\n\n
Hi ===<3    (✩˙Ⱉ˙ฅ)\nIt's @Sophiaaaa- here again!\nWelcome to Life - a Platformer\n\nInstructions-\n→ Arrow keys to move\n→ Press R to restart\n\nEnJoY~~~~~\n\n#platformer #life #game #games