Earth (A Mobile Platformer)
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [intro finished v]\nswitch backdrop to (blue sky 2  v)\n\nwhen I receive [intro finished v]\nforever\n    if <(Level) = [6]> then\n        switch backdrop to (backdrop2 v)\n    end\n    if <(Level) = [10]> then\n        switch backdrop to (backdrop3 v)\n    end\n    if <(Level) = [9]> then\n        switch backdrop to (backdrop4 v)\n    end\n    if <(Level) = [5]> then\n        switch backdrop to (backdrop5 v)\n    end\nend\n\nwhen I receive [next level / transition v]\n\nwhen I receive [reset player v]\n\n@Thumbnail\n\nwhen flag clicked\nshow\ngo to [front v] layer\nwait (1) seconds\nset [ghost v] effect to (100)\nbroadcast (start finished v)\n\nchange size by (10)\n\ngo to [back v] layer\n\n@Sprite1\n\nwhen flag clicked\nhide\nforever\n    change [color v] effect by (10)\nend\n\nwhen I receive [start finished v]\ngo to [back v] layer\nshow\n\nwhen flag clicked\nset volume to (100) %\nhide\nforever\n    switch costume to (costume11 v)\nend\n\nwait (.15) seconds\n\nnext costume\n\nwait (.15) seconds\n\nnext costume\nwait (.2) seconds\nnext costume\nwait (.2) seconds\nnext costume\nwait (.2) seconds\nnext costume\nwait (.2) seconds\nnext costume\nwait (.2) seconds\nnext costume\nwait (.2) seconds\nnext costume\nwait (.2) seconds\nnext costume\nwait (.2) seconds\nnext costume\nwait (.2) seconds\n\nwhen I receive [menue v]\nhide\n\nwhen I receive [start finished v]\nstart sound [dad da that da2 v]\n\nwhen I receive [menue v]\nstop all sounds\n\n@Name\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nif <(costume [name v]) = [tonyshark_ts]> then\n    clear graphic effects\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nelse\n    hide\n    set size to (10) %\n    repeat (25)\n        turn right (1) degrees\n        switch costume to (black2 v)\n        go to [front v] layer\n        show\n        change size by (300)\n        switch costume to (black v)\n    end\n    broadcast (Menue v)\nend\n\nwhen I receive [menue v]\nif  then\n    delete this clone\nend\nhide\nset volume to (0) %\n\nwhen I receive [menue v]\nstop [other scripts in sprite v]\n\nwhen I receive [start finished v]\nshow\ngo to [front v] layer\nreset timer\nhide\nset volume to (100) %\nswitch costume to (tonyshark_ts v)\npoint in direction (90)\ngo to x: (0) y: (0)\nset size to (500) %\nset [intro: ghost v] to [100]\nset [ghost v] effect to (intro: ghost)\nshow\nwait (0.25) seconds\nrepeat (35)\n    change size by (((100) - (size)) / (5))\n    change [intro: ghost v] by (((0) - (intro: ghost)) / (5))\n    set [ghost v] effect to (intro: ghost)\nend\nset size to (200) %\nrepeat (10)\n    change size by (((250) - (size)) / (5))\nend\nrepeat (30)\n    change size by (((150) - (size)) / (5))\nend\nset size to (150) %\nrepeat (10)\n    change y by (-27)\n    create clone of (_myself_ v)\n    turn right (18) degrees\nend\nset y to ((0) - (y position))\nrepeat (10)\n    change y by (-25)\n    create clone of (_myself_ v)\n    turn right (18) degrees\nend\nwait (0.25) seconds\nswitch costume to (black v)\ncreate clone of (_myself_ v)\nswitch costume to (tonyshark_ts v)\nrepeat (20)\n    change volume by (-5)\nend\nbroadcast (Menue v)\n\n@MenueSprite3-?\n\nwhen I receive [menue v]\ngo to x: (0) y: (0)\nshow\nPlay Button Appear\nSkins Button\n\ndefine Play Button Appear\nbroadcast (Play Button Appear v)\n\ndefine Skins Button\nbroadcast (Skins Button v)\n\nwhen flag clicked\nset [hiding v] to [YEs]\nhide\n\nbroadcast (intro finished v)\n\nwhen I receive [intro finished v]\nset [hiding v] to [Yep]\nhide\n\n@FIXED Play Button\n\nwhen flag clicked\nhide\n\nwhen I receive [play button appear v]\nshow\ngo to x: (1) y: (15)\npoint in direction (90)\nrepeat until <mouse down?>\n    turn right (1) degrees\n    if <touching (mouse-pointer v)?> then\n        switch costume to (mouse pointer v)\n    else\n        switch costume to (no mouse pointer v)\n    end\nend\nbroadcast (intro finished v)\n\nwhen I receive [intro finished v]\nhide\n\nbroadcast (Play Button Appear v)\n\n@player\n\nwhen I start as a clone\nswitch costume to (trail v)\nset size to (25) %\nset [brightness v] effect to (0)\nrepeat (30)\n    change [ghost v] effect by (3.3)\nend\ndelete this clone\n\ndefine Fast\nrepeat (6)\n    if <touching (levels v)?> then\n        change y by (1)\n    end\nend\n\ndefine Y Collision\nrepeat until <not <touching (levels v)?>>\n    if <(y) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\ndefine X Collision\nrepeat until <not <touching (levels v)?>>\n    if <(x) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\nwhen I start as a clone\nswitch costume to (trail v)\nset size to (25) %\nset [ghost v] effect to (0)\nrepeat (5)\n    change [ghost v] effect by (20)\n    change size by (-2)\nend\n\nwhen I receive [play game v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [setup 4 player v]\ngo to x: (-200) y: (0)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [reset player v]\ngo to x: (-200) y: (0)\nset [x v] to [0]\nset [y v] to [0]\n\nforever\n    if <touching (sprite7 v)?> then\n        wait (0.5) seconds\n        start sound [Glass Breaking v]\n        play sound [Glass Breaking v] until done\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    glide (0.2) secs to (player v)\nend\n\nwhen I receive [intro finished v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [intro finished v]\nshow\nset [level v] to [1]\nshow\ngo to x: (-200) y: (0)\nswitch costume to (right v)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    set drag mode [not draggable v]\n    change [y v] by (-1)\n    if <touching (bouncy  v)?> then\n        set [movement y v] to [17]\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (right v)\n        change [x v] by (.8)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        switch costume to (left v)\n        change [x v] by (-.8)\n    end\n    set [x v] to ((x) * (0.946))\n    change x by (x)\n    if <touching (levels v)?> then\n        Fast\n        if <touching (levels v)?> then\n            change y by (-6)\n            X Collision\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                set [y v] to [12]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-8]\n                else\n                    set [x v] to [8]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n    end\n    change y by (y)\n    if <touching (levels v)?> then\n        Y Collision\n        if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <(y) < [0]>> then\n            set [y v] to [14]\n        else\n            set [y v] to [0]\n        end\n    end\n    if <(x position) > [235]> then\n        broadcast (Next Level / Transition v)\n        go to x: (-200) y: (0)\n        change [level v] by (1)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <<<touching (lava v)?> or <touching (spikes v)?>> or <touching (lava2 v)?>> then\n        broadcast (fade trail fade! v)\n        set [brightness v] effect to (0)\n        change [brightness v] effect by (25)\n        wait (0.2) seconds\n        set [brightness v] effect to (0)\n        broadcast (Reset Player v)\n    end\n    if <touching (tramp v)?> then\n        set [y v] to [20]\n    end\nend\n\nwhen I receive [fade trail fade! v]\nchange [fade v] by (1)\n\nwhen flag clicked\nset [fade v] to [0]\n\nwhen I start as a clone\nforever\n    if <(fade) > [1]> then\n        set [fade v] to [0]\n        set [brightness v] effect to (0)\n        change [brightness v] effect by (25)\n        wait (0.2) seconds\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [next level / transition v]\ngo to x: (-200) y: (20)\n\nbroadcast (intro finished v)\n\nwhen I receive [dooonne v]\nshow\ngo to x: (-200) y: (0)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [next level / transition v]\nhide\n\nwhen I receive [reset player v]\nhide\n\n@levels\n\nwhen flag clicked\nhide\n\nwhen I receive [intro finished v]\nshow\nforever\n    switch costume to (Level)\n    go to x: (0) y: (-11)\n    go to [back v] layer\n    set [level v] to (Level)\nend\n\n@Transition Screen2\n\nwhen flag clicked\nHide\n\nwhen I receive [intro finished v]\nHide\n\nwhen I receive [next level / transition v]\nswitch costume to (transition screen nl v)\nSet Up Transition\n\nwhen I receive [menue v]\nHide\n\nwhen I receive [reset player v]\nswitch costume to (transition screen ta v)\nSet Up Transition\n\ndefine Hide\nhide\nset drag mode [not draggable v]\nhide\ngo to x: (467) y: (0)\ngo to [front v] layer\n\ndefine Set Up Transition\nshow\ngo to x: (467) y: (0)\nset [transition x v] to [0]\nrepeat (20)\n    change [transition x v] by (-5)\n    change x by (Transition X)\nend\nrepeat until <(x position) = [-464]>\n    change x by (((0) - (x position)) / (3))\nend\nbroadcast (dooonne v)\nhide\nHide\n\n@Music :D\n\nwhen I receive [intro finished v]\nshow\nswitch costume to (on v)\nset volume to (100) %\nforever\n    go to [front v] layer\n    play sound [Elektronomia - Sky High \[NCS Release\] v] until done\nend\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen this sprite clicked\nnext costume\nif <(costume [name v]) = [On]> then\n    set volume to (100) %\nend\nif <(costume [name v]) = [Off]> then\n    set volume to (0) %\nend\n\nwhen [m v] key pressed\nnext costume\nif <(costume [name v]) = [On]> then\n    set volume to (100) %\nend\nif <(costume [name v]) = [Off]> then\n    set volume to (0) %\nend\n\nwhen I receive [stop ze music v]\n\nset volume to (0) %\n\nwhen I receive [dooonne v]\nshow\n\nwhen I receive [reset player v]\nhide\n\nwhen I receive [next level / transition v]\nhide\n\n@Trees\n\nwhen flag clicked\nhide\n\nwhen I receive [intro finished v]\nshow\nforever\n    switch costume to (Level)\n    go to [back v] layer\n    go [forward v] (1) layers\nend\n\n@sign\n\nsay [To move use W,A,D] for (0.7) seconds\nsay [or the arrow keys] for (0.7) seconds\n\nsay [Well done] for (0.7) seconds\nsay [You Win] for (0.7) seconds\n\nwhen flag clicked\nhide\n\ngo to [back v] layer\n\nwhen I receive [intro finished v]\ngo to x: (36) y: (43)\nshow\nswitch costume to (costume1 v)\ngo to [back v] layer\nforever\n    if <(Level) = [10]> then\n        go to x: (-115) y: (-93)\n        if <touching (player v)?> then\n            say [You Win] for (0.7) seconds\n            wait (0.5) seconds\n        end\n    end\n    if <(Level) = [9]> then\n        go to x: (-162) y: (-89)\n        if <touching (player v)?> then\n            say [Lava and Spikes and Lava] for (0.7) seconds\n            wait (0.5) seconds\n        end\n    end\n    if <(Level) = [8]> then\n        go to x: (-140) y: (-91)\n        if <touching (player v)?> then\n            say [Double Lava] for (0.7) seconds\n            wait (0.5) seconds\n        end\n    end\n    if <(Level) = [7]> then\n        go to x: (17) y: (-91)\n        if <touching (player v)?> then\n            say [Aah Spikes] for (.7) seconds\n            wait (0.5) seconds\n        end\n    end\n    if <(Level) = [6]> then\n        go to x: (17) y: (-92)\n        if <touching (player v)?> then\n            say [Hmmm Empty] for (0.7) seconds\n            wait (0.5) seconds\n        end\n    end\n    if <(Level) = [5]> then\n        go to x: (26) y: (-91)\n        if <touching (player v)?> then\n            say [Into The Cave] for (0.7) seconds\n            wait (0.5) seconds\n        end\n    end\n    if <(Level) = [4]> then\n        if <touching (player v)?> then\n            say [lava and spikes!] for (0.7) seconds\n            wait (0.5) seconds\n        end\n    end\n    if <(Level) = [1]> then\n        go to x: (-114) y: (-91)\n        if <touching (player v)?> then\n            say [To move use W,A,D] for (0.7) seconds\n            say [or the arrow keys] for (0.7) seconds\n            say [or the mobile controls] for (0.7) seconds\n            wait (0.5) seconds\n        end\n    end\n    if <(Level) = [2]> then\n        if <touching (player v)?> then\n            say [Avoid Lava] for (0.7) seconds\n            wait (0.5) seconds\n        end\n    end\n    if <(Level) = [3]> then\n        go to x: (-97) y: (-91)\n        if <touching (player v)?> then\n            say [And Spikes] for (0.7) seconds\n            wait (0.5) seconds\n        end\n    end\nend\n\ngo [forward v] (1) layers\n\n@lava\n\nwhen flag clicked\nhide\nforever\n    if <<(Level) = [1]> or <(Level) = [7]>> then\n        hide\n    end\n    if <(Level) = [2]> then\n        go to x: (74) y: (-162)\n        show\n    end\n    if <(Level) = [3]> then\n        hide\n        go to x: (-140) y: (2)\n    end\n    if <(Level) = [10]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        go to x: (34) y: (-161)\n        show\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        show\n        go to x: (-56) y: (-160)\n    end\n    if <(Level) = [9]> then\n        show\n        go to x: (-93) y: (-160)\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    wait (0.4) seconds\n    switch costume to (costume2 v)\n    wait (0.4) seconds\n    next costume\n    wait (.4) seconds\n    next costume\n    wait (.4) seconds\n    next costume\n    wait (.4) seconds\n    next costume\n    wait (.4) seconds\nend\n\nwhen I start as a clone\n\nwhen I receive [intro finished v]\nhide\n\n@lava2\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [10]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        show\n        go to x: (148) y: (-160)\n    end\n    if <(Level) = [9]> then\n        show\n        go to x: (148) y: (-160)\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\ngo to x: (56) y: (-10)\n\nwhen flag clicked\nset [level v] to [0]\nhide\n\nwhen [s v] key pressed\nif <(Level) < [10]> then\n    broadcast (Next Level / Transition v)\n    change [level v] by (1)\nend\n\n@spikes\n\nwhen flag clicked\nset size to (100) %\nhide\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [10]> then\n        hide\n    end\n    if <(Level) = [9]> then\n        show\n        go to x: (74) y: (-113)\n        switch costume to (costume4 v)\n    end\n    if <(Level) = [3]> then\n        go to x: (91) y: (-115)\n        show\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        switch costume to (costume1 v)\n        go to x: (184) y: (-114)\n        show\n    end\n    if <(Level) = [7]> then\n        show\n        switch costume to (costume2 v)\n        set size to (80) %\n    end\n    if <(Level) = [8]> then\n        hide\n        set size to (100) %\n    end\nend\n\ngo to x: (193) y: (48)\n\ngo to x: (174) y: (20)\n\ngo to x: (194) y: (35)\nshow\n\nwhen flag clicked\nforever\n    if <<<<(Level) = [1]> or <(Level) = [5]>> or <(Level) = [0]>> or <(Level) = [6]>> then\n        hide\n    end\nend\n\ngo to x: (149) y: (29)\n\ngo to x: (193) y: (49)\n\ngo to x: (193) y: (49)\n\ngo to x: (190) y: (-89)\n\n@Sprite2\n\n
--------------Earth a mobile platformer----------------------\n\n\nSPAM THAT GREEN FLAG!!!\nPlease don't say this was original or bad I worked Hard on this :D\n\nHow to move:\nMobile Controls\nW,A,S,D\nArrow keys\n\n\n\nYou can't climb signs!\nReload until you see a full sign\nIf somthing isn't working tell me please :)\n\nPrevious Updates:\n\nFixed Glitches\n\nFix to a LOT of glitches :)\n\nUpdate:\n\nAdded Transition Screen Beetween Deaths And Levels\n\nNext Update:\n\nSmall Updae I Shall add a sign to prompt you to like , fave and anothe to make you follow me :D ;D\n\nFuture Updates:\n\nAdd More Levels\nSkins\nMusic Options\n\n#Games\n#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all#all\n#earth\n#wbcoding18\n#platformers\n#game\n#all\n#all