The Timemachine | Platformer (MF)

Instructions: If we get this to 1st on trending, 2k likes and at least 500 faves, I’ll do anything you guys want!\nGo follow me!!!\nSometimes the sound button doesn’t show, so you need to press the flag many times\nIMPORTANT: SPAM DA FLAG\nCheck dis: https://scratch.mit.edu/projects/400118242/ \nInstructions: - arrow keys or WASD to move - mobile friendly - spikes kill you - 8 levels - all levels are possible ------------------------------------------------------------------------- Storyline:  You are a little man who is going on a quest. You have to get the magic waffle from the evil boy: Dhilly. ------------------------------------------------------------------------- Please tell me in the comment if there are any bugs and glitches! This is my first time making mobile platformer so there might be things to fix. Love, favorite, and follow or I'll steal your cupcakes! 10 hearts and stars and I will make part 2!

@Stage\n\n@Rain\n\nwhen I start as a clone\nswitch costume to (costume3 v)\nshow\nset size to (pick random (125) to (300)) %\nset [ghost v] effect to (pick random (0) to (40))\nrepeat until <touching (translition v)?>\n    change y by (-10)\nend\ndelete this clone\n\nforever\n\nwhen I receive [start project v]\nwait (2) seconds\ngo to [back v] layer\nshow\nclear graphic effects\nset size to (100) %\nforever\n    go to x: (pick random (240) to (-240)) y: (170)\n    wait (0.08) seconds\n    create clone of (_myself_ v)\nend\n\n@Player\n\nwhen I receive [backstory v]\nif <(Colour Chosen) = [Cyan]> then\n    switch costume to (cyan v)\nelse\n    if <(Colour Chosen) = [Black]> then\n        switch costume to (black v)\n    else\n        if <(Colour Chosen) = [Red]> then\n            switch costume to (red v)\n        else\n            if <(Colour Chosen) = [Orange]> then\n                switch costume to (orange v)\n            else\n                if <(Colour Chosen) = [Pink]> then\n                    switch costume to (pink v)\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nswitch costume to (Colour Chosen)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-3)\nend\ndelete this clone\n\ndefine Place Player: (x) (y) Set Size To: (size)\ngo to x: (x) y: (y)\nset size to (size) %\n\nwhen flag clicked\nhide\n\ndefine Gravity, Platform Detection, Physics....\nforever\n    change [y v] by (-1)\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (translition v)?> then\n        change y by (1)\n    end\n    if <touching (translition v)?> then\n        change y by (1)\n    end\n    if <touching (translition v)?> then\n        change y by (1)\n    end\n    if <touching (translition v)?> then\n        change y by (1)\n    end\n    if <touching (translition v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> then\n            set [y v] to [17]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (translition v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> and <touching (translition v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<<<touching (spikes v)?> or <(y position) < [-175]>> or <<touching (saw1 v)?> or <touching (saw2 v)?>>> or <touching (saw 3 v)?>> then\n        set [ghost v] effect to (0)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        Place Player: [-200] [0] Set Size To: [40]\n        set [x v] to [0]\n        set [y v] to [0]\n        set [ghost v] effect to (0)\n    end\n    if <(x position) > [230]> then\n        broadcast (Transition v)\n        wait (0.5) seconds\n        change [level v] by (1)\n        set [y v] to [0]\n        set [x v] to [0]\n        Place Player: [-200] [0] Set Size To: [40]\n    end\n    if <touching (trampoline v)?> then\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [restart v]\nPlace Player: [-200] [500] Set Size To: [40]\n\nwhen I receive [backstory v]\nset [level v] to [1]\nshow\nPlace Player: [-200] [500] Set Size To: [40]\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    Gravity, Platform Detection, Physics....\nend\n\nwhen I receive [start project v]\nwait (2) seconds\nswitch costume to (Colour Chosen)\nforever\n    create clone of (_myself_ v)\nend\n\n@Play Button\n\nwhen I receive [backstory v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nbroadcast (Green Flag v)\n\nwhen I receive [green flag v]\nhide\n\nset y to (-115)\n\nwhen I receive [backstory v]\nhide\n\nwhen I receive [start project v]\nwait (2) seconds\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        start sound [Connect v]\n        broadcast (Backstory v)\n        wait until <not <mouse down?>>\n    end\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [start project v]\nwait (2) seconds\ngo to x: (0) y: (-100)\nset size to (100) %\nshow\nclear graphic effects\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (100) %\n    else\n        set size to (100) %\n    end\n    set y to ((([sin v] of ((timer) * (500)) ) * (5)) + (-38))\nend\n\n@Updates\n\nwhen I receive [backstory v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nhide\n\nwhen flag clicked\n\nwhen I receive [backstory v]\nhide\n\nwhen I receive [start project v]\nwait (2) seconds\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        start sound [Collect v]\n        broadcast (Updates Window v)\n        wait until <not <mouse down?>>\n    end\nend\n\nwhen I receive [start project v]\nwait (2) seconds\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (selected v)\n    else\n        switch costume to (deselected v)\n    end\nend\n\n@Updates Window\n\nwhen I receive [updates window v]\nshow\nwait (2) seconds\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        repeat (10)\n            change size by (-8)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (100)\n        set size to (20) %\n        wait until <not <mouse down?>>\n    end\nend\n\nwhen I receive [updates window v]\ngo to [front v] layer\nrepeat (10)\n    change size by (8)\n    change [ghost v] effect by (-10)\nend\n\nwait until <not <mouse down?>>\n\nwhen I receive [start project v]\nwait (2) seconds\nset [ghost v] effect to (100)\nset size to (20) %\n\nwhen flag clicked\nhide\n\n@Help Button\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nhide\n\nwhen flag clicked\n\nwhen I receive [backstory v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [backstory v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [start project v]\nwait (2) seconds\nshow\ngo to x: (175) y: (-19)\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (selected v)\n    else\n        switch costume to (deselected v)\n    end\nend\n\nwhen I receive [start project v]\nwait (2) seconds\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        start sound [Collect v]\n        broadcast (Get Help v)\n        wait until <not <mouse down?>>\n    end\nend\n\n@Instructions Window\n\nwhen I receive [get help v]\ngo to [front v] layer\nrepeat (10)\n    change size by (8)\n    change [ghost v] effect by (-10)\nend\n\nset [ghost v] effect to (100)\nset size to (20) %\n\nwhen I receive [get help v]\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        repeat (10)\n            change size by (-8)\n            change [ghost v] effect by (10)\n        end\n        wait until <not <mouse down?>>\n        wait (1) seconds\n        hide\n    end\nend\n\nwhen I receive [instructions v]\n\nif <[100] < (size)> then\n    set size to (100) %\nend\n\nwhen I receive [start project v]\nwait (2) seconds\nset [ghost v] effect to (100)\nset size to (20) %\n\nwhen flag clicked\nhide\n\n@Player Options\n\nwhen I receive [left v]\nswitch costume to ((costume [number v]) - (1))\nforever\n    set [colour chosen v] to (costume [name v])\n    switch costume to (Colour Chosen)\nend\n\nwhen I receive [left v]\n\nwhen I receive [right v]\n\nwhen I receive [right v]\nnext costume\nforever\n    set [colour chosen v] to (costume [name v])\n    switch costume to (Colour Chosen)\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [backstory v]\nhide\n\nwhen I receive [start project v]\nwait (2) seconds\nshow\nswitch costume to (cyan v)\nset [colour chosen v] to (Colour Chosen)\n\nwait (2) seconds\n\nwhen [space v] key pressed\nhide\n\nwhen flag clicked\nhide\n\n@Left Button\n\nwhen I receive [backstory v]\nhide\n\nwhen flag clicked\n\nwhen flag clicked\nhide\n\nset [colour chosen v] to (costume [number v])\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [start project v]\nwait (2) seconds\nshow\ngo to x: (-52) y: (-115)\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (selected v)\n    else\n        switch costume to (deselected v)\n    end\nend\n\nwhen I receive [start project v]\nwait (2) seconds\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        start sound [Collect v]\n        broadcast (Left v)\n        wait until <not <mouse down?>>\n    end\nend\n\n@Right Button\n\nwhen I receive [backstory v]\nhide\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [start project v]\nwait (2) seconds\nshow\ngo to x: (52) y: (-115)\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        start sound [Collect v]\n        broadcast (Right v)\n        wait until <not <mouse down?>>\n    end\nend\n\nwhen I receive [start project v]\nwait (2) seconds\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (selected v)\n    else\n        switch costume to (deselected v)\n    end\nend\n\n@Updates2\n\nwhen I receive [backstory v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nhide\n\nwhen flag clicked\n\nwhen I receive [backstory v]\nhide\n\nwhen I receive [start project v]\nwait (2) seconds\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (selected v)\n    else\n        switch costume to (deselected v)\n    end\nend\n\nwhen I receive [start project v]\nwait (2) seconds\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        start sound [Collect v]\n        broadcast (lop v)\n        wait until <not <mouse down?>>\n    end\nend\n\n@Updates Window2\n\nwhen I receive [lop v]\nwait (2) seconds\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        repeat (10)\n            change size by (-8)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (100)\n        set size to (20) %\n        wait until <not <mouse down?>>\n    end\nend\n\nwhen I receive [lop v]\ngo to [front v] layer\nrepeat (10)\n    change size by (8)\n    change [ghost v] effect by (-10)\nend\n\nwait until <not <mouse down?>>\n\nwhen I receive [start project v]\nwait (2) seconds\nset [ghost v] effect to (100)\nset size to (20) %\n\nwhen flag clicked\nhide\n\n@Title Screen\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [music on v]\n\nwhen I receive [music off v]\nforever\n    stop all sounds\nend\n\nwhen I receive [backstory v]\nhide\n\nwhen I receive [start project v]\nwait (2) seconds\nshow\ngo to [back v] layer\ngo [forward v] (1) layers\n\n@Intro\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\nreset timer\nhide\nstart sound [Muuuuuusssiiiiiiic v]\nswitch costume to (b v)\nset [id v] to [1]\ncreate clone of (_myself_ v)\nset [id v] to [2]\ncreate clone of (_myself_ v)\nset [id v] to [4]\ncreate clone of (_myself_ v)\nset [id v] to [5]\ncreate clone of (_myself_ v)\nwait until <(timer) > [3.7]>\nset [id v] to [6]\ncreate clone of (_myself_ v)\nset [id v] to [3]\nrepeat (5)\n    create clone of (_myself_ v)\n    next costume\nend\n\nwhen I start as a clone\nshow\nif <(id) = [1]> then\n    switch costume to (cover 1/2 v)\n    go to x: (0) y: (0)\n    wait until <(timer) > [3.5]>\n    repeat until <(round (y position)) = [150]>\n        change y by (((150) - (y position)) / (8))\n    end\n    wait until <(timer) > [8]>\n    repeat until <(round (y position)) = [0]>\n        change y by (((0) - (y position)) / (4))\n    end\n    wait (0.5) seconds\n    set [# v] to [15]\n    repeat (15)\n        set y to (item (#) of [y2 v])\n        change [# v] by (-1)\n    end\n    delete this clone\nelse\n    if <(id) = [2]> then\n        switch costume to (cover 1/3 v)\n        go to x: (0) y: (0)\n        wait until <(timer) > [3.5]>\n        repeat until <(round (y position)) = [-150]>\n            change y by (((-150) - (y position)) / (8))\n        end\n        wait until <(timer) > [8]>\n        repeat until <(round (y position)) = [0]>\n            change y by (((0) - (y position)) / (4))\n        end\n        broadcast (Start Project v)\n        wait (0.5) seconds\n        set [# v] to [15]\n        repeat (15)\n            set y to (item (#) of [y2 v])\n            change [# v] by (-1)\n        end\n        delete this clone\n    else\n        if <(id) = [3]> then\n            go to x: (500) y: (0)\n            repeat until <(round (x position)) = [0]>\n                change x by (((0) - (x position)) / (4))\n            end\n            wait until <(timer) > [4.9]>\n            repeat until <(round (y position)) = [50]>\n                change y by (((50) - (y position)) / (3))\n            end\n            wait (0.1) seconds\n            repeat until <(round (y position)) = [-50]>\n                change y by (((-50) - (y position)) / (3))\n            end\n            wait (0.1) seconds\n            repeat until <(round (y position)) = [0]>\n                change y by (((0) - (y position)) / (4))\n            end\n            wait ((0.1) * (costume [number v])) seconds\n            set [# v] to [22]\n            repeat (22)\n                change y by (item (#) of [y v])\n                change [# v] by (-1)\n            end\n            delete this clone\n        else\n            if <(id) = [4]> then\n                switch costume to (back v)\n                go to [back v] layer\n                forever\n                    set y to ((8) * ([sin v] of ((timer) * (320)) ))\n                    if <(timer) > [9]> then\n                        delete this clone\n                    end\n                end\n            else\n                if <(id) = [5]> then\n                    switch costume to (back2 v)\n                    go to [back v] layer\n                    forever\n                        go to x: (0) y: (0)\n                        repeat (14)\n                            change x by (10)\n                        end\n                        if <(timer) > [9]> then\n                            delete this clone\n                        end\n                    end\n                else\n                    switch costume to (blank v)\n                    go to x: (-500) y: (0)\n                    repeat until <(round (x position)) = [0]>\n                        change x by (((0) - (x position)) / (4))\n                    end\n                    wait until <(timer) > [4.9]>\n                    repeat until <(round (y position)) = [-50]>\n                        change y by (((-50) - (y position)) / (3))\n                    end\n                    wait (0.1) seconds\n                    repeat until <(round (y position)) = [50]>\n                        change y by (((50) - (y position)) / (3))\n                    end\n                    wait (0.1) seconds\n                    repeat until <(round (y position)) = [0]>\n                        change y by (((0) - (y position)) / (4))\n                    end\n                    wait (0.5) seconds\n                    set [# v] to [19]\n                    repeat (19)\n                        set size to (item (#) of [s v]) %\n                        change [# v] by (-1)\n                    end\n                    delete this clone\n                end\n            end\n        end\n    end\nend\n\n@Translition\n\nwhen I receive [backstory v]\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (level1 v)\nhide\n\nwhen I receive [backstory v]\nshow\ngo to x: (0) y: (0)\n\n@Transition\n\nwhen I receive [transition v]\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\nset [color v] effect to ((1) / (0))\nif <(costume [number v]) = [1]> then\n    clear graphic effects\n    set [trans. v] to [1]\n    go to [front v] layer\n    point in direction (90)\n    show\n    set x to (0)\n    set y to (400)\n    go to [front v] layer\n    repeat (30)\n        change y by (((0) - (y position)) / (4))\n    end\n    erase all\n    go to [front v] layer\n    repeat (30)\n        turn right (((180) - (direction)) / (4)) degrees\n    end\n    repeat (20)\n        change x by (((400) - (x position)) * (0.1))\n        change [ghost v] effect by (8)\n        if <(x position) > [225]> then\n            show\n        end\n    end\n    set [trans. v] to [0]\n    delete this clone\nend\nif <(costume [number v]) = [2]> then\n    clear graphic effects\n    go to [front v] layer\n    point in direction (90)\n    show\n    set x to (0)\n    set y to (-400)\n    go to [front v] layer\n    repeat (30)\n        change y by (((0) - (y position)) / (4))\n    end\n    go to [front v] layer\n    repeat (30)\n        turn right (((180) - (direction)) / (4)) degrees\n    end\n    repeat (20)\n        change x by (((-400) - (x position)) * (0.1))\n        change [ghost v] effect by (8)\n        if <(x position) < [-225]> then\n            show\n        end\n    end\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\nforever\n    hide list [cool dudes v]\nend\n\n@Saw1\n\nwhen flag clicked\nforever\n    turn right (6) degrees\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to x: (-10) y: (-120)\n    end\n    if <(Level) = [5]> then\n        go to x: (-65) y: (-120)\n    end\n    if <(Level) = [10]> then\n        go to x: (-150) y: (150)\n    end\nend\n\nwhen I receive [backstory v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@Trampoline\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        wait until <not <touching (player v)?>>\n        repeat (5)\n            wait (0.001) seconds\n            next costume\n        end\n    end\nend\n\nshow\n\nwhen I receive [backstory v]\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        show\n        go to x: (-150) y: (-90)\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        hide\n    end\nend\n\nshow\ngo to x: (-150) y: (-100)\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [backstory v]\nshow\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\nset [level v] to [4]\n\n@Saw2\n\nwhen flag clicked\nforever\n    turn right (6) degrees\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to x: (-10) y: (-120)\n    end\n    if <(Level) = [5]> then\n        go to x: (110) y: (-120)\n    end\n    if <(Level) = [10]> then\n        go to x: (-150) y: (150)\n    end\nend\n\nwhen I receive [backstory v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@Text\n\nwhen flag clicked\nhide\n\nwhen I receive [backstory v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@saw 3\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    turn right (4) degrees\n    switch costume to (Level)\n    \nend\n\n@Music lol\n\nwhen flag clicked\nhide\n\nwhen I receive [backstory v]\ngo to x: (214) y: (-158)\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\nset volume to (100) %\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    set volume to (0) %\n    switch costume to (costume2 v)\nelse\n    switch costume to (costume1 v)\n    set volume to (100) %\nend\n\n\n\nwhen I receive [backstory v]\ngo to [front v] layer\nforever\n    play sound [Fransis Derelle - Fly \(feat v] until done\n    go to [front v] layer\nend\n\nwhen I receive [backstory v]\n\n@SKIP FOR NOOB\n\nwhen flag clicked\nhide\n\nwhen I receive [backstory v]\nset [noob v] to [0]\ngo to [front v] layer\nshow\ngo to x: (175) y: (-159)\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\nforever\n    if <(Level) = [8]> then\n        forever\n            hide\n        end\n    end\nend\n\nshow\n\nwhen this sprite clicked\nset [noob v] to [1]\nchange [level v] by (1)\nwait (1) seconds\n\nforever\n    go to [front v] layer\nend\n\n@Trck\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [8]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [9]> then\n        show\n        show list [cool dudes v]\n    else\n        hide\n    end\nend\n\n@Waffle\n\nwhen flag clicked\nhide\n\nwhen I receive [backstory v]\nshow list [cool dudes v]\nforever\n    if <<(Level) = [8]> and <(Noob) = [0]>> then\n        show\n        repeat until <[cool dudes v] contains (username)?>\n            add (username) to [cool dudes v]\n        end\n        if <[cool dudes v] contains (username)?> then\n            wait (2) seconds\n            say [Looks like you have done this before!] for (2) seconds\n            stop [this script v]\n        else\n            say [] for (2) seconds\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nshow list [cool dudes v]\n\nhide list [cool dudes v]\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nforever\n    show list [cool dudes v]\nend\n\ngo [forward v] (1) layers\nshow\ngo to [front v] layer\n\n