Egg Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nswitch backdrop to (backdrop3 v)\n\n@player\n\nwhen I receive [makeplayerfollowhitbox v]\ngo to (follow me v)\n\nwhen flag clicked\nshow\nswitch costume to (egg-a v)\nset rotation style [left-right v]\npoint in direction (90)\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to ((costume [number v]) + (1))\n        point in direction (90)\n    else\n        if <key (left arrow v) pressed?> then\n            switch costume to ((costume [number v]) - (1))\n            point in direction (-90)\n        else\n            switch costume to (egg-a v)\n        end\n    end\n    wait (0.04) seconds\nend\n\nwhen flag clicked\nset [timer v] to [0]\nshow variable [timer v]\nforever\n    change [timer v] by (1)\n    wait (1) seconds\n    if <(backdrop [number v]) = [2]> then\n        hide variable [timer v]\n        stop [this script v]\n    end\nend\n\n@FOLLOW ME\n\nwhen flag clicked\nset size to (100) %\nset [spawnx v] to [-204]\nset [spawny v] to [-111]\ngo to x: (SpawnX) y: (SpawnY)\nset rotation style [left-right v]\nset [yvelocity v] to [0]\nset [xvelocity v] to [0]\nset [ghost v] effect to (100)\nforever\n    broadcast (Makeplayerfollowhitbox v)\n    Up/Down Movement [12] [-1]\n    Left/Right Movement [10] [0.6]\n    CheckNextLevel\n    Checktext\n    Checkfallofscreen\nend\n\nshow\n\ndefine Up/Down Movement (jump height) (fall speed)\nchange y by (yvelocity)\nif <touching (levels v)?> then\n    Checktouchinglava\n    repeat ([ceiling v] of ([abs v] of (yvelocity) ) )\n        if <touching (levels v)?> then\n            change y by (((yvelocity) / ([abs v] of (yvelocity) )) * (-1))\n        end\n    end\n    if <<not <(yvelocity) > [0]>> and <<key (space v) pressed?> or <key (up arrow v) pressed?>>> then\n        set [yvelocity v] to (jump height)\n    else\n        set [yvelocity v] to [0]\n    end\nelse\n    change [yvelocity v] by (fall speed)\nend\n\ndefine Left/Right Movement (move speed) (drag)\nchange x by (xVelocity)\nif <touching (levels v)?> then\n    Checktouchinglava\n    repeat ([ceiling v] of ([abs v] of (xVelocity) ) )\n        if <touching (levels v)?> then\n            change x by (((xVelocity) / ([abs v] of (xVelocity) )) * (-1))\n        end\n    end\n    set [xvelocity v] to [0]\nend\nif <key (right arrow v) pressed?> then\n    set [xvelocity v] to (move speed)\nelse\n    if <key (left arrow v) pressed?> then\n        set [xvelocity v] to ((move speed) * (-1))\n    end\nend\nset [xvelocity v] to ((xVelocity) * (drag))\n\ndefine CheckNextLevel\nif <(x position) > [245]> then\n    broadcast (Next Level v)\n    go to x: (SpawnX) y: (SpawnY)\nend\n\ndefine Checktouchinglava\nif <<touching color (#ff0000)?> or <touching color (#a5a5a5)?>> then\n    go to x: (SpawnX) y: (SpawnY)\nend\n\ndefine Checktext\nif <(Level) = [10]> then\n    switch backdrop to (backdrop2 v)\nend\n\ndefine Checkfallofscreen\nif <(y position) < [-190]> then\n    go to x: (SpawnX) y: (SpawnY)\nend\n\ngo to [front v] layer\n\n@levels\n\nwhen flag clicked\nshow\nshow variable [level v]\nset [level v] to [1]\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nchange [level v] by (1)\nnext costume\n\nwhen backdrop switches to [backdrop2 v]\nhide variable [level v]\n\n@Sprite1\n\nwhen flag clicked\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\n\n
Reload your page!\nUp arrow/Space- Jump\nRight/Left arrow keys- Move\nDon't jump in lava or don't touch spikes\nGood luck Eggs, you have entered the quest of life.\nReach the end to win!\n*Full screen NOT recommended* \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nFIND THE BANANA! pls don't cheat by going inside project.\n\n\n\n\n\n\nComment if you find banana\n\n\n\n\n\n\n\n\n\n\n\nI HATE BANANA, I DON'T EAT THEM