Sloth Platformer  

Instructions: Somehow on the trending page! Thanks everyone :)\n\nUse arrow keys to move.\n\nWant to learn how to make this game in 27 minutes? Check out my tutorial here! \nhttps://youtu.be/MAjobdDNqKY

@Stage\n\nwhen flag clicked\nforever\n    play sound [Cartoon x Time To Talk - Omen Ft Asena NCS Lyrics v] until done\n    play sound [Unknown Brain - Blackhole NCS Lyrics v] until done\n    play sound [Unknown Brain - Childhood Dreams NCS Lyrics v] until done\nend\n\n@Player\n\nwhen flag clicked\nset [level v] to [1]\nset [the end v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        Walk [5]\n        switch costume to (creature right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        Walk [-5]\n        switch costume to (creature left v)\n    end\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <key (space v) pressed?>> and <(In Air?) < [8]>> then\n        set [y vel v] to [14]\n    end\n    if <(x position) = [235]> then\n        go to x: (-200) y: (-71)\n        change [level v] by (1)\n    end\n    if <<touching (killer of player v)?> or <key (r v) pressed?>> then\n        go to x: (-200) y: (-71)\n    end\n    if <touching (the end v)?> then\n        change [the end v] by (1)\n        wait (2) seconds\n        go to x: (-200) y: (-71)\n        set [the end v] to [2]\n        set [level v] to [14]\n    end\n    if <not <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        switch costume to (creature middle v)\n    end\nend\n\ndefine Handle Ground <moving up>\nrepeat until <not <touching (ground v)?>>\n    if <moving up> then\n        change y by (-5)\n    else\n        change y by (1)\n        set [in air? v] to [0]\n    end\n    set [y vel v] to [0]\nend\n\ndefine Walk (steps)\nchange x by (steps)\nset [ground lift v] to [0]\nrepeat until <<not <touching (ground v)?>> or <(Ground Lift) = [8]>>\n    change y by (1)\n    change [ground lift v] by (1)\nend\nif <(Ground Lift) = [8]> then\n    change x by ((-1) * (steps))\n    change y by (-8)\nend\n\nwhen flag clicked\nshow\ngo to x: (-200) y: (-71)\nset rotation style [left-right v]\nset [y vel v] to [0]\nforever\n    change [y vel v] by (-2)\n    change y by (Y Vel)\n    change [in air? v] by (1)\n    Handle Ground <[0] < (Y Vel)>\nend\n\n@Player Trail\n\nwhen flag clicked\nforever\n    go to (player v)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nset size to (29) %\nrepeat (10)\n    change size by (-1)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Ground\n\nwhen flag clicked\nswitch costume to (level 1 v)\nset [level v] to [1]\nforever\n    switch costume to (Level)\n    if <(costume [number v]) = [1]> then\n        set [level v] to [1]\n    end\nend\n\nif <(THE END) = [1]> then\n    wait (1) seconds\n    switch costume to (finish!!!!! v)\nend\n\n@Killer Of Player\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (lava v)\nforever\n    if <<<(Level) = [1]> or <(Level) = [3]>> or <<<(Level) = [6]> or <(Level) = [8]>> or <<(Level) = [10]> or <(Level) = [14]>>>> then\n        switch costume to (lava v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (lot of spike v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (lava and big spike v)\n    end\n    if <(Level) = [9]> then\n        switch costume to (lava and spike v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (roundy spike v)\n    end\n    if <(Level) = [12]> then\n        switch costume to (spike up and down v)\n    end\n    if <(Level) = [13]> then\n        switch costume to (end kill v)\n    end\n    if <(THE END) = [1]> then\n        wait (1) seconds\n        switch costume to (lava v)\n    end\nend\n\n@Words\n\nwhen flag clicked\nswitch costume to (words level 1 v)\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\n@Dark Screen Intro\n\nwhen flag clicked\nset [ghost v] effect to (0)\nrepeat (100)\n    change [ghost v] effect by (5)\nend\n\n@Spot Light Picture\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@THE END\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [13]> then\n        show\n    else\n        hide\n    end\nend\n\n@White Screen Outro\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\nforever\n    if <(THE END) = [1]> then\n        repeat (100)\n            change [ghost v] effect by (-5)\n        end\n        wait (1.1) seconds\n        repeat (100)\n            change [ghost v] effect by (5)\n        end\n        hide\n    end\nend\n\n