Growing Up– A Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (1 v)\n\nwhen I receive [game start v]\nswitch backdrop to (2 v)\n\n@Player\n\ndefine engine\nswitch costume to (hitbox v)\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    set [costumes v] to [2]\n    point in direction (90)\n    change [xv v] by (1)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    set [costumes v] to [3]\n    point in direction (-90)\n    change [xv v] by (-1)\nend\nif <touching (rock v)?> then\n    set [xv v] to [0]\n    change [xv v] by (-0.4)\nend\nset [xv v] to ((XV) * (0.9))\nchange x by (XV)\nif <touching (level v)?> then\n    change y by (1)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n            end\n        end\n    end\nend\nif <touching (level v)?> then\n    change x by ((XV) * (-1))\n    change y by (-4)\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <(XV) > [0]> then\n            set [xv v] to [-5]\n        else\n            set [xv v] to [5]\n        end\n        set [yv v] to [15]\n    else\n        set [yv v] to [0]\n    end\nend\nchange [yv v] by (-1)\nchange y by (YV)\nif <touching (level v)?> then\n    change y by ((YV) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <touching (level v)?> then\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        set [yv v] to [15]\n    end\nend\nchange y by (1)\nswitch costume to (costumes)\n\nwhen flag clicked\nforever\n    if <<touching (saw  v)?> or <touching (poison v)?>> then\n        go to x: (-201) y: (-106)\n    end\nend\n\nwhen flag clicked\nbroadcast (Main Menu v)\n\nwhen I receive [main menu v]\nhide\n\nwhen I receive [game start v]\nforever\n    if <touching (exit v)?> then\n        next backdrop\n        go to x: (-201) y: (-106)\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <touching (spikes v)?> then\n        go to x: (-201) y: (-106)\n    end\nend\n\nwhen I receive [game start v]\nplay sound [Connect v] until done\nswitch backdrop to (backdrop1 \(1\) v)\nswitch costume to (normal v)\nshow\ngo to x: (-201) y: (-106)\nset size to (50) %\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    engine\nend\n\nwhen I receive [game start v]\nforever\n    play sound [Unlimited v] until done\nend\n\nwhen I receive [game start v]\nforever\n    if <touching (lava v)?> then\n        go to x: (-201) y: (-106)\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <touching (enemy v)?> then\n        go to x: (-201) y: (-106)\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <touching (trampoline v)?> then\n        set [yv v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (exit v)?> then\n        next backdrop\n        go to x: (-201) y: (-106)\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <touching (coin v)?> then\n        play sound [Coin v] until done\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <key (5 v) pressed?> then\n        wait (0.1) seconds\n        next backdrop\n        go to x: (-201) y: (-106)\n    end\nend\n\n@Level\n\nwhen flag clicked\ngo to x: (7) y: (-25)\nswitch costume to (1 v)\n\nwhen I receive [main menu v]\nhide\n\nwhen I receive [game start v]\nshow\n\nwhen backdrop switches to [2 v]\nswitch costume to (1 v)\n\nwhen backdrop switches to [3 v]\nswitch costume to (2 v)\n\nwhen backdrop switches to [4 v]\nswitch costume to (3 v)\n\nwhen backdrop switches to [5 v]\nswitch costume to (4 v)\n\nwhen backdrop switches to [6 v]\nswitch costume to (5 v)\n\nwhen backdrop switches to [7 v]\nswitch costume to (6 v)\n\nwhen backdrop switches to [8 v]\nswitch costume to (7 v)\n\nwhen backdrop switches to [9 v]\nswitch costume to (8 v)\n\nwhen backdrop switches to [10 v]\nswitch costume to (9 v)\n\nwhen backdrop switches to [11 v]\nswitch costume to (10 v)\n\nwhen backdrop switches to [12 v]\nswitch costume to (11 v)\n\nwhen backdrop switches to [13 v]\nswitch costume to (12 v)\n\nwhen backdrop switches to [14 v]\nswitch costume to (13 v)\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [game start v]\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [main menu v]\nhide\n\nwhen backdrop switches to [2 v]\nhide\n\nwhen backdrop switches to [3 v]\nshow\nswitch costume to (1 v)\n\nwhen backdrop switches to [4 v]\nshow\nswitch costume to (2 v)\n\nwhen backdrop switches to [5 v]\nhide\n\nwhen backdrop switches to [6 v]\nshow\nswitch costume to (3 v)\n\nwhen backdrop switches to [7 v]\nswitch costume to (4 v)\n\nwhen backdrop switches to [8 v]\nhide\n\nwhen backdrop switches to [9 v]\nhide\n\nwhen backdrop switches to [10 v]\nshow\nswitch costume to (5 v)\n\nwhen backdrop switches to [11 v]\nshow\nswitch costume to (6 v)\n\nwhen backdrop switches to [12 v]\nhide\n\n@Enemy\n\nwhen flag clicked\npoint in direction (90)\nset size to (50) %\nhide\n\nwhen backdrop switches to [2 v]\nhide\n\nwhen I receive [game start v]\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [main menu v]\nhide\n\nwhen backdrop switches to [5 v]\nshow\ngo to x: (208) y: (80)\nforever\n    repeat (10)\n        change x by (-10)\n    end\n    wait (0.25) seconds\n    repeat (10)\n        change x by (10)\n    end\n    wait (0.25) seconds\nend\n\nwhen backdrop switches to [6 v]\nhide\n\nwhen backdrop switches to [8 v]\nstop [other scripts in sprite v]\nshow\ncreate clone of (_myself_ v)\npoint in direction (-90)\ngo to x: (60) y: (140)\n\nwhen I start as a clone\nif <(backdrop [number v]) = [11]> then\n    go to x: (90) y: (-93)\n    wait (pick random (0) to (2)) seconds\nelse\n    go to x: (-32) y: (-93)\nend\npoint in direction (90)\nforever\n    repeat (6)\n        change x by (-10)\n    end\n    wait (0.25) seconds\n    repeat (6)\n        change x by (10)\n    end\n    wait (0.25) seconds\nend\n\nwhen backdrop switches to [9 v]\nhide\ndelete this clone\n\nwhen backdrop switches to [11 v]\nshow\nrepeat (3)\n    create clone of (_myself_ v)\nend\ngo to x: (100) y: (0)\n\nwhen backdrop switches to [12 v]\nhide\n\nwhen backdrop switches to [12 v]\nhide\ndelete this clone\n\n@Saw \n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen backdrop switches to [2 v]\nhide\n\nwhen I receive [game start v]\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [main menu v]\nhide\n\nwhen backdrop switches to [4 v]\nshow\nswitch costume to (1 v)\ngo to x: (-251) y: (-326)\n\nwhen backdrop switches to [5 v]\nhide\n\nwhen backdrop switches to [8 v]\nhide\n\nwhen backdrop switches to [11 v]\nshow\nswitch costume to (2 v)\n\nwhen backdrop switches to [12 v]\nhide\n\n@Trampoline\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    if <touching (player v)?> then\n        play sound [Big Boing v] until done\n    end\nend\n\nwhen I receive [game start v]\nhide\n\nwhen backdrop switches to [2 v]\nhide\n\nwhen I receive [main menu v]\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen backdrop switches to [5 v]\nhide\n\nwhen backdrop switches to [6 v]\nshow\ngo to x: (-69) y: (-128)\n\nwhen backdrop switches to [7 v]\nshow\ngo to x: (-44) y: (-128)\n\nwhen backdrop switches to [8 v]\nhide\n\nwhen backdrop switches to [11 v]\nshow\ngo to x: (-78) y: (-127)\n\nwhen backdrop switches to [12 v]\nhide\n\n@Lava\n\nwhen flag clicked\nhide\n\nwhen I receive [game start v]\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen backdrop switches to [2 v]\nhide\n\nwhen I receive [main menu v]\nhide\n\nwhen backdrop switches to [4 v]\nshow\nswitch costume to (1 v)\n\nwhen backdrop switches to [5 v]\nhide\n\nwhen backdrop switches to [7 v]\nshow\nswitch costume to (2 v)\n\nwhen backdrop switches to [8 v]\nhide\n\nwhen backdrop switches to [11 v]\nshow\nswitch costume to (3 v)\n\n@Main Menu\n\nwhen I receive [main menu v]\nswitch costume to (1 v)\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [game start v]\nhide\n\nwhen I receive [instructions v]\nswitch costume to (2 v)\n\n@Play Button\n\nwhen flag clicked\nshow\ngo to [front v] layer\n\nwhen I receive [game start v]\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [main menu v]\nshow\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo to x: (37) y: (22)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (15)\n        if <mouse down?> then\n            broadcast (Game Start v)\n        end\n    else\n        clear graphic effects\n    end\nend\n\n@Instructions Button\n\nwhen flag clicked\ngo to x: (38) y: (-61)\nshow\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (15)\n    else\n        clear graphic effects\n    end\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        broadcast (Instructions v)\n    end\nend\n\nwhen I receive [game start v]\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [main menu v]\nshow\n\n@Back\n\nwhen flag clicked\ngo to x: (23) y: (-150)\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (15)\n    else\n        clear graphic effects\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (Main Menu v)\n    end\nend\n\nwhen I receive [instructions v]\nshow\ngo to [front v] layer\n\nwhen I receive [game start v]\nhide\n\nwhen I receive [main menu v]\nhide\n\n@Exit\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [14 v]\nhide\n\n@Coin\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [2 v]\ngo to x: (-8) y: (-146)\nshow\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        hide\n    end\nend\n\nwhen backdrop switches to [3 v]\nshow\ngo to x: (168) y: (-142)\n\nwhen backdrop switches to [4 v]\nshow\ngo to x: (137) y: (-89)\n\nwhen backdrop switches to [5 v]\nshow\ngo to x: (-57) y: (28)\n\nwhen backdrop switches to [6 v]\nshow\ngo to x: (216) y: (29)\n\nwhen backdrop switches to [7 v]\nshow\ngo to x: (14) y: (26)\n\nwhen backdrop switches to [8 v]\nshow\ngo to x: (65) y: (-143)\n\nwhen backdrop switches to [9 v]\nshow\ngo to x: (159) y: (-95)\n\nwhen backdrop switches to [11 v]\nshow\ngo to x: (195) y: (61)\n\nwhen backdrop switches to [12 v]\nshow\ngo to x: (131) y: (-112)\n\nwhen backdrop switches to [13 v]\nhide\n\n@TB\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n@poison\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [8 v]\ngo to x: (96) y: (28)\nswitch costume to (costume1 v)\nshow\nrepeat until <(backdrop [number v]) = [9]>\n    repeat until <<touching (player v)?> or <touching (level v)?>>\n        show\n        switch costume to (costume1 v)\n        change y by (-15)\n    end\n    switch costume to (costume2 v)\n    wait (1) seconds\n    hide\n    go to x: (96) y: (28)\n    wait (2) seconds\nend\n\nwhen backdrop switches to [11 v]\ngo to x: (140) y: (-90)\nswitch costume to (costume1 v)\nshow\nrepeat until <(backdrop [number v]) = [12]>\n    repeat until <<touching (player v)?> or <touching (level v)?>>\n        show\n        switch costume to (costume1 v)\n        change y by (-15)\n    end\n    switch costume to (costume2 v)\n    wait (1) seconds\n    hide\n    go to x: (140) y: (-90)\n    wait (2) seconds\nend\n\nwhen backdrop switches to [9 v]\nstop [other scripts in sprite v]\nhide\n\n@pick\n\nwhen flag clicked\nhide\nforever\n    go to (player v)\n    point in direction ([direction v] of [player v])\nend\n\nwhen I receive [game start v]\nwait (1) seconds\nshow\n\nwhen [space v] key pressed\nswitch costume to (pickaxe7 v)\nwait (0.2) seconds\nswitch costume to (pickaxe2 v)\nwait (0.2) seconds\nswitch costume to (pickaxe7 v)\n\n@rock\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen backdrop switches to [9 v]\nshow\nforever\n    if <<key (space v) pressed?> and <touching (pick v)?>> then\n        wait (3) seconds\n        hide\n    end\nend\n\nwhen backdrop switches to [10 v]\nhide\n\n@Crystal\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen backdrop switches to [13 v]\nshow\nforever\n    if <<key (space v) pressed?> and <touching (pick v)?>> then\n        wait (4) seconds\n        hide\n    end\nend\n\n
use the arrow keys to move\n\nget to the red flag\nred is bad\nred is bouncy\nyou can swim in red paint\n\nthis was just made to be a joke game.