Stickman Platformer WIP
@Stage\n\nwhen I receive [next level v]\nnext backdrop\n\nwhen I receive [game over v]\nswitch backdrop to (die v)\nstop [all v]\n\nwhen I receive [cheat 6 v]\nhide list [levels v]\nask [What Level] and wait\nswitch backdrop to (answer)\nshow list [levels v]\n\nwhen flag clicked\ndelete (all) of [levels v]\nadd [Level 1] to [levels v]\nadd [Level 2] to [levels v]\nadd [Level 3] to [levels v]\nadd [Level 4] to [levels v]\nadd [Level 5] to [levels v]\nadd [Level 6] to [levels v]\nadd [Level 7] to [levels v]\nadd [Level 8] to [levels v]\nadd [Level 9] to [levels v]\nadd [Level 10] to [levels v]\nadd [Level 11] to [levels v]\nadd [Level 12] to [levels v]\nadd [Level 13] to [levels v]\nadd [Level 14] to [levels v]\nadd [Level 15] to [levels v]\nadd [Level 16] to [levels v]\nadd [Level 17] to [levels v]\nadd [Level 18] to [levels v]\nadd [Level 19] to [levels v]\nadd [Level 20] to [levels v]\n\nwhen flag clicked\nshow list [levels v]\nswitch backdrop to (level 1 v)\n\nwhen I receive [end v]\nswitch backdrop to (level 21 v)\n\nwhen flag clicked\nswitch backdrop to (level 1 v)\n\n@Player\n\nwhen I receive [game start v]\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\nend\n\nwhen I receive [game start v]\nforever\n    if <key (space v) pressed?> then\n        switch costume to (shooting v)\n    end\n    if <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n        switch costume to (Walk)\n    end\n    if <(yvelocity) > [2]> then\n        switch costume to (jump v)\n    end\n    if <(yvelocity) < [-3]> then\n        switch costume to (fall v)\n    end\n    if <<(yvelocity) < <[0] > [-0.5]>> and <not <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> or <key (space v) pressed?>>>> then\n        switch costume to (player v)\n    end\nend\n\nwhen I receive [game start v]\nset [walk v] to [4]\nforever\n    change [walk v] by (1)\n    wait (0.05) seconds\n    if <(Walk) > [7]> then\n        set [walk v] to [4]\n    end\nend\n\nwhen flag clicked\nset size to (90) %\nforever\n    if <<key (c v) pressed?> and <<<(username) = [Enderlord2017]> or <(username) = [Popfiz910]>> or <<(username) = [TheBlackAvenger9]> or <(username) = [dallinj15]>>>> then\n        ask [] and wait\n        if <(answer) = [Help]> then\n            broadcast (help v)\n        end\n        if <(answer) = [Fun]> then\n            broadcast (cheat 1 v)\n        end\n        if <(answer) = [Big W]> then\n            broadcast (cheat 2 v)\n        end\n        if <(answer) = [GoldHeart]> then\n            broadcast (cheat 3 v)\n        end\n        if <(answer) = [Small]> then\n            broadcast (cheat 4 v)\n        end\n        if <(answer) = [Flash]> then\n            broadcast (cheat 5 v)\n        end\n        if <(answer) = [Level]> then\n            broadcast (cheat 6 v)\n        end\n        if <(answer) = [GoldStar Members]> then\n            broadcast (cheat 7 v)\n        end\n        if <(answer) = [Fly]> then\n            broadcast (cheat 8 v)\n        end\n    else\n        if <key (t v) pressed?> then\n            ask [] and wait\n            say (answer) for (3) seconds\n            if <(answer) = [Smol]> then\n                broadcast (cheat 4 v)\n            end\n        else\n            if <key (d v) pressed?> then\n                repeat until <key (w v) pressed?>\n                    switch costume to (Walk)\n                    point in direction (pick random (90) to (-90))\n                    wait (0.01) seconds\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nset rotation style [all around v]\npoint in direction (pick random (180) to (-180))\nrepeat (10)\n    move (10) steps\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [cheat 2 v]\nrepeat until <key (0 v) pressed?>\n    change [whirl v] effect by (1)\nend\nif <key (0 v) pressed?> then\n    set [whirl v] effect to (0)\nend\n\nwhen I receive [game start v]\nforever\n    go to (hitbox v)\n    go to [front v] layer\nend\n\nwhen I receive [cheat 1 v]\nrepeat until <key (0 v) pressed?>\n    create clone of (_myself_ v)\nend\n\nwhen I receive [cheat 4 v]\nrepeat until <key (0 v) pressed?>\n    set size to (25) %\nend\nif <key (0 v) pressed?> then\n    set size to (90) %\nend\n\nwhen flag clicked\ndelete (all) of [cheats v]\nshow list [cheats v]\nadd [Fun] to [cheats v]\nadd [Big W] to [cheats v]\nadd [GoldHeart] to [cheats v]\nadd [Small] to [cheats v]\nadd [Flash] to [cheats v]\nadd [Level] to [cheats v]\nadd [GoldStar Members] to [cheats v]\nadd [Fly] to [cheats v]\n\nwhen I receive [help v]\nhide list [cheats v]\nforever\n    if <key (0 v) pressed?> then\n        show list [cheats v]\n    end\nend\n\nwhen I receive [cheat 5 v]\nrepeat until <key (0 v) pressed?>\n    set [flash v] to [1]\nend\nif <key (0 v) pressed?> then\n    set [flash v] to [0]\nend\n\nwhen I receive [game start v]\nset [goldstar? v] to [yes]\nset size to (90) %\nset rotation style [left-right v]\npoint in direction (90)\nshow\nset [level v] to [1]\nset [lives v] to [12]\nset [yvelocity v] to [0]\ngo to x: (-181) y: (-36)\npoint in direction (90)\nforever\n    change y by (yvelocity)\n    if <<key (up arrow v) pressed?> and <(yvelocity) < [0]>> then\n        if <<touching color (#b2b2b2)?> or <touching color (#9c9c9c)?>> then\n            set [yvelocity v] to [10]\n            change y by (10)\n        end\n    end\n    if <<touching color (#b2b2b2)?> or <touching color (#9c9c9c)?>> then\n        if <(yvelocity) < [0]> then\n            set [yvelocity v] to [0]\n        end\n        if <(yvelocity) > [0]> then\n            change y by ((0) - (yvelocity))\n            set [yvelocity v] to [-4]\n        end\n    end\n    repeat until <not <<touching color (#b2b2b2)?> or <touching color (#9c9c9c)?>>>\n        change y by (1)\n    end\n    change [yvelocity v] by (-0.5)\n    if <<touching color (#ff0000)?> or <touching color (#3b9647)?>> then\n        wait (0) seconds\n        broadcast (DiE!!!!!! v)\n        set [goldstar? v] to [no]\n        point in direction (90)\n    end\n    if <(Lives) < [1]> then\n        broadcast (game over v)\n        hide\n    end\n    repeat until <(backdrop [name v]) = [Level 20]>\n        if <touching color (#330066)?> then\n            broadcast (next level v)\n            change [lives v] by (1)\n            point in direction (90)\n            wait (0.5) seconds\n        end\n    end\nend\n\nwhen I receive [cheat 6 v]\ngo to x: (-181) y: (-36)\n\nwhen flag clicked\nforever\n    go to (hitbox v)\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    if <<(backdrop [name v]) = [Level 20]> and <touching color (#330066)?>> then\n        hide\n        stop [other scripts in sprite v]\n        if <<<(GoldStar?) = [yes]> and <not <<(username) = (GoldStar Members)> or <(username) < (GoldStar Members)>>>> and <(Zombies) = [5]>> then\n            broadcast (goldstar v)\n        else\n            broadcast (end scene v)\n        end\n    end\nend\n\nwhen I receive [cheat 7 v]\nhide list [goldstar members v]\nforever\n    if <key (0 v) pressed?> then\n        show list [goldstar members v]\n    end\nend\n\nwhen I receive [cheat 8 v]\nhide\n\nwhen I receive [cheat 8 off v]\nshow\n\nwhen I receive [game over v]\nhide\n\n@HitBox\n\nwhen I receive [next level v]\ngo to x: (-181) y: (-36)\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [game start v]\nshow\nset size to (90) %\nset [ghost v] effect to (100)\nset [level v] to [1]\nset [lives v] to [12]\nset [yvelocity v] to [0]\ngo to x: (-181) y: (-36)\nforever\n    change y by (yvelocity)\n    if <<key (up arrow v) pressed?> and <(yvelocity) < [0]>> then\n        if <touching color (#b2b2b2)?> then\n            set [yvelocity v] to [10]\n            change y by (10)\n        end\n    end\n    if <touching color (#b2b2b2)?> then\n        if <(yvelocity) < [0]> then\n            set [yvelocity v] to [0]\n        end\n        if <(yvelocity) > [0]> then\n            change y by ((0) - (yvelocity))\n            set [yvelocity v] to [-4]\n        end\n    end\n    repeat until <not <touching color (#b2b2b2)?>>\n        change y by (1)\n    end\n    change [yvelocity v] by (-0.5)\n    if <<touching color (#ff0000)?> or <touching color (#019313)?>> then\n        wait (0) seconds\n        broadcast (DiE!!!!!! v)\n        change [lives v] by (-1)\n        go to x: (-181) y: (-36)\n        point in direction (90)\n    end\nend\n\nwhen I receive [cheat 4 v]\nrepeat until <key (0 v) pressed?>\n    set size to (25) %\nend\nif <key (0 v) pressed?> then\n    set size to (90) %\nend\n\nwhen flag clicked\nset rotation style [left-right v]\n\nwhen I receive [end scene v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [cheat 8 off v]\nset rotation style [left-right v]\nshow\nset size to (90) %\nset [ghost v] effect to (100)\nset [level v] to [1]\nset [lives v] to [12]\nset [yvelocity v] to [0]\nforever\n    change y by (yvelocity)\n    if <<key (up arrow v) pressed?> and <(yvelocity) < [0]>> then\n        if <touching color (#b2b2b2)?> then\n            set [yvelocity v] to [10]\n            change y by (10)\n        end\n    end\n    if <touching color (#b2b2b2)?> then\n        if <(yvelocity) < [0]> then\n            set [yvelocity v] to [0]\n        end\n        if <(yvelocity) > [0]> then\n            change y by ((0) - (yvelocity))\n            set [yvelocity v] to [-4]\n        end\n    end\n    repeat until <not <touching color (#b2b2b2)?>>\n        change y by (1)\n    end\n    change [yvelocity v] by (-0.5)\n    if <<touching color (#ff0000)?> or <touching color (#019313)?>> then\n        wait (0) seconds\n        change [lives v] by (-1)\n        go to x: (-181) y: (-36)\n        point in direction (90)\n    end\nend\n\nwhen I receive [cheat 8 off v]\nset [xvelocity v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        change [scrollx v] by (3)\n        set [xvelocity v] to [15]\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        set [xvelocity v] to [-15]\n    end\n    set [xvelocity v] to ((xvelocity) / (2))\n    change x by (xvelocity)\n    if <touching color (#b2b2b2)?> then\n        change x by ((0) - (xvelocity))\n        set [xvelocity v] to [0]\n    end\nend\n\nwhen I receive [cheat 8 v]\nstop [other scripts in sprite v]\nwait (0.005) seconds\nset rotation style [don't rotate v]\nrepeat until <key (0 v) pressed?>\n    if <<touching color (#ff0000)?> or <touching color (#019313)?>> then\n        wait (0) seconds\n        broadcast (DiE!!!!!! v)\n        change [lives v] by (-1)\n        go to x: (-181) y: (-36)\n        point in direction (90)\n    end\n    point towards (mouse-pointer v)\n    if <mouse down?> then\n        move (10) steps\n    end\nend\nif <key (0 v) pressed?> then\n    broadcast (Cheat 8 off v)\nend\n\nwhen I receive [game start v]\nset [xvelocity v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        change [scrollx v] by (3)\n        set [xvelocity v] to [15]\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        set [xvelocity v] to [-15]\n    end\n    set [xvelocity v] to ((xvelocity) / (2))\n    change x by (xvelocity)\n    if <touching color (#b2b2b2)?> then\n        change x by ((0) - (xvelocity))\n        set [xvelocity v] to [0]\n    end\nend\n\n@Lives\n\nwhen flag clicked\nhide\nforever\n    go to x: (-184) y: (163)\nend\n\nwhen I receive [game over v]\nhide\n\nwhen flag clicked\nforever\n    if <(Lives) = [12]> then\n        switch costume to (lives v)\n    end\n    if <(Lives) = [11]> then\n        switch costume to (lives2 v)\n    end\n    if <(Lives) = [10]> then\n        switch costume to (lives3 v)\n    end\n    if <(Lives) = [9]> then\n        switch costume to (lives4 v)\n    end\n    if <(Lives) = [8]> then\n        switch costume to (lives5 v)\n    end\n    if <(Lives) = [7]> then\n        switch costume to (lives6 v)\n    end\n    if <(Lives) = [6]> then\n        switch costume to (lives7 v)\n    end\n    if <(Lives) = [5]> then\n        switch costume to (lives8 v)\n    end\n    if <(Lives) = [4]> then\n        switch costume to (lives9 v)\n    end\n    if <(Lives) = [3]> then\n        switch costume to (lives10 v)\n    end\n    if <(Lives) = [2]> then\n        switch costume to (lives11 v)\n    end\n    if <(Lives) = [1]> then\n        switch costume to (lives12 v)\n    end\n    if <(Lives) = [0]> then\n        switch costume to (dead v)\n        broadcast (Game Over v)\n    end\nend\n\nwhen I receive [done v]\nforever\n    if <(Lives) = [12]> then\n        switch costume to (lives v)\n    end\n    if <(Lives) = [11]> then\n        switch costume to (lives2 v)\n    end\n    if <(Lives) = [10]> then\n        switch costume to (lives3 v)\n    end\n    if <(Lives) = [9]> then\n        switch costume to (lives4 v)\n    end\n    if <(Lives) = [8]> then\n        switch costume to (lives5 v)\n    end\n    if <(Lives) = [7]> then\n        switch costume to (lives6 v)\n    end\n    if <(Lives) = [6]> then\n        switch costume to (lives7 v)\n    end\n    if <(Lives) = [5]> then\n        switch costume to (lives8 v)\n    end\n    if <(Lives) = [4]> then\n        switch costume to (lives9 v)\n    end\n    if <(Lives) = [3]> then\n        switch costume to (lives10 v)\n    end\n    if <(Lives) = [2]> then\n        switch costume to (lives11 v)\n    end\n    if <(Lives) = [1]> then\n        switch costume to (lives12 v)\n    end\n    if <(Lives) = [0]> then\n        switch costume to (dead v)\n        broadcast (Game Over v)\n    end\nend\n\nwhen I receive [cheat 3 v]\nstop [other scripts in sprite v]\nrepeat until <key (0 v) pressed?>\n    switch costume to (gold heart v)\n    set [lives v] to [12]\nend\nbroadcast (Done v)\nforever\n    go to x: (-184) y: (163)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [end scene v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nset [lives v] to [12]\n\nwhen I receive [game start v]\nshow\n\n@Zombie\n\nwhen flag clicked\nset [five v] to [0]\nhide\n\nwhen backdrop switches to [level 4 v]\npoint in direction (90)\nshow\ngo to x: (36) y: (-105)\nforever\n    if <(Flash) = [0]> then\n        repeat (50)\n            move (2) steps\n        end\n        point in direction (-90)\n        repeat (50)\n            move (2) steps\n        end\n        point in direction (90)\n    else\n        repeat (500)\n            move (0.2) steps\n        end\n        point in direction (-90)\n        repeat (500)\n            move (0.2) steps\n        end\n        point in direction (90)\n    end\nend\n\nwhen backdrop switches to [level 4 v]\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [level 4 v]\nforever\n    if <touching (energy bullet v)?> then\n        hide\n        change [five v] by (1)\n        change [zombies v] by (1)\n    end\nend\n\nwhen flag clicked\nset [zombies v] to [0]\nforever\n    if <(backdrop [name v]) > [Level 4]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [end scene v]\nhide\nstop [other scripts in sprite v]\n\n@Zombie2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 5 v]\npoint in direction (-90)\nshow\ngo to x: (219) y: (95)\nforever\n    if <(Flash) = [0]> then\n        repeat (65)\n            move (2) steps\n        end\n        point in direction (90)\n        repeat (65)\n            move (2) steps\n        end\n        point in direction (-90)\n    else\n        repeat (6500)\n            move (0.2) steps\n        end\n        point in direction (90)\n        repeat (6500)\n            move (0.2) steps\n        end\n        point in direction (-90)\n    end\nend\n\nwhen backdrop switches to [level 5 v]\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [level 5 v]\nforever\n    if <touching (energy bullet v)?> then\n        hide\n        change [zombies v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) > [Level 5]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [end scene v]\nhide\nstop [other scripts in sprite v]\n\n@Pic\n\nwhen flag clicked\ngo to [front v] layer\nshow\nset x to (0)\nset y to (0)\ngo to [front v] layer\n\nwhen I receive [game start v]\nhide\n\n@Start Button\n\nwhen this sprite clicked\nbroadcast (Game Start v)\nhide\n\nwhen flag clicked\ngo to x: (-11) y: (-94)\nshow\nrepeat (2)\n    go to [front v] layer\nend\n\n@Music\n\nwhen I receive [music v]\nrepeat until <<key (s v) pressed?> and <<(username) = [Enderlord2017]> or <(username) = [Popfiz910]>>>\n    play sound (pick random (1) to (14)) until done\nend\n\nwhen I receive [game start v]\nforever\n    if <<(username) = [Enderlord2017]> or <(username) = [Popfiz910]>> then\n        if <key (s v) pressed?> then\n            stop all sounds\n            wait (0.01) seconds\n            play sound [Tobu - Sweet Story.mp3 v] until done\n            broadcast (Music v)\n        end\n    end\nend\n\nwhen I receive [game start v]\nrepeat until <<key (s v) pressed?> and <<(username) = [Enderlord2017]> or <(username) = [Popfiz910]>>>\n    play sound (pick random (1) to (14)) until done\nend\n\nwhen I receive [end scene v]\nhide\nstop [other scripts in sprite v]\n\n@Zombie3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 6 v]\npoint in direction (90)\nshow\ngo to x: (37) y: (-106)\nforever\n    if <(Flash) = [0]> then\n        repeat (17)\n            move (2) steps\n        end\n        point in direction (-90)\n        repeat (17)\n            move (2) steps\n        end\n        point in direction (90)\n    else\n        repeat (170)\n            move (0.2) steps\n        end\n        point in direction (-90)\n        repeat (170)\n            move (0.2) steps\n        end\n        point in direction (90)\n    end\nend\n\nwhen backdrop switches to [level 6 v]\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [level 6 v]\nforever\n    if <touching (energy bullet v)?> then\n        hide\n        change [zombies v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) > [Level 6]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [end scene v]\nhide\nstop [other scripts in sprite v]\n\n@Zombie4\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 8 v]\ngo to x: (42) y: (100)\npoint in direction (90)\nshow\nforever\n    if <(Flash) = [0]> then\n        repeat (75)\n            move (2) steps\n        end\n        point in direction (-90)\n        repeat (75)\n            move (2) steps\n        end\n        point in direction (90)\n    else\n        repeat (7500)\n            move (0.2) steps\n        end\n        point in direction (-90)\n        repeat (7500)\n            move (0.2) steps\n        end\n        point in direction (90)\n    end\nend\n\nwhen backdrop switches to [level 8 v]\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [level 8 v]\nforever\n    if <touching (energy bullet v)?> then\n        hide\n        change [zombies v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) > [Level 8]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [end scene v]\nhide\nstop [other scripts in sprite v]\n\n@lava\n\nwhen backdrop switches to [level 10 v]\nhide\ngo to x: (0) y: (-2000)\nswitch costume to (backdrop [name v])\ngo to x: (0) y: (-2000)\nset [lava v] to [1]\nshow\nrepeat until <not <(backdrop [name v]) = [Level 10]>>\n    if <(Flash) = [0]> then\n        change y by (0.5)\n    else\n        change y by (0.05)\n    end\nend\n\nwhen flag clicked\nset [stop v] to [0]\nhide\n\nwhen I receive [end scene v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [die!!!!!! v]\nif <<(backdrop [name v]) = [Level 12]> or <(backdrop [name v]) = [Level 10]>> then\n    go to x: (0) y: (-2000)\nend\n\nwhen backdrop switches to [level 12 v]\nhide\ngo to x: (0) y: (-2000)\nswitch costume to (backdrop [name v])\ngo to x: (0) y: (-2000)\nset [lava v] to [1]\nshow\nrepeat until <not <(backdrop [name v]) = [Level 12]>>\n    if <(Flash) = [0]> then\n        change y by (0.5)\n    else\n        change y by (0.05)\n    end\nend\n\nwhen I receive [game start v]\nshow\ngo to [back v] layer\nforever\n    if <not <<(backdrop [name v]) = [Level 12]> or <(backdrop [name v]) = [Level 10]>>> then\n        switch costume to (backdrop [name v])\n        go to x: (0) y: (0)\n    end\nend\n\nwhen backdrop switches to [level 13 v]\nswitch costume to (level 20 v)\ngo to x: (0) y: (0)\n\nwhen backdrop switches to [level 11 v]\nswitch costume to (level 20 v)\ngo to x: (0) y: (0)\n\nswitch backdrop to (level 9 v)\n\nwhen I receive [next level v]\nhide\nwait (0.01) seconds\nshow\n\n@Zombie5\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [level 20 v]\ngo to x: (-110) y: (-110)\npoint in direction (90)\nshow\nforever\n    if <(Flash) = [0]> then\n        repeat (80)\n            move (2) steps\n        end\n        point in direction (90)\n        repeat (80)\n            move (2) steps\n        end\n        point in direction (-90)\n    else\n        repeat (8000)\n            move (0.2) steps\n        end\n        point in direction (90)\n        repeat (8000)\n            move (0.2) steps\n        end\n        point in direction (-90)\n    end\nend\n\nwhen backdrop switches to [level 20 v]\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [level 20 v]\nforever\n    if <touching (energy bullet v)?> then\n        hide\n        change [zombies v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) > [Level 20]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [end scene v]\nhide\nstop [other scripts in sprite v]\n\n@Cut Scene\n\nwhen I receive [end scene v]\nshow\nwait (5) seconds\nswitch costume to (costume2 v)\nwait (3) seconds\nbroadcast (End v)\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nforever\n    go to x: (-2) y: (0)\n    go to [front v] layer\n    set size to (100) %\nend\n\nwhen I receive [goldstar v]\nshow\nswitch costume to (goldstar v)\nif <not <<(username) = (GoldStar Members)> or <(username) < (GoldStar Members)>>> then\n    add (username) to [goldstar members v]\nend\nwait (4) seconds\nswitch costume to (costume1 v)\nbroadcast (End Scene v)\n\n@Sprite1\n\nwhen flag clicked\nhide\nset size to (150) %\nset [ghost v] effect to (100)\nwait (0.05) seconds\nforever\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen I receive [end v]\nshow\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nstop [all v]\n\n@Gold Star\n\nwhen I receive [game start v]\nhide\ngo to x: (222) y: (159)\nif <<(username) = (GoldStar Members)> or <(username) < (GoldStar Members)>> then\n    go to [front v] layer\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nshow list [goldstar members v]\nhide variable [☁ gold star v]\n\n@Energy Bullet\n\nwhen flag clicked\nset [fly v] to [0]\nset rotation style [left-right v]\nhide\ngo to (hitbox v)\n\nwhen I start as a clone\nif <(Fly) = [0]> then\n    point in direction ([direction v] of [player v])\n    go to (hitbox v)\nelse\n    point in direction ([direction v] of [fly v])\n    go to (fly v)\nend\ngo [backward v] (1) layers\nshow\nrepeat until <<touching (_edge_ v)?> or <touching color (#9c9c9c)?>>\n    if <(Flash) = [0]> then\n        move (20) steps\n    else\n        move (3) steps\n    end\nend\ndelete this clone\n\nwhen flag clicked\nset [flash v] to [0]\nforever\n    if <key (space v) pressed?> then\n        create clone of (_myself_ v)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [next level v]\ndelete this clone\n\nwhen I receive [end scene v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [cheat 8 v]\nset [fly v] to [1]\nset rotation style [all around v]\nstop [other scripts in sprite v]\nrepeat until <(Fly) = [0]>\n    go to (fly v)\n    if <key (space v) pressed?> then\n        create clone of (_myself_ v)\n        wait (1) seconds\n    end\nend\nif <(Fly) = [Off]> then\n    stop [this script v]\nend\n\nwhen I receive [cheat 8 off v]\nhide\nforever\n    go to (hitbox v)\nend\n\nwhen I receive [cheat 8 off v]\npoint in direction ([direction v] of [player v])\nstop [other scripts in sprite v]\nset rotation style [left-right v]\nset [flash v] to [0]\nforever\n    if <key (space v) pressed?> then\n        create clone of (_myself_ v)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [cheat 8 off v]\nset [fly v] to [0]\n\n@Fly\n\nwhen flag clicked\nhide\nforever\n    go to (hitbox v)\n    point towards (mouse-pointer v)\nend\n\nwhen I receive [cheat 8 off v]\nhide\n\nwhen I receive [cheat 8 v]\nshow\nforever\n    if <touching color (#330066)?> then\n        broadcast (Next Level v)\n    end\nend\n\n@Cape\n\nwhen flag clicked\ngo [backward v] (1) layers\nhide\nforever\n    go to (hitbox v)\n    point towards (mouse-pointer v)\nend\n\nwhen I receive [cheat 8 off v]\nhide\n\nwhen I receive [cheat 8 v]\nshow\nforever\n    if <mouse down?> then\n        next costume\n    else\n        switch costume to (fly4 v)\n    end\n    if <touching color (#330066)?> then\n        broadcast (Next Level v)\n    end\nend\n\n
                                         Instructions\n-------------------------------------------------------------------------\nArrow Key to move\nSpacebar to Shoot your energy Pistol \nT to text\nD to Dance\nW to Stop dancing\n                                                 Story\n-------------------------------------------------------------------------\nYou are in a zombie apocalypse During a eruption. You are trying to get to an escape helicopter that will take you to a safehouse, Where scientists are working on a cure, You are carrying a hard drive with valuable information that you believe will finish the cure that the scientists are working on.\n ------------------------------------------------------------------------