The Adventure ll A Non Generic Platformer #games #game

Instructions:  Intro Contest! : Winner gets 25+ follows : https://scratch.mit.edu/projects/481924609/\n\nIntro Requests : https://scratch.mit.edu/studios/28742061/projects/\n\nUse arrow keys or WASD\n\nPlease Like, Fave, and Follow and help me get this on trending and top loved.\n@mY_uSeRnAmE2008 go follow him!\n @Sushi777 Is amazing coder go follow him!Intro 

@Stage\n\nwhen flag clicked\nswitch backdrop to (sjy blue v)\n\nwhen flag clicked\nforever\n    play sound [Chaoz Fantasy v] until done\nend\n\n@You\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nset [level v] to [1]\nbroadcast (NEXT LEVEL v)\nforever\n    go to [front v] layer\n    set [x vel v] to ((x vel) * (0.9))\n    change x by (x vel)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((x vel) * (-1))\n    end\n    change [y vel v] by (-1)\n    change y by (y vel)\n    if <touching (level v)?> then\n        change y by ((y vel) - ((y vel) * (2)))\n        set [y vel v] to [0]\n    end\n    if <(x position) > [250]> then\n        change [level v] by (1)\n        broadcast (NEXT LEVEL v) and wait\n    end\n    if <touching (spikes v)?> then\n        broadcast (restart v)\n        start sound [AHHHHHHHHHHHHHHHHhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhHHHHHHHHHHHHHHHHHHHHHHHHHHHHHhhhH v]\n    end\n    if <touching (bounce v)?> then\n        set [y vel v] to [19]\n    end\n    if <touching (enemy v)?> then\n        set [y vel v] to [15]\n        start sound [AHHHHHHHHHHHHHHHHhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhHHHHHHHHHHHHHHHHHHHHHHHHHHHHHhhhH v]\n    end\nend\n\nwhen I receive [next level v]\nbroadcast (restart v)\n\nwhen I receive [restart v]\nset [x vel v] to [0]\nset [y vel v] to [0]\ngo to x: (-210) y: (-50)\n\nwhen flag clicked\ngo to x: (-224) y: (-3)\n\nwhen flag clicked\nforever\n    if <touching (lava v)?> then\n        broadcast (restart v)\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nset [coins v] to [0]\nforever\n    if <touching (coin1 v)?> then\n        change [coins v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (nothing v)?> then\n        broadcast (NEXT LEVEL v)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nset [coins v] to [0]\nforever\n    if <touching (coin2 v)?> then\n        change [coins v] by (1)\n    end\nend\n\nwhen [r v] key pressed\nbroadcast (restart v)\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    if <touching (enemy v)?> then\n        set [y vel v] to [15]\n    end\nend\n\nwhen flag clicked\nforever\n    Movement\nend\n\ndefine Movement\nif <key (left arrow v) pressed?> then\n    if <(Speed boost) = [0]> then\n        change [x vel v] by (-0.8)\n    end\nend\nif <key (left arrow v) pressed?> then\n    if <(Speed boost) = [1]> then\n        change [x vel v] by (-1.2)\n    end\nend\nif <key (right arrow v) pressed?> then\n    if <(Speed boost) = [0]> then\n        change [x vel v] by (0.8)\n    end\nend\nif <key (right arrow v) pressed?> then\n    if <(Speed boost) = [1]> then\n        change [x vel v] by (1.2)\n    end\nend\n\ndefine Jump\nif <(Jump boost) = [0]> then\n    change y by (-1)\n    if <<touching (level v)?> and <key (up arrow v) pressed?>> then\n        set [y vel v] to [14.8]\n    end\n    change y by (1)\nend\nif <(Jump boost) = [1]> then\n    change y by (-1)\n    if <<touching (level v)?> and <key (up arrow v) pressed?>> then\n        set [y vel v] to [17]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    Jump\nend\n\nwhen flag clicked\nswitch costume to (8 v)\n\nwhen I receive [blue v]\nswitch costume to (3 v)\n\nwhen I receive [green v]\nswitch costume to (2 v)\n\nwhen I receive [red v]\nswitch costume to (4 v)\n\n@Enemy\n\nwhen flag clicked\ngo to x: (-224) y: (-3)\n\ndefine Clone at (x) (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nshow\nshow\ngo to [front v] layer\nforever\n    if <([x position v] of [you v]) < (x position)> then\n        change [x vel v] by (-0.5)\n    end\n    if <(x position) < ([x position v] of [you v])> then\n        change [x vel v] by (0.5)\n    end\n    set [x vel v] to ((x vel) * (0.9))\n    change x by (x vel)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((x vel) * (-1))\n    end\n    change [y vel v] by (-1)\n    change y by (y vel)\n    if <touching (level v)?> then\n        change y by ((y vel) - ((y vel) * (2)))\n        set [y vel v] to [0]\n    end\n    change y by (-1)\n    change y by (1)\n    if <touching (spikes v)?> then\n        delete this clone\n    end\n    if <touching (bounce v)?> then\n        set [y vel v] to [19]\n    end\n    if <touching (you v)?> then\n        change y by (-1)\n        if <<touching (level v)?> and <(([y position v] of [you v]) - (5)) > (y position)>> then\n            change [coins v] by (5)\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            delete this clone\n        else\n            broadcast (restart v)\n        end\n        change y by (1)\n    end\nend\n\nif <(([y position v] of [you v]) - (50)) > (y position)> then\n    if <(x vel) > [0]> then\n        set [x vel v] to [-10]\n    else\n        set [x vel v] to [10]\n    end\n    set [y vel v] to [15]\nelse\n    set [x vel v] to [0]\nend\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\ngo to [back v] layer\n\nwhen I receive [restart v]\nif  then\n    delete this clone\nend\nif <(Level) = [5]> then\n    switch costume to (1 v)\n    Clone at [200] [0]\nend\nif <(Level) = [8]> then\n    switch costume to (1 v)\n    Clone at [-230] [200]\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\n@Lava\n\nwhen flag clicked\nforever\n    set [tide v] to [0]\n    repeat (10)\n        change [tide v] by (1)\n    end\n    repeat (20)\n        change [tide v] by (-1)\n    end\n    repeat (10)\n        change [tide v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    set y to (Tide)\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        show\n        go to [back v] layer\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        show\n        go to [back v] layer\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        show\n        go to [back v] layer\n    end\nend\n\n@Bounce\n\nwhen I start as a clone\nforever\n    show\n    go to [front v] layer\n    if <touching (you v)?> then\n        switch costume to (costume2 v)\n        wait (00.1) seconds\n    else\n        switch costume to (costume1 v)\n        wait (00.1) seconds\n    end\nend\n\nwhen flag clicked\nswitch costume to (Level)\n\nwhen flag clicked\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: (0) y: (-76)\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        show\n        go to x: (-20) y: (-75)\n    end\n    if <(Level) = [9]> then\n        show\n        go to x: (-50) y: (-75)\n    end\n    if <(Level) = [10]> then\n        hide\n    end\n    if <(Level) = [11]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (you v)?> then\n        start sound [Big Boing v]\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (you v)?> then\n        start sound [Big Boing v]\n    end\nend\n\nstart sound [Big Boing v]\n\n@Level\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nrepeat (2)\n    go to [front v] layer\nend\n\nset [level v] to [6]\n\nstop all sounds\n\n@Backgroun\n\nwhen flag clicked\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nwhen I receive [start project v]\nshow\n\nwhen flag clicked\nshow\n\nwhen I receive [message1 v]\nnext costume\n\n@Clouds\n\ndefine go to (x) (y)\nset size to (400) %\ngo to x: (x) y: (y)\nset size to (100) %\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [ghost v] effect to (pick random (40) to (75))\nswitch costume to (pick random (1) to (6))\nshow\nset [rand2 v] to (pick random (5) to (10))\nif <(pick random (1) to (2)) = [1]> then\n    go to [-300] (pick random (75) to (200))\n    repeat until <(x position) > [300]>\n        go to (((x position) + (rand2)) * (1)) (y position)\n    end\n    delete this clone\nelse\n    go to [300] (pick random (100) to (250))\n    repeat until <(x position) < [-300]>\n        go to ((x position) + ((rand2) * (-1))) (y position)\n    end\n    delete this clone\nend\n\nwhen I receive [start project v]\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwait (1) seconds\nshow\n\n@Spikes\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Blank \n\n@Words\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nshow\nrepeat (4)\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\nwhen I receive [shop v]\nhide\n\nwhen [space v] key pressed\nshow\n\n@Shop\n\nwhen flag clicked\nset [speed boost v] to [0]\nset [jump boost v] to [0]\n\nwhen [timer v] > (.01)\nhide\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen this sprite clicked\nbroadcast (Clicked v)\n\nwhen flag clicked\nforever\n    if <<key (space v) pressed?> and <(costume [number v]) = [2]>> then\n        switch costume to (shop v)\n    end\nend\n\nwhen I receive [clicked v]\nbroadcast (Shop v)\n\nwhen I receive [shop v]\nswitch costume to (shop open v)\n\nwhen flag clicked\nswitch costume to (shop v)\n\nwhen flag clicked\nrepeat (10)\n    go to [front v] layer\n    show\nend\n\n@Coin1\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [1]> then\n        show\n        go to x: (12) y: (0)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [1]> then\n        go to x: (100) y: (-100)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (you v)?> then\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (you v)?> then\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [3]> then\n        show\n        go to x: (12) y: (-20)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [3]> then\n        go to x: (65) y: (-100)\n    end\nend\n\nset [level v] to [2]\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [2]> then\n        show\n        go to x: (70) y: (-110)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [2]> then\n        go to x: (35) y: (-110)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [4]> then\n        show\n        go to x: (190) y: (0)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [4]> then\n        go to x: (70) y: (0)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [6]> then\n        show\n        go to x: (-120) y: (40)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [6]> then\n        go to x: (-120) y: (70)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [7]> then\n        show\n        go to x: (-130) y: (-40)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [7]> then\n        go to x: (-30) y: (0)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [8]> then\n        show\n        go to x: (-100) y: (0)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [8]> then\n        go to x: (-100) y: (30)\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [9]> then\n        go to x: (130) y: (0)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [9]> then\n        hide\n        go to x: (-100) y: (0)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nset [level v] to [9]\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [10]> then\n        hide\n        go to x: (-100) y: (90)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [10]> then\n        go to x: (-20) y: (0)\n    end\nend\n\n@Jump Boost\n\nwhen flag clicked\nhide\n\nwhen I receive [shop v]\nshow\n\nwhen [space v] key pressed\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen this sprite clicked\nif <<<[15] < (COINS)> or <[15] = (COINS)>> and <(costume [number v]) = [1]>> then\n    set [jump boost v] to [1]\n    change [coins v] by (-15)\n    wait (.5) seconds\n    forever\n        switch costume to (checkmark v)\n    end\nelse\n    if <not <<[15] < (COINS)> or <[15] = (COINS)>>> then\n        switch costume to (costume1 v)\n        set [coins v] to (COINS)\n        set [speed boost v] to [0]\n    end\nend\n\nwhen I receive [colour v]\nhide\n\n@Speed Boost\n\nwhen [space v] key pressed\nhide\n\nwhen I receive [shop v]\nshow\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen this sprite clicked\nif <<<[15] < (COINS)> or <[15] = (COINS)>> and <(costume [number v]) = [1]>> then\n    set [speed boost v] to [1]\n    change [coins v] by (-15)\n    wait (.5) seconds\n    forever\n        switch costume to (checkmark v)\n    end\nelse\n    if <not <<[15] < (COINS)> or <[15] = (COINS)>>> then\n        switch costume to (costume1 v)\n        set [coins v] to (COINS)\n        set [speed boost v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [colour v]\nhide\n\n@ Colour\n\nwhen I receive [shop v]\nshow\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen this sprite clicked\nbroadcast (Colour v)\n\nwhen I receive [colour v]\nhide\n\n@NOTHING\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Coin2\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [1]> then\n        show\n        go to x: (140) y: (-99)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [2]> then\n        go to x: (-35) y: (-111)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (you v)?> then\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (you v)?> then\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [2]> then\n        show\n        go to x: (0) y: (-110)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen flag clicked\ndelete this clone\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [3]> then\n        show\n        go to x: (-65) y: (-97)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [3]> then\n        go to x: (200) y: (-97)\n    end\nend\n\nset [level v] to [4]\n\nwhen I start as a clone\nforever\n    if <(Level) = [1]> then\n        go to x: (12) y: (-40)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [4]> then\n        show\n        go to x: (190) y: (30)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [4]> then\n        go to x: (70) y: (30)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [7]> then\n        show\n        go to x: (90) y: (60)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [7]> then\n        go to x: (200) y: (100)\n    end\nend\n\nset [level v] to [7]\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [8]> then\n        show\n        go to x: (200) y: (-100)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [8]> then\n        go to x: (100) y: (-100)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [9]> then\n        show\n        go to x: (-200) y: (70)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [9]> then\n        go to x: (-70) y: (100)\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [10]> then\n        show\n        go to x: (-140) y: (10)\n        create clone of (_myself_ v)\n        wait until <(Level) = [Never]>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [10]> then\n        go to x: (140) y: (80)\n    end\nend\n\n@Red\n\nwhen I receive [colour v]\nshow\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen this sprite clicked\nif <<<[5] < (COINS)> or <[5] = (COINS)>> and <(costume [number v]) = [1]>> then\n    broadcast (REd v)\n    change [coins v] by (-5)\n    wait (.5) seconds\n    forever\n        switch costume to (costume2 v)\n    end\nelse\n    if <not <<[5] < (COINS)> or <[5] = (COINS)>>> then\n        switch costume to (costume1 v)\n        set [coins v] to (COINS)\n        set [colour v] to [0]\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Blue\n\nwhen I receive [colour v]\nshow\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nhide\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen this sprite clicked\nif <<<[5] < (COINS)> or <[5] = (COINS)>> and <(costume [number v]) = [1]>> then\n    broadcast (Blue v)\n    change [coins v] by (-5)\n    wait (.5) seconds\n    forever\n        switch costume to (costume2 v)\n    end\nelse\n    if <not <<[5] < (COINS)> or <[5] = (COINS)>>> then\n        switch costume to (costume1 v)\n        set [coins v] to (COINS)\n        set [colour v] to [0]\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Lime\n\nwhen I receive [colour v]\nshow\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen [space v] key pressed\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen this sprite clicked\nif <<<[5] < (COINS)> or <[5] = (COINS)>> and <(costume [number v]) = [1]>> then\n    broadcast (Green v)\n    set [colour v] to [1]\n    change [coins v] by (-5)\n    wait (.5) seconds\n    forever\n        switch costume to (costume2 v)\n    end\nelse\n    if <not <<[5] < (COINS)> or <[5] = (COINS)>>> then\n        switch costume to (costume1 v)\n        set [coins v] to (COINS)\n        set [colour v] to [0]\n    end\nend\n\n@Shop2\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen this sprite clicked\nbroadcast (Clicked v)\n\nwhen I receive [shop v]\nshow\nswitch costume to (shop open v)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen [space v] key pressed\nhide\n\nwhen I receive [colour v]\nhide\n\nwhen I receive [colour v]\nswitch costume to (colours v)\nshow\n\n@TB\n\nwhen flag clicked\nshow variable [coins v]\nhide\nset size to (115) %\n\nshow\n\ngo to [front v] layer\n\nwhen [timer v] > (0.1)\nshow\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nshow\n\n