Earth - A Platformer #Games
@Stage\n\n@Player\n\nwhen backdrop switches to [backdrop1 v]\nforever\n    if <(backdrop [name v]) = [YouWin]> then\nend\n\nwhen flag clicked\nswitch backdrop to (ask to play backdrop. v)\n\nwhen I receive [next level v]\ngo to x: (-176) y: (-67)\n\nwhen backdrop switches to [game backround v]\nforever\n    if <touching (portal v)?> then\n        broadcast (Next Level v)\n    end\nend\n\nwhen backdrop switches to [ask to play backdrop. v]\nhide\n\nwhen backdrop switches to [game backround v]\nshow\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-176) y: (-67)\n    end\nend\n\nwhen backdrop switches to [youwin v]\nhide\nstop [this script v]\n\nwhen backdrop switches to [game backround v]\nhide variable [time v]\ngo to x: (-199) y: (-6)\nshow\nswitch costume to (costume2 v)\nset size to (50) %\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume3 v)\n        change [xv v] by (-0.5)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume2 v)\n        change [xv v] by (0.5)\n    end\n    change x by (Xv)\n    set [xv v] to ((Xv) * (0.9))\n    if <touching (ground v)?> then\n        change y by (0.5)\n        if <touching (ground v)?> then\n            change y by (0.5)\n            if <touching (ground v)?> then\n                change y by (0.5)\n                if <touching (ground v)?> then\n                    change y by (0.5)\n                    if <touching (ground v)?> then\n                        change y by (0.5)\n                        if <touching (ground v)?> then\n                            change y by (0.5)\n                            if <touching (ground v)?> then\n                                change y by (0.5)\n                                if <touching (ground v)?> then\n                                    change y by (0.5)\n                                    if <touching (ground v)?> then\n                                        if <key (up arrow v) pressed?> then\n                                            if <(Xv) > [0]> then\n                                                set [xv v] to [-7]\n                                            else\n                                                set [xv v] to [7]\n                                            end\n                                            set [yv v] to [10]\n                                        else\n                                            set [xv v] to ((Xv) * (-1.3))\n                                            change x by (Xv)\n                                            set [xv v] to [0]\n                                            change x by ((Xv) / (5))\n                                        end\n                                        change y by (-4)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-0.5)\n    change y by (Yv)\n    if <touching (ground v)?> then\n        set [yv v] to ((Yv) * (-0.25))\n        change y by (Yv)\n        if <touching (ground v)?> then\n            change y by (Yv)\n            if <touching (ground v)?> then\n                change y by (Yv)\n                if <touching (ground v)?> then\n                    change y by (Yv)\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <key (up arrow v) pressed?>> then\n        set [yv v] to [10]\n    end\n    change y by (1)\nend\n\n@Ground\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [ask to play backdrop. v]\nhide\n\nwhen backdrop switches to [game backround v]\nshow\n\nwhen backdrop switches to [youwin v]\nhide\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [Costume7]> then\n        switch backdrop to (youwin v)\n        stop [this script v]\n    end\nend\n\n@Portal\n\nif <touching (<(costume [name v]) = [costume1]> v)?> then\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\nend\n\n\n\nwhen backdrop switches to [youwin v]\nhide\nstop [this script v]\n\nwhen flag clicked\nshow\n\n@Music\n\nwhen flag clicked\nforever\n    play sound [TheFatRat - Prelude \(Jackpot EP Track 3\) v] until done\nend\n\n@Play\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [ask to play backdrop. v]\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [ask to play backdrop. v]\nshow\nforever\n    point in direction ((([cos v] of ((timer) * (200)) ) * (5)) + (90))\n    set y to (([cos v] of ((timer) * (200)) ) * (10))\nend\n\nwhen this sprite clicked\nforever\n    hide\n    switch backdrop to (game backround v)\n    stop [this script v]\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((110) - (size)) / (3))\n    else\n        change size by (((100) - (size)) / (3))\n    end\n    if <mouse down?> then\n        broadcast (play v)\n    end\nend\n\n@Clouds\n\nwhen backdrop switches to [ask to play backdrop. v]\nhide\nforever\n    wait (pick random (pick random (1) to (1.5)) to (pick random (1.6) to (2.1))) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [cos# v] to (pick random (1) to (3))\nset [speed v] to (pick random (-4.5) to (-5.5))\nset [ghost v] effect to (pick random (10) to (20))\nset [brightness v] effect to (pick random (-2) to (2))\nset size to (pick random (95) to (105)) %\ngo to [back v] layer\nshow\ngo to x: (225) y: (pick random (60) to (130))\nrepeat until <(x position) < [-225]>\n    change x by (speed)\nend\nrepeat (55)\n    change [ghost v] effect by (8)\nend\ndelete this clone\n\n@Earth\n\nwhen backdrop switches to [ask to play backdrop. v]\nshow\n\nwhen backdrop switches to [game backround v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to x: (0) y: (5)\n    go to [front v] layer\nend\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [ask to play backdrop. v]\nhide\n\nwhen I receive [next level v]\nshow\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [youwin v]\nhide\nstop [this script v]\n\n
Earth A Platformer\nEARTH 2 IS BETTER!\nHow to play: Use arrow keys to move. Jump over spikes.\nCredits. @-PandaMC- for some music and start button.\nCode by me.\nENJOY!\nFOLLOW ME  @Ryham301. Like and fave. Bye!\n#13 on trending for search for Earth\nMore Levels Coming Soon!\n