Detective | A Platformer 2 (Mobile Friendly)
@Stage\n\nwhen I receive [start the platformer v]\nset [time taken v] to [0]\nrepeat until <(Success!?) = [1]>\n    change [time taken v] by (1)\n    wait (1) seconds\nend\n\nwhen I receive [next level v]\nnext backdrop\nwait (0.1) seconds\n\nwhen flag clicked\nset volume to (100) %\nswitch backdrop to (intro v)\n\nbroadcast (Start the Platformer v)\n\nwhen I receive [start home screen v]\nswitch backdrop to (home v)\n\nwhen I receive [start the platformer v]\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [door walk effect v]\nwait (0.5) seconds\nif <(backdrop [number v]) = [7]> then\n    play sound [recording1 v] until done\n    repeat (3)\n        start sound [Walk 1 v]\n        wait (0.2) seconds\n        start sound [Walk 2 v]\n        wait (0.2) seconds\n        start sound [Walk 1 v]\n        wait (0.2) seconds\n        start sound [Walk 2 v]\n        wait (0.2) seconds\n    end\n    stop [this script v]\nend\n\n@Ground\n\nwhen flag clicked\nset [drawing level finished? v] to [1]\nhide\nswitch costume to (costume1 v)\ngo to x: (-2) y: (5)\ngo to [back v] layer\n\ndefine Touch Ground <up?>\nchange [falling v] by (1)\nrepeat until <not <touching (ground v)?>>\n    change y by (1)\n    set [falling v] to [0]\n    set [speed y v] to [0]\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [8]> then\n        broadcast (Show Fake Lava v)\n    end\nend\n\nwhen flag clicked\nset [time taken v] to [0]\nforever\n    if <(costume [number v]) = [9]> then\n        broadcast (Hide Next Level v)\n    end\nend\n\nwhen I receive [start the platformer v]\nshow\n\nwhen [timer v] > (0.4)\nhide variable [deaths v]\nhide variable [time taken v]\nhide\n\nwhen flag clicked\nforever\n    if <not <(costume [number v]) = [8]>> then\n        broadcast (Hide Fake Lava v)\n    else\n        broadcast (Show Fake Lava v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        broadcast (Hide Infected Water v)\n    end\nend\n\nwhen flag clicked\nset pen size to (10)\nerase all\nset pen color to (#767676)\n\nwhen flag clicked\nset [stop effects v] to [0]\nforever\n    if <(costume [number v]) = [14]> then\n        broadcast (Escape!! v)\n        set [stop effects v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        broadcast (Acid Rain Residue coordinates Lv3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (Acid Rain Residue Lv2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (Acid Rain Residue Lv5 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [4]> then\n        broadcast (Acid Rain Residue Lv4 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        broadcast (Acid Rain Residue Lv6 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (Show Speeeeeeeed!!!!! v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(costume [number v]) = [8]> or <(costume [number v]) = [10]>> then\n        broadcast (guard v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (Show move platform v)\n    end\nend\n\nwhen flag clicked\nset volume to (90) %\n\nwhen I receive [start the platformer v]\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <not <<<(costume [number v]) = [14]> or <<(costume [number v]) = [15]> or <(costume [number v]) = [16]>>> or <(costume [number v]) = [1]>>> then\n        broadcast (Fire!!!!!! v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [16]> then\n        broadcast (water v)\n    end\nend\n\nbroadcast (Start the Platformer v)\n\nwhen I receive [start music again v]\nset volume to (100) %\n\nwhen I receive [stop music temporairily v]\nset volume to (0) %\n\nwhen flag clicked\nhide\n\nwhen I receive [start the platformer v]\nshow\n\nwhen I receive [start the platformer v]\nforever\n    if <<key (n v) pressed?> and <not <(backdrop [number v]) = [6]>>> then\n        broadcast (Transition v)\n        broadcast (Next Level v)\n        wait (0.2) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [7]> then\n        broadcast (stars v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [9]> then\n        broadcast (guard v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (saw bald show v)\n        stop [this script v]\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.4)\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [just start v]\ngo to x: (0) y: (0)\nshow\nwait (2) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nbroadcast (Start the Platformer v)\n\n@Death\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [start the platformer v]\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [start the platformer v]\n\nwhen I receive [success!!! v]\nhide\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\nend\n\n@Palete\n\n@Player?\n\nwhen I receive [next skin v]\nnext costume\nif <(costume [number v]) = [1]> then\n    next costume\nend\nset [skin v] to (costume [number v])\n\nwhen I receive [previous skin  v]\nswitch costume to ((costume [number v]) - (1))\nif <(costume [number v]) = [1]> then\n    switch costume to ((costume [number v]) - (1))\nend\nset [skin v] to (costume [number v])\n\nwhen flag clicked\nhide\nswitch costume to (blue v)\n\nwhen flag clicked\nset [left/right? v] to [90]\nforever\n    if <(direction) = [-90]> then\n        set [left/right? v] to [-90]\n        broadcast (left v)\n    else\n        set [left/right? v] to [90]\n        broadcast (right v)\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nforever\n    if <touching (bouncy v)?> then\n        set [player?: yv v] to [20]\n    end\nend\n\nwhen flag clicked\nset [success!? v] to [0]\nrepeat until <(Success!?) = [1]>\n    \n        broadcast (Success!!! v)\n        set [success!? v] to [1]\n    end\nend\nchange [☁ koalas saved v] by (1)\nforever\n    hide\nend\n\nwhen I receive [success!!! v]\nforever\n    hide\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [239]> then\n        if <(transition allowed?) = [Yes]> then\n            broadcast (Transition v)\n            go to x: (-210) y: (-33)\n            broadcast (Next Level v)\n        else\n            broadcast (Door walk effect v)\n            wait (4) seconds\n            go to x: (-210) y: (-33)\n            broadcast (Next Level v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nhide variable [deaths v]\nhide variable [time taken v]\n\nwhen I receive [start the platformer v]\nshow\ngo to x: (-210) y: (-33)\nset [player?: xv v] to [0]\nset [player?: yv v] to [0]\n\nwhen flag clicked\nset [transition allowed? v] to [Yes]\nswitch costume to (costume3 v)\nforever\n    set rotation style [left-right v]\nend\n\nwhen flag clicked\nforever\n    if <touching (speeeeeeeed!!!!!!!!! v)?> then\n        change x by (30)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-206) y: (-33)\n\nwhen flag clicked\nset [deaths v] to [0]\n\nwhen I start as a clone\nswitch costume to (clone trail v)\nset size to (35) %\nrepeat (10)\n    change size by (-3.5)\nend\ndelete this clone\n\nwhen I receive [start the platformer v]\nshow\nswitch costume to (blue v)\nset rotation style [left-right v]\nset size to (35) %\nset [player?: xv v] to [0]\nset [player?: yv v] to [0]\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [player?: xv v] by (1)\n        point in direction (90)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [player?: xv v] by (-1)\n        point in direction (-90)\n    end\n    set [player?: xv v] to ((Player?: Xv) * (0.825))\n    change x by (Player?: Xv)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((Player?: Xv) * (-2))\n                            change y by (-5)\n                            if <<<mouse down?> and <(mouse y) > (y position)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(Player?: Xv) > [0]> then\n                                    set [player?: xv v] to [-5]\n                                else\n                                    set [player?: xv v] to [5]\n                                end\n                                set [player?: yv v] to [10]\n                            else\n                                set [player?: xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [player?: yv v] by (-1)\n    change y by (Player?: Yv)\n    if <touching (ground v)?> then\n        change y by ((Player?: Yv) * (-1))\n        set [player?: yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n            set [player?: yv v] to [13]\n        end\n    end\n    if <<<<<<touching (death v)?> or <touching (spike v)?>> or <touching (guard v)?>> or <touching (guard2 v)?>> or <touching (guard3 v)?>> or <touching (saw blade v)?>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-210) y: (-33)\n        change [deaths v] by (1)\n        change [☁ worldwide deaths v] by (1)\n        set [player?: xv v] to [0]\n    end\n    change y by (1)\nend\n\nwhen I receive [next costume v]\nnext costume\n\nwhen I receive [previous coustume v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen flag clicked\nbroadcast (blinkblinkblinkblink v)\n\nwhen I receive [blinkblinkblinkblink v]\nswitch costume to (blue v)\nwait (pick random (5) to (15)) seconds\nrepeat (21)\n    next costume\nend\nbroadcast (blinkblinkblinkblink v)\n\nwhen I receive [success!!! v]\nforever\n    hide\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [2]> then\n        set [transition allowed? v] to [Yes]\n    else\n        if <(backdrop [number v]) = [3]> then\n            set [transition allowed? v] to [Yes]\n        else\n            if <(backdrop [number v]) = [4]> then\n                set [transition allowed? v] to [Yes]\n            else\n                if <(backdrop [number v]) = [5]> then\n                    set [transition allowed? v] to [Yes]\n                else\n                    if <(backdrop [number v]) = [6]> then\n                        set [transition allowed? v] to [No]\n                    else\n                        set [transition allowed? v] to [Yes]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [239]> then\n        broadcast (Transition v)\n        go to x: (-210) y: (-33)\n        broadcast (Next Level v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#875b14)?> then\n        broadcast (stick is now available v)\n    end\nend\n\nwhen I receive [music volume off v]\nhide\n\nwhen I receive [music volume on v]\nshow\n\n@Torch\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    change [ghost v] effect by (-10)\n    go to (player? v)\nend\n\nwhen I receive [left v]\nswitch costume to (left2 v)\n\nwhen I receive [right v]\nswitch costume to (right2 v)\n\nwhen flag clicked\nset [torch? v] to [1]\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [show torch v]\nshow\n\nwhen I receive [hide torch v]\nhide\n\nwhen I receive [start the platformer v]\nforever\n    go to [back v] layer\n    change [ghost v] effect by (-10)\n    go to (player? v)\nend\n\nwhen flag clicked\nrepeat until <(stick is now available?) = [Yes]>\n    if <key (l v) pressed?> then\n        wait (0.1) seconds\n        if <(gun?) = [1]> then\n            if <(torch?) = [1]> then\n                show\n                set [torch? v] to [0]\n            else\n                hide\n                set [torch? v] to [1]\n            end\n        end\n    end\nend\n\nwhen I receive [start the platformer v]\nshow\n\nwhen I receive [torch? v]\nwait (0.1) seconds\nif <(gun?) = [0]> then\n    if <(torch?) = [1]> then\n        show\n        set [torch? v] to [0]\n    else\n        hide\n        set [torch? v] to [1]\n    end\nend\n\nwhen I receive [stick is now available v]\nforever\n    if <key (l v) pressed?> then\n        wait (0.1) seconds\n        if <(gun?) = [1]> then\n            if <(torch?) = [1]> then\n                show\n                set [torch? v] to [0]\n            else\n                hide\n                set [torch? v] to [1]\n            end\n        end\n    end\nend\n\n@Torch Button\n\nwhen this sprite clicked\nif <(gun?) = [1]> then\n    if <(torch?) = [1]> then\n        set [torch? v] to [0]\n        broadcast (show torch v)\n    else\n        set [torch? v] to [1]\n        broadcast (hide torch v)\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [show boootons v]\nshow\n\nwhen flag clicked\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [go to back layer v]\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [success!!! v]\nforever\n    hide\nend\n\nwhen I receive [music volume off v]\nif <(mobile/pc) = [Mobile]> then\n    hide\nend\n\nwhen I receive [music volume on v]\nif <(mobile/pc) = [Mobile]> then\n    show\nend\n\nif <(mobile/pc) = [Mobile]> then\n\nwhen this sprite clicked\nwait (0.1) seconds\nbroadcast (torch? v)\n\n@Guard\n\nwhen flag clicked\nhide\nset [ghost v] effect to (0)\nswitch costume to (guard v)\nhide\nset rotation style [left-right v]\ngo to x: (-25) y: (-119)\nforever\n    if <(backdrop [number v]) = [1]> then\n        hide\n    end\n    if <(backdrop [number v]) = [2]> then\n        hide\n    end\n    if <(backdrop [number v]) = [3]> then\n        hide\n    end\n    if <(backdrop [number v]) = [4]> then\n        hide\n    end\n    if <(backdrop [number v]) = [5]> then\n        hide\n    end\n    if <(backdrop [number v]) = [6]> then\n        hide\n    end\n    if <(backdrop [number v]) = [7]> then\n        hide\n    end\n    if <(backdrop [number v]) = [8]> then\n        hide\n    end\n    if <(backdrop [number v]) = [9]> then\n        point in direction (90)\n        glide (1) secs to x: (-25) y: (-125)\n        point in direction (-90)\n        glide (1) secs to x: (150) y: (-125)\n    end\n    if <(backdrop [number v]) = [10]> then\n        point in direction (90)\n        glide (1) secs to x: (0) y: (112)\n        point in direction (-90)\n        glide (1) secs to x: (150) y: (112)\n    end\n    if <(backdrop [number v]) = [11]> then\n        hide\n    end\n    if <(backdrop [number v]) = [12]> then\n        point in direction (90)\n        glide (1) secs to x: (-25) y: (-125)\n        point in direction (-90)\n        glide (1) secs to x: (150) y: (-125)\n    end\n    if <(backdrop [number v]) = [13]> then\n        hide\n    end\nend\n\npoint in direction (90)\nglide (1) secs to x: (-25) y: (-121)\npoint in direction (-90)\nglide (1) secs to x: (150) y: (-121)\n\nwhen flag clicked\nforever\n    if <touching (throwing stick v)?> then\n        switch costume to (dead v)\n        wait (1) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n    end\nend\n\nwhen I receive [guard v]\nswitch costume to (guard v)\nset [ghost v] effect to (0)\nshow\n\nwhen [timer v] > (0.4)\nhide\n\nshow\n\nwhen flag clicked\nset [ghost v] effect to (0)\n\nrepeat until <not <(backdrop [number v]) = [8]>>\n\nshow\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [9]> then\n        show\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [10]> then\n        show\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [12]> then\n        show\n        stop [this script v]\n    end\nend\n\n@Spike\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [next level v]\nshow\nnext costume\nwait (0.01) seconds\n\nwhen I receive [start the platformer v]\nshow\n\n@Play\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nset [ghghgh v] to [0]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nclear graphic effects\nbroadcast (Mobile? v)\nswitch costume to (costume1 v)\nset [ghghgh v] to [1]\ngo to x: (0) y: (40)\n\nwhen I receive [start the platformer v]\nhide\n\nwhen I receive [start home screen v]\nset [ghghgh v] to [0]\nshow\nclear graphic effects\ngo to x: (0) y: (-70)\nswitch costume to (play1 v)\nrepeat until <(ghghgh) = [1]>\n    if <touching (mouse-pointer v)?> then\n        switch costume to (play2 v)\n        if <mouse down?> then\n            broadcast (Play v)\n        end\n    else\n        switch costume to (play1 v)\n    end\nend\n\n@Background stuff\n\nwhen I start as a clone\nshow\ngo to [back v] layer\npoint in direction (pick random (-70) to (-100))\ngo to x: (300) y: (pick random (-180) to (180))\nset size to (pick random (5) to (10)) %\nset [ghost v] effect to (pick random (50) to (70))\ngo to [back v] layer\nrepeat until <(x position) < [-220]>\n    move (10) steps\nend\ndelete this clone\n\nwhen I receive [jk v]\nswitch costume to (costume2 v)\n\nwhen I receive [end for real v]\nswitch costume to (costume3 v)\n\nwhen I receive [start the platformer v]\nshow\nswitch costume to (costume2 v)\nforever\n    hide\nend\n\ncreate clone of (_myself_ v)\n\n@Bouncy text home screen thing\n\nwhen I receive [start v]\n\nwhen flag clicked\nset [timer v] to [0]\nforever\n    change [timer v] by (0.01)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [mobile? v]\nhide\n\nwhen I receive [start home screen v]\nshow\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (3)) * (400)) ) * (10)))\nend\n\n@particle2\n\nwhen I receive [start home screen v]\nhide\nrepeat until <(ghghgh) = [1]>\n    create clone of (_myself_ v)\nend\n\nrepeat (150)\nend\n\nwhen I start as a clone\nshow\ngo to x: (220) y: (-180)\nset [x v] to (pick random (-5) to (1))\nset [y v] to (pick random (2) to (5))\nset size to (pick random (75) to (125)) %\nset [ghost v] effect to (pick random (25) to (60))\nrepeat (25)\n    change [ghost v] effect by (1)\n    change x by (x)\n    change y by (y)\nend\nrepeat until <touching (_edge_ v)?>\n    change [ghost v] effect by (1)\n    change x by (x)\n    change y by (y)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\n@particle\n\nwhen flag clicked\n\nwhen I receive [start home screen v]\nhide\nrepeat until <(ghghgh) = [1]>\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to x: (-220) y: (-180)\nset [x v] to (pick random (-1) to (5))\nset [y v] to (pick random (2) to (5))\nset size to (pick random (75) to (125)) %\nset [ghost v] effect to (pick random (25) to (60))\nrepeat (25)\n    change [ghost v] effect by (1)\n    change x by (x)\n    change y by (y)\nend\nrepeat until <touching (_edge_ v)?>\n    change [ghost v] effect by (1)\n    change x by (x)\n    change y by (y)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nrepeat (150)\n    create clone of (_myself_ v)\nend\n\n@Mobile Yes Button\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [mobile? v]\nshow\n\nwhen I receive [start the platformer v]\nhide\n\nwhen this sprite clicked\nset [mobile/pc v] to [Mobile]\nbroadcast (show boootons v)\nbroadcast (Start the Platformer v)\nbroadcast (Transition v)\n\n@Mobile No Button\n\nwhen flag clicked\nset [mobile/pc v] to []\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [mobile? v]\nshow\n\nwhen I receive [start the platformer v]\nhide\n\nwhen this sprite clicked\nset [mobile/pc v] to [PC]\nbroadcast (hide boootons v)\nbroadcast (Start the Platformer v)\nbroadcast (Transition v)\n\n@Transition\n\nwhen I receive [transition v]\nif <(backdrop [number v]) = [2]> then\n    switch costume to (dark gray v)\n    create clone of (_myself_ v)\n    switch costume to (gray v)\n    create clone of (_myself_ v)\n    start sound [Slender Spotted v]\n    hide\nelse\n    if <(backdrop [number v]) = [3]> then\n        switch costume to (dark gray v)\n        create clone of (_myself_ v)\n        switch costume to (gray v)\n        create clone of (_myself_ v)\n        start sound [Slender Spotted v]\n        hide\n    else\n        if <(backdrop [number v]) = [4]> then\n            switch costume to (dark gray v)\n            create clone of (_myself_ v)\n            switch costume to (gray v)\n            create clone of (_myself_ v)\n            start sound [Slender Spotted v]\n            hide\n        else\n            if <(backdrop [number v]) = [5]> then\n                switch costume to (dark gray v)\n                create clone of (_myself_ v)\n                switch costume to (gray v)\n                create clone of (_myself_ v)\n                start sound [Slender Spotted v]\n                hide\n            else\n                if <(backdrop [number v]) = [6]> then\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nset [transition v] to [1]\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    set [transition v] to [0]\n    broadcast (text v)\n    delete this clone\nend\n\nwhen flag clicked\nset [trans. v] to [0]\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Saw Blade\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    set rotation style [all around v]\n    turn right (15) degrees\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (0)\nswitch costume to (guard v)\nhide\nset rotation style [left-right v]\ngo to x: (-25) y: (-119)\nforever\n    if <(backdrop [number v]) = [1]> then\n        hide\n    end\n    if <(backdrop [number v]) = [2]> then\n        hide\n    end\n    if <(backdrop [number v]) = [3]> then\n        hide\n    end\n    if <(backdrop [number v]) = [4]> then\n        hide\n    end\n    if <(backdrop [number v]) = [5]> then\n        hide\n    end\n    if <(backdrop [number v]) = [6]> then\n        hide\n    end\n    if <(backdrop [number v]) = [7]> then\n        hide\n    end\n    if <(backdrop [number v]) = [8]> then\n        hide\n    end\n    if <(backdrop [number v]) = [9]> then\n        hide\n    end\n    if <(backdrop [number v]) = [10]> then\n        hide\n    end\n    if <(backdrop [number v]) = [11]> then\n        go to x: (-25) y: (-150)\n    end\n    if <(backdrop [number v]) = [12]> then\n        hide\n    end\n    if <(backdrop [number v]) = [13]> then\n        hide\n    end\nend\n\nhide\n\ngo to x: (-29) y: (-158)\n\nset size to (75) %\n\nset size to (90) %\nshow\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [go to back layer v]\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen flag clicked\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen I receive [saw bald show v]\nshow\nforever\n    go to [back v] layer\nend\n\n@Skip\n\nwhen this sprite clicked\nif <not <(backdrop [number v]) = [6]>> then\n    broadcast (Transition v)\n    broadcast (Next Level v)\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [show boootons v]\nshow\n\nwhen flag clicked\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [go to back layer v]\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [success!!! v]\nforever\n    hide\nend\n\nwhen I receive [music volume off v]\nif <(mobile/pc) = [Mobile]> then\n    hide\nend\n\nwhen I receive [music volume on v]\nif <(mobile/pc) = [Mobile]> then\n    show\nend\n\nif <(mobile/pc) = [Mobile]> then\n\n@Bouncy\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [start the platformer v]\nswitch costume to (costume1 v)\nshow\nforever\n    go to [front v] layer\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nforever\n    forever\n        go to x: (0) y: (0)\n        point in direction (90)\n    end\nend\n\nwhen flag clicked\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [go to back layer v]\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen [timer v] > (0.4)\nhide\n\n@Intro particles\n\nwhen flag clicked\nhide\nwait (2.3) seconds\nrepeat until <(end intro?) = [1]>\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(pick random (1) to (3)) = [1]> then\n    switch costume to (red v)\nelse\n    if <(pick random (1) to (3)) = [2]> then\n        switch costume to (yellow v)\n    else\n        if <(pick random (1) to (3)) = [3]> then\n            switch costume to (blue v)\n        end\n    end\nend\nset [ghost v] effect to (30)\ngo to x: (0) y: (0)\nset rotation style [all around v]\nshow\npoint in direction (pick random (0) to (360))\nrepeat (16)\n    move (10) steps\nend\ndelete this clone\n\nwhen flag clicked\nset [end intro? v] to [0]\nwait (7.5) seconds\nset [end intro? v] to [1]\nstop all sounds\nwait (1) seconds\nbroadcast (Start home screen v)\n\nwhen [timer v] > (0.4)\nhide\n\n@intro logo\n\nwhen flag clicked\nhide\nwait (2.3) seconds\nrepeat until <(end intro?) = [1]>\n    create clone of (_myself_ v)\n    wait (.3) seconds\nend\n\nwhen I start as a clone\nswitch costume to (blank v)\nset [speed3 v] to [10]\nset [ghost v] effect to (15)\nset size to (100) %\ngo to x: (0) y: (0)\ngo to [back v] layer\ngo [forward v] (1) layers\nshow\nrepeat (10)\n    change size by (Speed3)\n    change [speed3 v] by (-1)\nend\ndelete this clone\n\nwhen flag clicked\nset rotation style [all around v]\nforever\n    turn right (15) degrees\nend\n\nwhen [timer v] > (0.4)\nhide\n\n@intro CS\n\nwhen flag clicked\nhide\nwait (2.3) seconds\nshow\ngo to [front v] layer\npoint in direction (90)\nswitch costume to (untitled drawing \(28\) v)\nset size to (100) %\nrepeat until <(end intro?) = [1]>\n    set [speed v] to [-10]\n    repeat (20)\n        change size by (Speed)\n        change [speed v] by (1)\n    end\n    set size to (100) %\nend\nhide\n\nwhen flag clicked\nstart sound [TheFatRat - Infinite Power!2 v]\n\nwhen [timer v] > (0.4)\nhide\n\n@Easter Egg\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\nforever\n    if <touching (player? v)?> then\n        hide\n        broadcast (last jumpscare v)\n        stop [this script v]\n    end\nend\n\n@Jumpscare\n\nwhen flag clicked\nhide\n\nwhen I receive [start the platformer v]\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [last jumpscare v]\ngo to x: (0) y: (0)\nstart sound [rip ur ears v]\nshow\ngo to [front v] layer\nwait (3.15) seconds\nhide\nchange [☁ worldwide jumpscares v] by (1)\nwait (0.01) seconds\nbroadcast (Success!!! v)\nset [success!? v] to [1]\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [reg jumpscare v]\ngo to x: (0) y: (0)\nstart sound [rip ur ears v]\nshow\ngo to [front v] layer\nwait (3.15) seconds\nhide\nchange [☁ worldwide jumpscares v] by (1)\nwait (0.01) seconds\n\n@info\n\nwhen flag clicked\nhide variable [☁ worldwide jumpscares v]\nhide variable [☁ worldwide deaths v]\nhide variable [time taken v]\nhide variable [deaths v]\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [success!!! v]\nshow variable [☁ worldwide deaths v]\nshow variable [☁ worldwide jumpscares v]\nshow variable [deaths v]\nshow variable [time taken v]\nshow\ngo to [front v] layer\nwait (1) seconds\n\nwhen [timer v] > (0.4)\nhide\nhide variable [☁ worldwide deaths v]\nhide variable [☁ worldwide jumpscares v]\nhide variable [time taken v]\nhide variable [deaths v]\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen I receive [success!!! v]\nshow\ngo to [front v] layer\nstop all sounds\nforever\n    play sound [MUSIC v] until done\nend\n\nwhen [timer v] > (0.4)\nhide\n\nstop all sounds\n\n@Throw\n\nwhen this sprite clicked\nbroadcast (shoot? v)\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [go to back layer v]\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [success!!! v]\nforever\n    hide\nend\n\nwhen I receive [music volume off v]\nif <(mobile/pc) = [Mobile]> then\n    hide\nend\n\nwhen I receive [music volume on v]\nif <(mobile/pc) = [Mobile]> then\n    show\nend\n\nwhen I receive [stick is now available v]\nforever\n    show\nend\n\n@Stick Button\n\nwhen this sprite clicked\nif <(torch?) = [1]> then\n    if <(gun?) = [1]> then\n        set [gun? v] to [0]\n        broadcast (show gun v)\n    else\n        set [gun? v] to [1]\n        broadcast (hide gun v)\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [go to back layer v]\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [success!!! v]\nforever\n    hide\nend\n\nwhen I receive [music volume off v]\nif <(mobile/pc) = [Mobile]> then\n    hide\nend\n\nwhen I receive [music volume on v]\nif <(mobile/pc) = [Mobile]> then\n    show\nend\n\nwhen I receive [stick is now available v]\nforever\n    show\nend\n\n@stick\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [show gun v]\nshow\n\nwhen I receive [hide gun v]\nhide\n\nwhen I receive [shoot? v]\nif <(gun?) = [0]> then\n    show\n    create clone of (throwing stick v)\n    wait (0.5) seconds\nend\n\nwhen I receive [start the platformer v]\nhide\nforever\n    if <(left/right?) = [90]> then\n        switch costume to (right v)\n    else\n        switch costume to (left v)\n    end\nend\n\nwhen I receive [start the platformer v]\nswitch costume to (right v)\nhide\nforever\n    go to (player? v)\n    set size to (75) %\nend\n\nwhen I receive [start the platformer v]\nhide\nforever\n    if <<<key (space v) pressed?> and <(gun?) = [0]>> and <(stick is now available?) = [Yes]>> then\n        create clone of (throwing stick v)\n        wait (0.5) seconds\n    end\nend\n\nwhen flag clicked\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [go to back layer v]\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [start the platformer v]\nhide\nforever\n    if <<key (space v) pressed?> and <(gun?) = [0]>> then\n        hide\n    end\nend\n\nwhen I receive [show stick again v]\nshow\n\nwhen I receive [stick is now available v]\nforever\n    if <key (k v) pressed?> then\n        wait (0.1) seconds\n        if <(torch?) = [1]> then\n            if <(gun?) = [1]> then\n                show\n                set [gun? v] to [0]\n            else\n                hide\n                set [gun? v] to [1]\n            end\n        end\n    end\nend\n\nset [gun? v] to [0]\n\nwhen I receive [start the platformer v]\nwait (1) seconds\nif <(torch?) = [1]> then\n    if <(gun?) = [1]> then\n        show\n        set [gun? v] to [0]\n    else\n        hide\n        set [gun? v] to [1]\n    end\nend\nbroadcast (check show/hide v)\n\nwhen I receive [check show/hide v]\nif <(torch?) = [1]> then\n    if <(gun?) = [1]> then\n        show\n        set [gun? v] to [0]\n    else\n        hide\n        set [gun? v] to [1]\n    end\nend\n\nwhen I receive [start the platformer v]\nwait (1) seconds\nrepeat (10)\n    hide\nend\n\nwhen I receive [stick is now available v]\nset [stick is now available? v] to [Yes]\n\nwhen flag clicked\nset [stick is now available? v] to []\n\nwhen I receive [start the platformer v]\nset [stick is now available? v] to []\n\n@throwing stick\n\nwhen flag clicked\nhide\nset size to (70) %\nforever\n    go to [back v] layer\n    go to (stick v)\n    change y by (4)\n    change x by (5)\nend\n\nwhen I start as a clone\nshow\nrepeat until <<<touching (_edge_ v)?> or <touching (ground v)?>> or <<touching (guard v)?> or <<touching (guard2 v)?> or <touching (guard3 v)?>>>>\n    if <(left/right?) = [90]> then\n        turn right (5) degrees\n        switch costume to (right v)\n        change x by (50)\n    else\n        turn left (5) degrees\n        switch costume to (right v)\n        change x by (-50)\n    end\nend\nbroadcast (show stick again v)\ndelete this clone\n\nwhen I receive [start game v]\nshow\n\nwhen flag clicked\nforever\n    if <not <key (space v) pressed?>> then\n        hide\n    end\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I start as a clone\nforever\n    if <(left/right?) = [90]> then\n        turn right (5) degrees\n    else\n        turn left (5) degrees\n    end\nend\n\n@Text\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [start the platformer v]\nswitch costume to (costume4 v)\ngo to x: (0) y: (-165)\nset [ghost v] effect to (0)\n\nwhen I receive [text v]\ngo to x: (0) y: (-165)\nnext costume\nset [ghost v] effect to (0)\nshow\nwait (3) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nwhen I receive [show text v]\ngo to x: (0) y: (-165)\nset [ghost v] effect to (0)\nshow\nwait (3) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nwhen I receive [start the platformer v]\nshow\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [success!!! v]\nforever\n    hide\n    stop [other scripts in sprite v]\nend\n\nwhen [timer v] > (0.4)\nhide\n\nwhen I receive [show text i suppose v]\ngo to x: (0) y: (-165)\nset [ghost v] effect to (0)\nshow\nwait (3) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\nwhen I receive [start the platformer v]\nforever\n    if <key (j v) pressed?> then\n        broadcast (Show Text v)\n    end\nend\n\n@Hehe\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [door walk effect v]\nbroadcast (music volume off v)\nset [ghost v] effect to (0)\nshow\nwait (4.5) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nbroadcast (Music volume on v)\nbroadcast (text v)\n\n@Stars\n\nwhen I start as a clone\ngo [backward v] (100) layers\nset size to (50) %\nset [brightness v] effect to (0)\nset [ghost v] effect to (100)\ngo to (random position v)\nshow\nrepeat (10)\n    change [ghost v] effect by (-7)\n    change [brightness v] effect by (10)\n    change size by (1)\nend\nrepeat (10)\n    change [ghost v] effect by (7)\n    change [brightness v] effect by (-10)\n    change size by (-1)\nend\ndelete this clone\n\nwhen I receive [stars v]\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0.001) to (0.002)) seconds\nend\n\n@Guard2\n\nwhen flag clicked\nhide\nset [ghost v] effect to (0)\nswitch costume to (guard v)\nhide\nset rotation style [left-right v]\ngo to x: (-25) y: (-119)\nforever\n    if <(backdrop [number v]) = [1]> then\n        hide\n    end\n    if <(backdrop [number v]) = [2]> then\n        hide\n    end\n    if <(backdrop [number v]) = [3]> then\n        hide\n    end\n    if <(backdrop [number v]) = [4]> then\n        hide\n    end\n    if <(backdrop [number v]) = [5]> then\n        hide\n    end\n    if <(backdrop [number v]) = [6]> then\n        hide\n    end\n    if <(backdrop [number v]) = [7]> then\n        hide\n    end\n    if <(backdrop [number v]) = [8]> then\n        hide\n    end\n    if <(backdrop [number v]) = [9]> then\n        hide\n    end\n    if <(backdrop [number v]) = [10]> then\n        hide\n    end\n    if <(backdrop [number v]) = [11]> then\n        hide\n    end\n    if <(backdrop [number v]) = [12]> then\n        point in direction (-90)\n        glide (1) secs to x: (200) y: (-125)\n        point in direction (90)\n        glide (1) secs to x: (0) y: (-125)\n    end\n    if <(backdrop [number v]) = [13]> then\n        hide\n    end\nend\n\npoint in direction (90)\nglide (1) secs to x: (-75) y: (-18)\npoint in direction (-90)\nglide (1) secs to x: (118) y: (-18)\n\nhide\n\nwhen flag clicked\nforever\n    if <touching (throwing stick v)?> then\n        switch costume to (dead v)\n        wait (1) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n    end\nend\n\nwhen I receive [guard v]\nswitch costume to (guard v)\nset [ghost v] effect to (0)\nshow\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [9]> then\n        show\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [12]> then\n        show\n        stop [this script v]\n    end\nend\n\n@Guard3\n\nwhen flag clicked\nhide\nset [ghost v] effect to (0)\nswitch costume to (guard v)\nhide\nset rotation style [left-right v]\ngo to x: (-25) y: (-119)\nforever\n    if <(backdrop [number v]) = [1]> then\n        hide\n    end\n    if <(backdrop [number v]) = [2]> then\n        hide\n    end\n    if <(backdrop [number v]) = [3]> then\n        hide\n    end\n    if <(backdrop [number v]) = [4]> then\n        hide\n    end\n    if <(backdrop [number v]) = [5]> then\n        hide\n    end\n    if <(backdrop [number v]) = [6]> then\n        hide\n    end\n    if <(backdrop [number v]) = [7]> then\n        hide\n    end\n    if <(backdrop [number v]) = [8]> then\n        hide\n    end\n    if <(backdrop [number v]) = [9]> then\n        point in direction (90)\n        glide (1) secs to x: (-75) y: (105)\n        point in direction (-90)\n        glide (1) secs to x: (118) y: (105)\n    end\n    if <(backdrop [number v]) = [10]> then\n        hide\n    end\n    if <(backdrop [number v]) = [11]> then\n        hide\n    end\n    if <(backdrop [number v]) = [12]> then\n        hide\n    end\n    if <(backdrop [number v]) = [13]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (throwing stick v)?> then\n        switch costume to (dead v)\n        wait (1) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n    end\nend\n\nwhen I receive [guard v]\nswitch costume to (guard v)\nset [ghost v] effect to (0)\nshow\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [9]> then\n        show\n        stop [this script v]\n    end\nend\n\n@Music\n\nwhen I receive [start the platformer v]\nshow\ngo to [front v] layer\nstop all sounds\nforever\n    play sound [Dreams v] until done\nend\n\nwhen I receive [music volume off v]\nset volume to (0) %\n\nwhen I receive [music volume on v]\nset volume to (100) %\n\n@Show Text\n\nwhen this sprite clicked\nbroadcast (Show Text v)\n\nwhen [timer v] > (0.4)\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [show boootons v]\nshow\n\nwhen flag clicked\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [go to back layer v]\nset [transition v] to [0]\nrepeat until <(transition) = [1]>\n    go to [front v] layer\nend\nrepeat until <(transition) = [0]>\n    go to [back v] layer\nend\nbroadcast (go to back layer v)\n\nwhen I receive [success!!! v]\nforever\n    hide\nend\n\nwhen I receive [music volume off v]\nif <(mobile/pc) = [Mobile]> then\n    hide\nend\n\nwhen I receive [music volume on v]\nif <(mobile/pc) = [Mobile]> then\n    show\nend\n\n
Play part 1 first: https://scratch.mit.edu/projects/377178602/\n=================The Story==================\n You are a detective. Last time you were knocked out and were kidnapped. You now woke up in a complex teeming with guards! Can you escape to live another day?\n================== Controls=================\n\n✥ Arrow keys, WASD or mobile controls to move.\n✥ Press the L key or the Torch button to use the torch.\n✥ Press the J key or the Show Text button to show the text again.\n✥ Press the N key or the Skip button to skip a level.\n✥ (Use this once you have unlocked it) Press the K key or the Stick button to show the stick. \n✥ You can not hold the stick whilst ho,ding the torch and vice versa.\n✥ Press space or the Throw key to throw the stick once you have unlocked it.\n✥ Use the stick to knock out the guards.