Forest || Platformer
@Stage\n\n@BG\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\n\n@Ground\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl 2 v]\nwait (1) seconds\nswitch costume to (lvl 2 v)\n\nwhen I receive [lvl 3 v]\nwait (1) seconds\nswitch costume to (lvl 3 v)\n\nwhen I receive [lvl 4 v]\nwait (1) seconds\nswitch costume to (lvl 4 v)\n\nwhen I receive [lvl 5 v]\nwait (1) seconds\nswitch costume to (lvl 5 v)\n\nwhen I receive [lvl 6 v]\nwait (1) seconds\nswitch costume to (lvl 6 v)\n\nwhen I receive [lvl 7 v]\nwait (1) seconds\nswitch costume to (lvl 7 v)\n\nwhen I receive [lvl 8 v]\nwait (1) seconds\nswitch costume to (lvl 8 v)\n\nwhen I receive [lvl 9 v]\nwait (1) seconds\nswitch costume to (lvl 9 v)\n\nwhen I receive [lvl 10 v]\nwait (1) seconds\nswitch costume to (lvl 10 v)\n\nwhen I receive [lvl 11 v]\nwait (1) seconds\nswitch costume to (lvl 11 v)\n\nwhen I receive [lvl 12 v]\nwait (1) seconds\nswitch costume to (lvl 12 v)\n\nwhen I receive [lvl 13 v]\nwait (1) seconds\nswitch costume to (lvl 13 v)\n\nwhen I receive [lvl 14 v]\nwait (1) seconds\nswitch costume to (lvl 14 v)\n\nwhen I receive [lvl 15 v]\nwait (1) seconds\nswitch costume to (lvl 15 v)\n\nwhen I receive [show all v]\ngo to x: (0) y: (0)\nswitch costume to (lvl 1 v)\nshow\n\nwhen I receive [lvl 16 v]\nwait (1) seconds\nswitch costume to (lvl 16 v)\n\n@Player\n\ndefine Controls - Left and Right\nset [speed x v] to ((speed x) * (0.7))\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    change [speed x v] by (-1.5)\nend\nif <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n    change [speed x v] by (1.5)\nend\n\ndefine Walk (direction) (speed) max step (step)\npoint in direction (direction)\nchange x by (speed)\nchange [frame v] by (([abs v] of (speed) ) / (8))\nset [slope v] to [0]\nGet Touching <(in platforrm) = [1]>\nrepeat until <<(slope) = (step)> or <(touch) = [0]>>\n    change y by (1)\n    change [slope v] by (1)\n    Get Touching <(in platforrm) = [1]>\nend\nif <(slope) = (step)> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\n    if <<(touch) = [1]> and <(in platforrm) = [1]>> then\n        set [in platforrm v] to [2]\n        Walk (direction) (speed) max step (step)\n        if <(speed x) = [0]> then\n            set [in platforrm v] to [1]\n        end\n    else\n        if <<<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <([abs v] of (speed) ) > [3.5]>> and <(touch) > [1]>> then\n            set [speed x v] to ((-1.2) * (speed))\n            set [speed y v] to [11]\n            set [falling? v] to [6]\n            set [wall jump v] to [15]\n        else\n            set [speed x v] to [0]\n        end\n    end\nend\n\ndefine Controls - Jump, Crouch\nif <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n    if <<(jump key) = [0]> and <(falling?) < [3]>> then\n        set [speed y v] to [14]\n        set [falling? v] to [6]\n        set [jump key v] to [1]\n    end\nelse\n    set [jump key v] to [0]\nend\nif <<key (s v) pressed?> or <key (down arrow v) pressed?>> then\n    set [in platforrm v] to [2]\nend\n\ndefine Gravity\nif <<(speed y) < [4]> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n    change [speed y v] by (-1)\nelse\n    change [speed y v] by (-2)\nend\nchange y by (speed y)\nchange [falling? v] by (1)\n\ndefine Check Hit Ceiling / Floor <up?>\nGet Touching \nif <(touch) = [0]> then\n    set [in platforrm v] to [1]\nelse\n    if <<up?> and <(touch) = [1]>> then\n        set [in platforrm v] to [2]\n    end\nend\nrepeat until <(touch) < (in platforrm)>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    Get Touching <not <up?>>\n    set [speed y v] to [0]\nend\n\ndefine Get Touching <check platform?>\nif <<touching (ground v)?> or <touching (movable ground v)?>> then\n    set [touch v] to [9]\nelse\n    if <<check platform?> and <touching (platforms v)?>> then\n        set [touch v] to [1]\n    else\n        set [touch v] to [0]\n    end\nend\n\ndefine Reset Level\nset [ghost v] effect to (100)\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\nset [ghost v] effect to (0)\nset size to (25) %\npoint in direction (90)\nset rotation style [left-right v]\ngo to x: (-170) y: (-70)\ngo to x: (-205) y: (-70)\nreset timer\nshow\nset [speed x v] to [0]\nset [speed y v] to [0]\nset [falling? v] to [10]\nset [in platforrm v] to [1]\nset [frame v] to [0]\nset [wall jump v] to [0]\n\ndefine Set Costume\nif <(falling?) < [6]> then\n    if <(frame) = [0]> then\n        switch costume to (idle \(1\) v)\n    else\n        switch costume to ([floor v] of ((5) + ((frame) mod (14))) )\n    end\nelse\n    if <(speed y) > [0]> then\n        switch costume to (jump \(6\) v)\n    else\n        switch costume to (fall_1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [lvl 2 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 3 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [oof v]\nReset Level\n\nwhen flag clicked\ngo to [front v] layer\nset [color v] effect to (0)\nforever\n    if <<<touching (enemy 1 v)?> or <touching (spikes v)?>> or <<touching (enemy 2 v)?> or <touching (enemy 3 v)?>>> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        broadcast (oof v)\n    end\nend\n\nwhen I receive [lvl 4 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 5 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 6 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 7 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 8 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 9 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 10 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 11 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 12 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 13 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 14 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 15 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [lvl 16 v]\nwait (1) seconds\nReset Level\n\nwhen I receive [show all v]\nif <<(Title) > [0]> and <(Full) < [12]>> then\n    hide\n    stop [this script v]\nend\nReset Level\nforever\n    switch costume to (hitbox v)\n    Controls - Jump, Crouch\n    Gravity\n    Check Hit Ceiling / Floor <(speed y) > [0]>\n    if <(y position) < [-189]> then\n        Reset Level\n    end\n    if <(wall jump) > [0]> then\n        change [wall jump v] by (-1)\n    else\n        Controls - Left and Right\n    end\n    if <(speed x) < [-0.5]> then\n        Walk (-90) (speed x) max step (([ceiling v] of ([abs v] of ((speed x) * (1.3)) ) ) + (1))\n    else\n        if <(speed x) > [0.5]> then\n            Walk (90) (speed x) max step (([ceiling v] of ([abs v] of ((speed x) * (1.3)) ) ) + (1))\n        else\n            set [frame v] to [0]\n        end\n    end\n    Set Costume\n    broadcast (tick v) and wait\nend\n\nwhen I receive [lvl 16 v]\nwait (1) seconds\nReset Level\n\nhide\n\n@Entities\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (lvl 1 v)\nhide\n\nwhen I receive [lvl 2 v]\nwait (1) seconds\nswitch costume to (lvl 2 v)\n\nwhen I receive [lvl 3 v]\nwait (1) seconds\nswitch costume to (lvl 3 v)\n\nwhen I receive [lvl 4 v]\nwait (1) seconds\nswitch costume to (lvl 4 v)\n\ngo to [front v] layer\n\nwhen I receive [lvl 5 v]\nwait (1) seconds\nswitch costume to (lvl 5 v)\n\nwhen I receive [lvl 6 v]\nwait (1) seconds\nswitch costume to (lvl 6 v)\n\nwhen I receive [lvl 7 v]\nwait (1) seconds\nswitch costume to (lvl 7 v)\n\nwhen I receive [lvl 8 v]\nwait (1) seconds\nswitch costume to (lvl 8 v)\n\nwhen I receive [lvl 9 v]\nwait (1) seconds\nswitch costume to (lvl 9 v)\n\nwhen I receive [lvl 10 v]\nwait (1) seconds\nswitch costume to (lvl 10 v)\n\nwhen I receive [lvl 11 v]\nwait (1) seconds\nswitch costume to (lvl 11 v)\n\nwhen I receive [lvl 12 v]\nwait (1) seconds\nswitch costume to (lvl 12 v)\n\nwhen I receive [lvl 13 v]\nwait (1) seconds\nswitch costume to (lvl 13 v)\n\nwhen I receive [lvl 14 v]\nwait (1) seconds\nswitch costume to (lvl 14 v)\n\nwhen I receive [lvl 15 v]\nwait (1) seconds\nswitch costume to (lvl 15 v)\n\nwhen I receive [show all v]\nshow\n\nwhen I receive [lvl 16 v]\nwait (1) seconds\nswitch costume to (lvl 16 v)\n\nhide\n\n@Coins lvl 1\n\nwhen flag clicked\nhide\n\nwhen I receive [show all v]\ngo to x: (-116) y: (61)\nset size to (50) %\nforever\n    next costume\nend\n\nwhen I receive [show all v]\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 2 v)\n        hide\n    end\nend\n\n@spikes\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset size to (100) %\nswitch costume to (lvl 1 v)\nhide\n\nwhen I receive [lvl 2 v]\nwait (1) seconds\nswitch costume to (lvl 2 v)\nshow\n\nwhen I receive [lvl 3 v]\nwait (1) seconds\nshow\nset size to (100) %\nswitch costume to (lvl 3 v)\n\nwhen I receive [lvl 4 v]\nwait (1) seconds\nswitch costume to (lvl 4 v)\n\nwhen I receive [lvl 5 v]\nwait (1) seconds\nswitch costume to (lvl 5 v)\n\nwhen I receive [lvl 6 v]\nwait (1) seconds\nswitch costume to (lvl 6 v)\n\nwhen I receive [lvl 7 v]\nwait (1) seconds\nswitch costume to (lvl 7 v)\n\nwhen I receive [lvl 8 v]\nwait (1) seconds\nswitch costume to (lvl 8 v)\n\nwhen I receive [lvl 9 v]\nwait (1) seconds\nswitch costume to (lvl 9 v)\n\nwhen I receive [lvl 10 v]\nwait (1) seconds\nswitch costume to (lvl 10 v)\n\nwhen I receive [lvl 11 v]\nwait (1) seconds\nswitch costume to (lvl 11 v)\n\nwhen I receive [lvl 12 v]\nwait (1) seconds\nswitch costume to (lvl 12 v)\n\nwhen I receive [lvl 13 v]\nwait (1) seconds\nswitch costume to (lvl 13 v)\n\nwhen I receive [lvl 14 v]\nwait (1) seconds\nswitch costume to (lvl 14 v)\n\nwhen I receive [lvl 15 v]\nwait (1) seconds\nswitch costume to (lvl 15 v)\n\nwhen I receive [lvl 16 v]\nwait (1) seconds\nswitch costume to (lvl 16 v)\n\n@Coins lvl 2\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (221) y: (-88)\n\nwhen I receive [lvl 2 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 3 v)\n        hide\n    end\nend\n\n@Coins lvl 3\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (-176) y: (92)\n\nwhen I receive [lvl 3 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 4 v)\n        hide\n    end\nend\n\n@Coins lvl 4\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (214) y: (-80)\n\nwhen I receive [lvl 4 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 5 v)\n        hide\n    end\nend\n\n@movable Ground\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [lvl 4 v]\nwait (1) seconds\nswitch costume to (costume1 v)\nshow\nforever\n    repeat (20)\n        change y by (0.3)\n    end\n    repeat (20)\n        change y by (-0.3)\n    end\nend\n\nwhen I receive [lvl 8 v]\nwait (1) seconds\nswitch costume to (costume2 v)\nshow\nforever\n    repeat (200)\n        change x by (-1)\n    end\n    repeat (200)\n        change x by (1)\n    end\nend\n\nwhen I receive [lvl 5 v]\nwait (1) seconds\nhide\n\nwhen I receive [lvl 9 v]\nwait (1) seconds\nhide\n\nwhen I receive [lvl 15 v]\nwait (1) seconds\nstop [other scripts in sprite v]\ngo to x: (-176) y: (158)\ngo to x: (-129) y: (167)\nswitch costume to (costume2 v)\nshow\nforever\n    repeat (200)\n        change x by (-1)\n    end\n    repeat (200)\n        change x by (1)\n    end\nend\n\nwhen I receive [lvl 16 v]\nwait (1) seconds\nhide\n\n@Platforms\n\nwhen I receive [lvl 3 v]\nwait (1) seconds\nswitch costume to (costume2 v)\nshow\n\nwhen I receive [lvl 5 v]\nwait (1) seconds\nswitch costume to (costume3 v)\nshow\n\nwhen I receive [lvl 4 v]\nwait (1) seconds\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [lvl 2 v]\nwait (1) seconds\nhide\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [lvl 7 v]\nwait (1) seconds\nswitch costume to (costume5 v)\nshow\n\nwhen I receive [lvl 6 v]\nwait (1) seconds\nswitch costume to (costume4 v)\nshow\n\nwhen I receive [lvl 8 v]\nwait (1) seconds\nhide\n\nwhen I receive [lvl 9 v]\nwait (1) seconds\nhide\n\nwhen I receive [lvl 14 v]\nwait (1) seconds\nswitch costume to (costume6 v)\nshow\n\nwhen I receive [lvl 15 v]\nwait (1) seconds\nhide\n\nwhen I receive [lvl 16 v]\nwait (1) seconds\nswitch costume to (costume7 v)\nshow\n\nwhen I receive [lvl 16 v]\nwait (1) seconds\nswitch costume to (costume7 v)\nshow\n\n@Coins lvl 5\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (221) y: (-89)\n\nwhen I receive [lvl 5 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 6 v)\n        hide\n    end\nend\n\n@Coins lvl 6\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (146) y: (105)\n\nwhen I receive [lvl 6 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 7 v)\n        hide\n    end\nend\n\n@Coins lvl 7\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (221) y: (-89)\ngo to x: (-148) y: (143)\n\nwhen I receive [lvl 7 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 8 v)\n        hide\n    end\nend\n\n@Coins lvl 8\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (221) y: (-89)\ngo to x: (-123) y: (107)\n\nwhen I receive [lvl 8 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 9 v)\n        hide\n    end\nend\n\n@enemy 1\n\nwhen flag clicked\ngo to [front v] layer\nhide\nset size to (30) %\ngo to x: (5) y: (-20)\nforever\n    set rotation style [left-right v]\n    point in direction (90)\n    glide (3) secs to x: (165) y: (-20)\n    point in direction (-90)\n    glide (3) secs to x: (5) y: (-20)\nend\n\nwhen I receive [lvl 7 v]\nwait (1) seconds\ngo to [front v] layer\nshow\nset size to (30) %\ngo to x: (5) y: (-20)\nforever\n    next costume\n    wait (0.03) seconds\nend\n\nwhen I receive [lvl 8 v]\nwait (1) seconds\nhide\n\n@enemy 2\n\nwhen flag clicked\ngo to [front v] layer\nhide\nset size to (30) %\ngo to x: (-113) y: (107)\nforever\n    set rotation style [left-right v]\n    point in direction (90)\n    glide (3) secs to x: (70) y: (107)\n    point in direction (-90)\n    glide (3) secs to x: (-113) y: (107)\nend\n\nwhen I receive [lvl 8 v]\nwait (1) seconds\nshow\nset size to (30) %\ngo to x: (-113) y: (107)\nforever\n    next costume\n    wait (0.03) seconds\nend\n\nglide (3) secs to x: (70) y: (107)\n\nwhen I receive [lvl 9 v]\nwait (1) seconds\nhide\n\n@enemy 3\n\nwhen flag clicked\ngo to [front v] layer\nhide\nset size to (30) %\ngo to x: (-113) y: (107)\ngo to x: (-104) y: (-92)\nforever\n    set rotation style [left-right v]\n    point in direction (90)\n    glide (3) secs to x: (104) y: (-92)\n    point in direction (-90)\n    glide (3) secs to x: (-104) y: (-92)\nend\n\nwhen I receive [lvl 10 v]\nwait (1) seconds\nshow\nset size to (30) %\ngo to x: (-104) y: (-92)\nforever\n    next costume\n    wait (0.03) seconds\nend\n\ngo to x: (-113) y: (107)\n\nwhen I receive [lvl 11 v]\nwait (1) seconds\nhide\n\n@Coins lvl 9\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (220) y: (-97)\n\nwhen I receive [lvl 9 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 10 v)\n        hide\n    end\nend\n\n@Coins lvl 10\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (220) y: (-25)\n\nwhen I receive [lvl 10 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 11 v)\n        hide\n    end\nend\n\n@Coins lvl 11\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (157) y: (-90)\n\nwhen I receive [lvl 11 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 12 v)\n        hide\n    end\nend\n\ngo to x: (220) y: (-25)\n\n@Coins lvl 12\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (157) y: (-90)\n\nwhen I receive [lvl 12 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 13 v)\n        hide\n    end\nend\n\ngo to x: (220) y: (-25)\n\n@Coins lvl 13\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (157) y: (-90)\ngo to x: (-145) y: (135)\n\nwhen I receive [lvl 13 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 14 v)\n        hide\n    end\nend\n\ngo to x: (220) y: (-25)\n\n@Coins lvl 14\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (176) y: (-97)\n\nwhen I receive [lvl 14 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 15 v)\n        hide\n    end\nend\n\n@Coins lvl 15\n\nwhen flag clicked\nhide\nset size to (50) %\nforever\n    next costume\nend\n\nwhen flag clicked\ngo to x: (176) y: (-97)\ngo to x: (-174) y: (130)\n\nwhen I receive [lvl 15 v]\nwait (1) seconds\nset size to (50) %\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (lvl 16 v)\n        hide\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to [back v] layer\ngo to x: (0) y: (0)\n\nbroadcast (show everythng v)\n\nwhen I receive [show all v]\nhide\n\n@Sprite2\n\nwhen I receive [lvl 16 v]\nshow\nswitch costume to (costume1 v)\nset [color v] effect to (0)\ngo to [front v] layer\nset [ghost v] effect to (100)\nwait (1) seconds\ngo to x: (-20) y: (-4)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (2) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nswitch costume to (costume2 v)\nwait (2) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (2) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [show everythng v]\nwait (3) seconds\nshow\nswitch costume to (costume4 v)\nset [color v] effect to (0)\ngo to [front v] layer\nset [ghost v] effect to (100)\nwait (1) seconds\ngo to x: (-20) y: (-4)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nswitch costume to (costume5 v)\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (2) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nswitch costume to (costume6 v)\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (2) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nswitch costume to (costume7 v)\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (2) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n@Sprite3\n\nwhen I receive [lvl 2 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 3 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 4 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 5 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 6 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 7 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 8 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 9 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 10 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 11 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 12 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 13 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 14 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 15 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen I receive [lvl 16 v]\ngo to [front v] layer\nhide\ngo to x: (566) y: (378)\nshow\nglide (1) secs to x: (-39) y: (-97)\nwait (1) seconds\nglide (1) secs to x: (-622) y: (-573)\nhide\ngo to x: (566) y: (378)\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\n@back lntro\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\n\nwhen I receive [show all v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Intro\n\nwhen flag clicked\nswitch costume to (delete v)\n\nPlay intro: Come in (0) Wait [] Seconds: Come out (0)\n\nwhen flag clicked\nPlay intro: Come in (shrink in) Wait [1] Seconds: Come out (up and down)\nbroadcast (show all v)\n\nPlay intro: Come in (come in) Wait [] Seconds: Come out (0)\n\nPlay intro: Come in (come in) Wait [2] Seconds: Come out (0)\n\nPlay intro: Come in (come in) Wait [2] Seconds: Come out (big then small)\n\ndefine shrink in\ngo to x: (0) y: (0)\nset size to (175) %\nset [ghost v] effect to (100)\nrepeat (50)\n    change size by (((100) - (size)) * (0.25))\n    change [ghost v] effect by (-5)\nend\n\ndefine clean up\nclear graphic effects\nshow\ngo to x: (0) y: (0)\nset size to (100) %\n\ndefine spin in\nset size to (0) %\npoint in direction (0)\nset [ghost v] effect to (100)\nrepeat (10)\n    turn right ((3.45) - ((direction) * (-0.2))) degrees\n    change size by ((22) - ((size) / (5)))\n    change [ghost v] effect by (-10)\nend\npoint in direction (90)\n\ndefine fade in and glide in (from left)\nshow\nset [ghost v] effect to (100)\ngo to x: (-180) y: (0)\nrepeat (9)\n    change x by ((5) - ((x position) * (0.2)))\n    change [ghost v] effect by (-10)\n    wait (0.03) seconds\nend\ngo to x: (0) y: (0)\n\ndefine fade in and glide in (from bottom)\nshow\nset [ghost v] effect to (100)\ngo to x: (0) y: (-190)\nrepeat (10)\n    change y by ((5) - ((y position) * (0.2)))\n    change [ghost v] effect by (-10)\n    wait (0.03) seconds\nend\n\ndefine big then small\nset [xonic size v] to [0]\nwait (0.4) seconds\nrepeat (10)\n    change [xonic size v] by (1)\n    change size by (xonic size)\nend\nset [xonic size v] to [0]\nrepeat (8)\n    change [xonic size v] by (-5)\n    change [ghost v] effect by (10)\n    change size by (xonic size)\nend\nhide\n\ndefine spin out\nrepeat (10)\n    turn right ((3.45) - ((direction) * (0.2))) degrees\n    change size by ((-2) - ((size) / (5)))\n    change [ghost v] effect by (10)\nend\nhide\npoint in direction (90)\n\ndefine fade in and glide in (from right)\nshow\nset [ghost v] effect to (100)\ngo to x: (180) y: (0)\nrepeat (9)\n    change x by ((-5) - ((x position) * (0.2)))\n    change [ghost v] effect by (-10)\n    wait (0.03) seconds\nend\ngo to x: (0) y: (0)\n\ndefine grow in\nshow\nset [ghost v] effect to (100)\nset size to (0) %\nrepeat (10)\n    change size by ((22) - ((size) / (5)))\n    change [ghost v] effect by (-10)\nend\nset size to (100) %\n\ndefine fade in and glide in (from top)\nshow\nset [ghost v] effect to (100)\ngo to x: (0) y: (190)\nrepeat (10)\n    change y by ((-5) - ((y position) * (0.2)))\n    change [ghost v] effect by (-10)\n    wait (0.03) seconds\nend\n\ndefine Play intro: Come in (come in) Wait (seconds) Seconds: Come out (come out)\nclean up\nset [come out v] to (come out)\nset [come in v] to (come in)\nif <(come in) = [1]> then\n    fade in and glide in (from top)\nend\nif <(come in) = [2]> then\n    fade in and glide in (from bottom)\nend\nif <(come in) = [3]> then\n    fade in and glide in (from left)\nend\nif <(come in) = [4]> then\n    fade in and glide in (from right)\nend\nif <(come in) = [5]> then\n    shrink in\nend\nif <(come in) = [6]> then\n    grow in\nend\nif <(come in) = [7]> then\n    spin in\nend\nif <(come in) = [8]> then\n    fade, glide and grow\nend\nif <(come in) = [9]> then\nwait (seconds) seconds\nif <(come out) = [6]> then\n    small fade\nend\nif <(come out) = [7]> then\n    up and down\nend\nif <(come out) = [8]> then\n    big then small\nend\nif <(come out) = [9]> then\n    spin out\nend\n\ndefine fade, glide and grow\ngo to x: (0) y: (-180)\nset size to (1) %\nset [ghost v] effect to (100)\nrepeat (25)\n    change y by (((0) - (y position)) * (0.25))\n    change size by (((100) - (size)) * (0.25))\n    change [ghost v] effect by (-10)\nend\n\ndefine up and down\nrepeat (10)\n    change y by ((5) - ((y position) * (0.2)))\n    change [ghost v] effect by (2.5)\nend\nrepeat (30)\n    change y by (((5) - ((y position) * (0.2))) * (-1))\n    change [ghost v] effect by (3)\nend\n\ndefine small fade\nrepeat (10)\n    change y by ((-5) - ((y position) * (0.2)))\n    change [ghost v] effect by (10)\n    wait (0.03) seconds\nend\n\nhide\n\n
______________Forest || Platformer______________\n\nHello Scratchers, this is my first proper project. l see that platformers are a big hit here so l decided to create one. lt isn't that good but l hope you guys enjoy!\n\n______________lNSTRUCTlONS________________\n\n-PLAY lN FULLSCREEN\n- Arrow Keys or WASD to move\n- Get to the coins to get to the next level\n- Your goal is to work your way through 15 levels and find the apple tree\n- Don't touch spikes\n- Don't fall in water or ravines\n- Touch dinos :P\n___________________________________________\nlt would mean a lot if you gave this a love :D\nComment: "Apples" if you completed it!