Nature || A Mobile Platformer

Instructions: ✿ Hello Everyone! ✿ \nI present you my game 'Nature || A Mobile Platformer'\n\nIf this gets on trending and top loved than I'll make part 2! So stay tuned! :D\n\nControls and Features:\n1. Arrow keys to move or touch in mobile\n2. Wall Jump and Check Points\n\n\nThanks for playing this game! :D

@Stage\n\nwhen I receive [play game v]\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [start outro v]\nstop all sounds\nset volume to (0) %\n\nwhen I receive [start outro v]\nforever\n    switch backdrop to (win screen v)\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\n@Blank\n\n@player\n\nwhen I receive [play game v]\nset [startx v] to [0]\nset [starty v] to [0]\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game on\n    repeat until <(EXIT) > []>\n        if <[6500] < (SCROLL X)> then\n            broadcast (Green Flag v)\n            broadcast (Start Outro v) and wait\n        else\n            Tick\n            broadcast (Tick v)\n        end\n    end\n    if <(EXIT) = [win]> then\n        Game - Win\n    else\n        broadcast (Darkness v)\n        Game - Die\n    end\nend\n\nwhen flag clicked\nbroadcast (Green Flag v) and wait\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\ndefine Game on\nset size to (100) %\nset rotation style [left-right v]\nset [x v] to (StartX)\nset [sy v] to [0]\nset [sx v] to [0]\nset [y v] to (StartY)\nset [in air v] to [0]\nset [exit v] to []\nset [scroll y v] to (StartY)\nset [scroll x v] to (StartX)\nset [ghost v] effect to (0)\nshow\n\ndefine Game - Die\nset [exit v] to []\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\n\ndefine Game - Win\nset rotation style [don't rotate v]\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (-2)\nend\nhide\nset rotation style [left-right v]\nchange [level v] by (1)\nwait (1) seconds\n\ndefine Test - Die\nif <touching (platform v)?> then\n    set [exit v] to [die]\nend\n\ndefine Change Player X by (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platform v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platform v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<<(y position) < (mouse y)> and <mouse down?>> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platform v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Tick\nswitch costume to (costume3 v)\nif <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n    point in direction (-90)\n    change [sx v] by (-2)\nend\nif <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n    point in direction (90)\n    change [sx v] by (2)\nend\nset [sx v] to ((sx) * (.8))\nif <([abs v] of (sx) ) > [.9]> then\n    Change Player X by (round (sx))\nend\nif <<<(y position) < (mouse y)> and <mouse down?>> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n    if <(in Air) < [4]> then\n        set [sy v] to [16]\n    end\nend\nif <(sy) < [20]> then\n    change [sy v] by (-2)\nend\nChange Player y by (sy)\nTest - Die\nchange [scroll x v] by (round (((x) - (SCROLL X)) / (10)))\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [die]\nend\nAnimate\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platform v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\nwhen flag clicked\nset [walk v] to [2]\nforever\n    change [walk v] by (1)\n    if <[10] < (Walk)> then\n        set [walk v] to [2]\n    end\n    wait (.05) seconds\nend\n\nwhen I receive [end animation v]\nhide\nstop [other scripts in sprite v]\n\ndefine Animate\nswitch costume to (idle v)\nif <(sy) < [2]> then\n    switch costume to (idle v)\nend\nif <<<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> or <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n    switch costume to (Walk)\nend\n\n@platform\n\nwhen I start as a clone\ngo to [back v] layer\nforever\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at X: [500] Y: [0]\n    Clone at X: [500] Y: [0]\n    Clone at X: [500] Y: [0]\n    Clone at X: [500] Y: []\n    Clone at X: [500] Y: []\n    Clone at X: [500] Y: []\n    Clone at X: [500] Y: [347]\n    Clone at X: [500] Y: [0]\n    Clone at X: [500] Y: [0]\n    Clone at X: [500] Y: [0]\n    Clone at X: [500] Y: []\n    Clone at X: [500] Y: []\n    Clone at X: [500] Y: []\n    Clone at X: [500] Y: []\n    Clone at X: [500] Y: []\n    Clone at X: [500] Y: []\n    Clone at X: [500] Y: []\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 1 5 v)\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at X: (x) Y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nset [y v] to ((([sin v] of (((timer) + ((#) / (100))) * (100)) ) * (30)) - (20))\n\n@platform2\n\nwhen I start as a clone\ngo to [back v] layer\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at X: [500] Y: [0]\n    Clone at X: [500] Y: [0]\n    Clone at X: [500] Y: [0]\n    Clone at X: [500] Y: []\n    Clone at X: [500] Y: []\n    Clone at X: [500] Y: []\n    Clone at X: [500] Y: [347]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 1 5 v)\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at X: (x) Y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nif <touching (player v)?> then\n    set [startx v] to (x)\n    set [starty v] to (y)\nend\nif <<(StartX) = (x)> and <(StartY) = (y)>> then\n    switch costume to (active v)\nend\n\n@Sprite2\n\nwhen I receive [green flag v]\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [darkness v]\nhide\nset [ghost v] effect to (100)\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Bubbles\n\nwhen flag clicked\nclear graphic effects\nhide\nwait (.2) seconds\n\nwhen I start as a clone\npoint in direction (pick random (0) to (360))\ngo to (random position v)\nswitch costume to (pick random (1) to (3))\nset size to (pick random (300) to (500)) %\nset [ghost v] effect to (100)\nshow\nrepeat (17)\n    change [ghost v] effect by (-1)\nend\nwait (0.1) seconds\nrepeat (7)\n    change [ghost v] effect by (1)\nend\ndelete this clone\n\nwhen I receive [end v]\ndelete this clone\n\nwhen I receive [play game v]\nforever\n    go [backward v] (200) layers\n    create clone of (_myself_ v)\n    wait (0.15) seconds\nend\n\n@Beam\n\nwhen flag clicked\nhide\nwait (.2) seconds\nwait until <(Mode) = [game]>\n\nwhen I start as a clone\nclear graphic effects\nswitch costume to (pick random (1) to (3))\ngo to x: (pick random (-200) to (240)) y: (0)\nset size to (pick random (150) to (300)) %\nset [ghost v] effect to (100)\nshow\nrepeat (20)\n    change [ghost v] effect by (-1)\n    if <(costume [number v]) = [1]> then\n        move (-0.5) steps\n    end\n    if <(costume [number v]) = [2]> then\n        move (-1) steps\n    end\n    if <(costume [number v]) = [3]> then\n        move (-2) steps\n    end\nend\nrepeat until <(x position) < [-240]>\n    if <(costume [number v]) = [1]> then\n        move (-0.5) steps\n    end\n    if <(costume [number v]) = [2]> then\n        move (-1) steps\n    end\n    if <(costume [number v]) = [3]> then\n        move (-2) steps\n    end\nend\nrepeat (20)\n    change [ghost v] effect by (2)\n    if <(costume [number v]) = [1]> then\n        move (-0.5) steps\n    end\n    if <(costume [number v]) = [2]> then\n        move (-1) steps\n    end\n    if <(costume [number v]) = [3]> then\n        move (-2) steps\n    end\nend\ndelete this clone\n\nwhen I receive [end v]\ndelete this clone\n\nwhen I receive [play game v]\nclear graphic effects\nforever\n    go [backward v] (75) layers\n    create clone of (_myself_ v)\n    wait (pick random (3) to (5)) seconds\nend\n\n@grunge_surface_dark_scratches_18460_3840x2400\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (90)\ngo to [back v] layer\nshow\n\nwhen I receive [tick v]\ngo to [front v] layer\n\n@Sprite3\n\nwhen flag clicked\nhide\ngo to x: (-2400) y: (-27)\nset [ghost v] effect to (80)\n\nwhen flag clicked\nshow\ngo to x: (-2400) y: (-27)\nset [ghost v] effect to (80)\nrepeat (25)\n    change x by (((0) - (x position)) * (0.2))\n    change [ghost v] effect by (-10)\nend\ngo to x: (0) y: (-27)\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [ghost v] effect to (20)\n        point in direction (([sin v] of ((timer) * (1000)) ) + (90))\n        if <mouse down?> then\n            hide\n            start sound [Connect v]\n            broadcast (Play Game v) and wait\n        end\n    else\n        point in direction (90)\n        change size by (((100) - (size)) / (3))\n        change [ghost v] effect by (-10)\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\ngo to x: (-2400) y: (50)\nset [ghost v] effect to (80)\n\nwhen I receive [play game v]\nhide\n\nwhen I receive [play game v]\n\nwhen flag clicked\nshow\ngo to x: (-2400) y: (50)\nset [ghost v] effect to (80)\nrepeat (25)\n    change x by (((0) - (x position)) * (0.2))\n    change [ghost v] effect by (-10)\nend\ngo to x: (0) y: (50)\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [ghost v] effect to (20)\n        point in direction (([sin v] of ((timer) * (1000)) ) + (90))\n        if <mouse down?> then\n            start sound [Connect v]\n        end\n    else\n        point in direction (90)\n        change size by (((100) - (size)) / (3))\n        change [ghost v] effect by (-10)\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\ngo to x: (-2400) y: (50)\nset [ghost v] effect to (80)\n\nwhen I receive [play game v]\nhide\n\nwhen flag clicked\nshow\ngo to x: (-2400) y: (50)\nset [ghost v] effect to (80)\nrepeat (25)\n    change x by (((0) - (x position)) * (0.2))\n    change [ghost v] effect by (-10)\nend\ngo to x: (0) y: (50)\n\nwhen flag clicked\nforever\n    play sound [Elektro v] until done\nend\n\n@Sprite6\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n