City Platformer 

Instructions: newゲーム！「キューブ大戦争！」絶対みてよな！\nhttps://scratch.mit.edu/projects/692275872/\nhttps://scratch.mit.edu/projects/692275872/\n\n\n宝くじ結果発表！\nhttps://scratch.mit.edu/projects/704914521/\nnew platformer\nhttps://scratch.mit.edu/projects/711365829\n\n絶対見て！そして☆と♡だよね((圧⬇︎\nhttps://scratch.mit.edu/projects/698868054\nこのプロジェクト上がれえええええええ\n⬆︎傾向載らせてくれよーん！\n♦︎マッシュルーム族です！\nhttps://scratch.mit.edu/studios/31726353/\n\n\n傾向動いた！でも2pに落ちた2週間の傾向6位ありがとう\nフォロワー1kまで頑張るぞお！\nhttps://scratch.mit.edu/projects/698868054\n⬆︎総集編でた！ぜひ見てほしい！\nーーーーーーーーーーーーーーーーーーーーーーーーー\nhttps://scratch.mit.edu/projects/706348716\n⬆︎是非聴いてください！\n…………………………………………………………………\n僕のことを覚えてほしいです！\n有名になりたいから（何言ってんだこいつ\nあっマッシュルームだくらいの感じでいいですからぁ！\n⬆︎よろしくぅ！\nーーーーーーーーーーーーーーーーーーーーーーーーー\nremixバシバシお願いします！変更点あればremixOKです！よろしくぅ！\nーーーーーーーーーーーーーーーーーーーーーーーーー\n総集編出た！\nhttps://scratch.mit.edu/projects/698868054\n⬆︎傾向いっけえええええええええ！拡散よろしく！\nーーーーーーーーーーーーーーーーーーーーーーーーー\nサムネのネコはどんな意味があると思う？\nーーーーーーーーーーーーーーーーーーーーーーーーー\nリミックスはどんどんどうぞ！\nEnglish Is below⬇️\nーーーーーーーーーーーーーーーーーーーーーーーーー\n地面は初代マリオなのにプレイヤーはマリオUSAのやつだよとかいうこというなよぉw\nマリオなのに壁ジャンできるとかいうなよぉw\nーーーーーーーーーーーーーーーーーーーーーーーーー\nPCでやっている方\n矢印キーで移動です！\n(←・→…移動\n(↑…ジャンプ\n(↓…しゃがむ\nSキーでリスポーン、初期化します！\n\nスマホ、タブレット(モバイルの方)\nプレイヤーの右の方をタップすると右に移動\nプレイヤーの左の方をタップすると左に移動\nプレイヤーの上の方をタップするとジャンプ\nプレイヤーの下の方をタップするとしゃがむ\nプレイヤータップでリスポーンできるようにしました！\n\n地面に埋まるのは私では埋まらないんですが、埋まってしまう場合があります。\nその場合はリスポーンしてください。\nーーーーーーーーーーーーーーーーーーーーーーーーー\nEnglish\nThose who are doing on a PC\n Use the arrow keys to move!\n (← ・ →… move\n (↑… Jump\n (↓… crouching\n Respawn and initialize with the S key!\n\n Smartphones and tablets (mobile users)\n Tap to the right of the player to move to the right\n Tap to the left of the player to move to the left\n Tap the top of the player to jump\n Squat when tapping the bottom of the player\n You can now respawn with a player tap!\n\n I don't get buried in the ground, but sometimes it gets buried.\n In that case, please respawn.\n\n宣伝やめてください。\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (questions v)\ndelete all of [💿 playlist 💿 v]\nset [💿 playlist 💿 v] to [0]\nset [🎵 song playing 🎵 v] to [0]\nset [📱 device 📱 v] to [0]\n\ndefine 💿 Playlist Ready! 💿\ndelete (all) of [💿 playlist 💿 v]\nif <(💿 Playlist 💿) = [Direct]> then\n    insert [Direct - Wanna Know You \(feat. Holly Drummond\)] at (1) of [💿 playlist 💿 v] \n    insert [Direct & Labisch - Make A Move \(feat. Openwater\)] at (2) of [💿 playlist 💿 v] \n    insert [Mr FijiWiji & Direct - Tomorrow \(feat. Matt Van & Holly Drummond\)] at (3) of [💿 playlist 💿 v] \nend\nif <(💿 Playlist 💿) = [TheFatRat]> then\n    insert [TheFatRat - Fly Away \(feat. Anjulie\)] at (1) of [💿 playlist 💿 v] \n    insert [TheFatRat - MAYDAY \(feat. Laura Brehm\)] at (2) of [💿 playlist 💿 v] \n    insert [TheFatRat - The Calling \(feat. Laura Brehm\)] at (3) of [💿 playlist 💿 v] \nend\n\nwhen I receive [next level v]\nif <(backdrop [number v]) = [13]> then\n    set [🎨 player color 🎨 v] to [Color]\nend\nnext backdrop\nif <(backdrop [number v]) = [1]> then\n    set [🎨 player color 🎨 v] to [BlackWhite]\nend\n\ndefine ♫ Play Song ♫\nrepeat until <(length of [💿 playlist 💿 v]) = [0]>\n    delete (item # of (🎵 Song playing 🎵) in [💿 playlist 💿 v]) of [💿 playlist 💿 v]\n    broadcast (next song v)\n    play sound (🎵 Song playing 🎵) until done\n    set [🎵 song playing 🎵 v] to (item (random) of [💿 playlist 💿 v])\nend\n\nwhen I receive [start game v]\nwait until <not <(💿 Playlist 💿) = [0]>>\nswitch backdrop to (menu v)\nrepeat (10)\n    set [color v] effect to (0)\nend\nif <(⚡ Turbo Mode ⚡) = [No]> then\n    set [🎵 song playing 🎵 v] to (item (random) of [💿 playlist 💿 v])\n    💿 Playlist Ready! 💿\n    ♫ Play Song ♫\n    if <(length of [💿 playlist 💿 v]) = [0]> then\n        forever\n            💿 Playlist Ready! 💿\n            ♫ Play Song ♫\n        end\n    end\nelse\n    wait until <(⚡ Confirmation ⚡) = [Yes]>\n    set [🎵 song playing 🎵 v] to (item (random) of [💿 playlist 💿 v])\n    💿 Playlist Ready! 💿\n    ♫ Play Song ♫\n    if <(length of [💿 playlist 💿 v]) = [0]> then\n        forever\n            💿 Playlist Ready! 💿\n            ♫ Play Song ♫\n        end\n    end\nend\n\n@Player BlackWhite\n\nwhen [left arrow v] key pressed\nif <(📱 Device 📱) = [Computer]> then\n    if <(backdrop [number v]) > [2]> then\n        if <not <key (right arrow v) pressed?>> then\n            repeat until <not <key (left arrow v) pressed?>>\n                wait (0.05) seconds\n                next costume\n                if <(costume [number v]) = [7]> then\n                    wait (0.05) seconds\n                    repeat (6)\n                        switch costume to ((costume [number v]) - (1))\n                    end\n                end\n            end\n            if <not <key (left arrow v) pressed?>> then\n                if <(costume [number v]) < [8]> then\n                    repeat until <(costume [number v]) = [1]>\n                        switch costume to ((costume [number v]) - (1))\n                    end\n                end\n                switch costume to (blackwhite v)\n            end\n        else\n            stop [this script v]\n        end\n    end\nelse\n    stop [this script v]\nend\n\nwhen [right arrow v] key pressed\nif <(📱 Device 📱) = [Computer]> then\n    if <(backdrop [number v]) > [2]> then\n        if <not <key (left arrow v) pressed?>> then\n            repeat until <not <key (right arrow v) pressed?>>\n                wait (0.05) seconds\n                next costume\n                if <(costume [number v]) = [7]> then\n                    wait (0.05) seconds\n                    repeat (6)\n                        switch costume to ((costume [number v]) - (1))\n                    end\n                end\n            end\n            if <not <key (right arrow v) pressed?>> then\n                if <(costume [number v]) < [8]> then\n                    repeat until <(costume [number v]) = [1]>\n                        switch costume to ((costume [number v]) - (1))\n                    end\n                end\n                switch costume to (blackwhite v)\n            end\n        else\n            stop [this script v]\n        end\n    end\nelse\n    stop [this script v]\nend\n\nwhen I receive [reset level v]\nif <(backdrop [number v]) < [13]> then\n    repeat (5)\n        change [⬛ opacity ⬛ v] by (20)\n    end\n    set [⬛ opacity ⬛ v] to [0]\nend\n\nwhen flag clicked\nhide\nswitch costume to (blackwhite v)\nset [🎨 player color 🎨 v] to [BlackWhite]\n\nwhen I receive [start game v]\nwait until <not <(💿 Playlist 💿) = [0]>>\nshow\ngo to x: (-90) y: (120)\ngo to [front v] layer\nswitch costume to (blackwhite v)\nset [#speed y v] to [0]\nset [#falling? v] to [10]\nforever\n    go to (hitbox v)\n    if <(🎨 Player Color 🎨) = [Color]> then\n        hide\n        stop [this script v]\n    end\n    if <(🎨 Player Color 🎨) = [BlackWhite]> then\n        set [ghost v] effect to (⬛ Opacity ⬛)\n        show\n    end\nend\n\n@Player Color\n\nwhen [left arrow v] key pressed\nif <(📱 Device 📱) = [Computer]> then\n    if <(backdrop [number v]) > [2]> then\n        if <not <key (right arrow v) pressed?>> then\n            repeat until <not <key (left arrow v) pressed?>>\n                wait (0.05) seconds\n                next costume\n                if <(costume [number v]) = [7]> then\n                    wait (0.05) seconds\n                    repeat (6)\n                        switch costume to ((costume [number v]) - (1))\n                    end\n                end\n            end\n            if <not <key (left arrow v) pressed?>> then\n                if <(costume [number v]) < [8]> then\n                    repeat until <(costume [number v]) = [1]>\n                        switch costume to ((costume [number v]) - (1))\n                    end\n                end\n                switch costume to (color v)\n            end\n        else\n            stop [this script v]\n        end\n    end\nend\n\nwhen [right arrow v] key pressed\nif <(📱 Device 📱) = [Computer]> then\n    if <(backdrop [number v]) > [2]> then\n        if <not <key (left arrow v) pressed?>> then\n            repeat until <not <key (right arrow v) pressed?>>\n                wait (0.05) seconds\n                next costume\n                if <(costume [number v]) = [7]> then\n                    wait (0.05) seconds\n                    repeat (6)\n                        switch costume to ((costume [number v]) - (1))\n                    end\n                end\n            end\n            if <not <key (right arrow v) pressed?>> then\n                if <(costume [number v]) < [8]> then\n                    repeat until <(costume [number v]) = [1]>\n                        switch costume to ((costume [number v]) - (1))\n                    end\n                end\n                switch costume to (color v)\n            end\n        else\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [reset level v]\nif <(backdrop [number v]) > [12]> then\n    repeat (5)\n        change [⬛ opacity ⬛ v] by (20)\n    end\n    set [⬛ opacity ⬛ v] to [0]\nend\n\nwhen flag clicked\nhide\nswitch costume to (color v)\nwait until <(backdrop [number v]) > [13]>\nforever\n    set [ghost v] effect to (⬛ Opacity ⬛)\nend\n\nwhen I receive [start game v]\nwait until <not <(💿 Playlist 💿) = [0]>>\ngo to x: (-90) y: (120)\nwait until <(🎨 Player Color 🎨) = [Color]>\nshow\nswitch costume to (color v)\ngo to [front v] layer\nset [#speed y v] to [0]\nset [#falling? v] to [10]\nforever\n    go to (hitbox v)\n    if <(🎨 Player Color 🎨) = [BlackWhite]> then\n        hide\n    end\n    if <(🎨 Player Color 🎨) = [Color]> then\n        show\n    end\nend\n\n@Hitbox\n\nwhen flag clicked\nhide\n\ndefine Touch Ground <up?>\nchange [#falling? v] by (1)\nrepeat until <not <<<touching (ground v)?> or <touching (locks v)?>> or <<touching (platform1 v)?> or <touching (platform2 v)?>>>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [#falling? v] to [0]\n    end\n    set [#speed y v] to [0]\nend\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nset [#slope v] to [0]\nrepeat until <<(#slope) = [8]> or <not <<<touching (ground v)?> or <touching (locks v)?>> or <<touching (platform1 v)?> or <touching (platform2 v)?>>>>>\n    change y by (1)\n    change [#slope v] by (1)\nend\nif <(#slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (#slope))\nend\n\nwhen I receive [start game v]\nwait until <not <(💿 Playlist 💿) = [0]>>\nshow\nforever\n    if <touching (water v)?> then\n        if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < ((x position) - (20))>>> then\n            change [#speed x v] by (0.5)\n        end\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > ((x position) + (20))>>> then\n            change [#speed x v] by (-0.5)\n        end\n        if <<key (down arrow v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) < [10]>>> then\n            change [#speed y v] by (-1.5)\n        end\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [20]>>> then\n            change [#speed y v] by (0.5)\n        end\n        set [#speed y v] to ((#speed y) * (0.8))\n        change [#speed y v] by (((#speed y) / (15)) + (0.5))\n    end\nend\n\nwhen I receive [start game v]\nwait until <not <(💿 Playlist 💿) = [0]>>\nshow\ngo to x: (-90) y: (-63)\nset [ghost v] effect to (100)\nswitch costume to (hitbox v)\nset [#speed y v] to [0]\nset [#falling? v] to [10]\n\nwhen I receive [spring bounce 1 v]\nset [#speed y v] to [20]\n\nwhen I receive [spring bounce 2 v]\nset [#speed y v] to [20]\n\nwhen I receive [spring bounce 3 v]\nset [#speed y v] to [20]\n\nwhen backdrop switches to [level 1 v]\nforever\n    if <touching (water v)?> then\n        change [#speed y v] by (-0.000001)\n    else\n        change [#speed y v] by (-1)\n    end\n    change y by (#speed y)\n    Touch Ground <(#speed y) > [0]>\n    set rotation style [left-right v]\n    set [#speed x v] to ((#speed x) * (0.7))\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < ((x position) - (20))>>> then\n        change [#speed x v] by (-2)\n    end\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > ((x position) + (20))>>> then\n        change [#speed x v] by (2)\n    end\n    if <(#speed x) < [-0.5]> then\n        Walk (-90) (#speed x)\n    else\n        if <(#speed x) > [0.5]> then\n            Walk (90) (#speed x)\n        end\n    end\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [20]>>> then\n        if <(#falling?) < [3]> then\n            set [#speed y v] to [12]\n        end\n    end\n    if <(y position) < [-179]> then\n        go to x: (0) y: (120)\n        set [#speed y v] to [3]\n    end\n    if <<(x position) > [220]> and <not <<<(backdrop [name v]) = [Menu]> or <<(backdrop [name v]) = [Bonus Level]> or <(backdrop [name v]) = [Level 20]>>> or <<<(backdrop [name v]) = [Level 4]> or <(backdrop [name v]) = [Level 7]>> or <<(backdrop [name v]) = [Level 11]> or <<(backdrop [name v]) = [Level 16]> or <(backdrop [name v]) = [Ancient Level 10]>>>>>>> then\n        if <(backdrop [name v]) = [Bonus Level 3]> then\n            broadcast (next level v)\n            go to x: (-217) y: (-130)\n            set [#speed y v] to [0]\n            set [#falling? v] to [10]\n        else\n            broadcast (next level v)\n            go to x: (-217) y: (-10)\n            set [#speed y v] to [0]\n            set [#falling? v] to [10]\n        end\n    end\n    if <touching (brush v)?> then\n        broadcast (next level v)\n        go to x: (-217) y: (-10)\n        set [#speed y v] to [0]\n        set [#falling? v] to [10]\n    end\n    if <<touching (spikes v)?> or <<<touching (lazer1 v)?> or <touching (lazer2 v)?>> or <touching (lazertimer1 v)?>>> then\n        broadcast (reset level v)\n        wait until <(⬛ Opacity ⬛) = [100]>\n        go to x: (-217) y: (-10)\n        set [#speed y v] to [0]\n        set [#falling? v] to [10]\n    end\n    if <<<(x position) > [0]> and <(y position) > [179]>> and <(backdrop [name v]) = [Level 18]>> then\n        if <(🔑 Key 🔑) = [Yes]> then\n            switch backdrop to (bonus level 1.5 v)\n            go to x: (0) y: (-40)\n            set [#speed y v] to [3]\n        else\n            switch backdrop to (bonus level v)\n            go to x: (0) y: (-40)\n            set [#speed y v] to [3]\n        end\n    end\n    if <<(y position) > [179]> and <(backdrop [name v]) = [Bonus Level 2]>> then\n        switch backdrop to (level 20 v)\n        go to x: (0) y: (-40)\n        set [#speed y v] to [3]\n    end\n    if <<(y position) < [-160]> and <<(backdrop [name v]) = [Bonus Level]> or <(backdrop [name v]) = [Bonus Level 1.5]>>> then\n        switch backdrop to (level 18 v)\n        go to x: (132) y: (145)\n        set [#speed y v] to [0]\n    end\n    if <<(y position) < [-160]> and <(backdrop [name v]) = [Level 20]>> then\n        switch backdrop to (bonus level 2 v)\n        go to x: (80) y: (-40)\n        set [#speed y v] to [0]\n    end\n    if <<(distance to [platform1 v]) < [50]> and <(y position) > ([y position v] of [platform1 v])>> then\n        if <<(backdrop [name v]) = [Ancient Level 1]> or <(backdrop [name v]) = [Ancient Level 2]>> then\n            ⬛ Moving Platform 1 ⬛ (⏪ Moving Platform 1 ⏩)\n        end\n    end\n    if <<(distance to [platform2 v]) < [50]> and <(y position) > ([y position v] of [platform2 v])>> then\n        if <(backdrop [name v]) = [Ancient Level 2]> then\n            ⬛ Moving Platform 2 ⬛ (⏪ Moving Platform 2 ⏩)\n        end\n    end\nend\n\ndefine ⬛ Moving Platform 1 ⬛ (number)\nchange x by (number)\n\ndefine ⬛ Moving Platform 2 ⬛ (number)\nchange x by (number)\n\n@Play/Space Button\n\nwhen flag clicked\ngo to x: (0) y: (40)\nhide\nset size to (60) %\nif <(📱 Device 📱) = [Computer]> then\n    switch costume to (space_nothover v)\nelse\n    switch costume to (play_nothover v)\nend\n\nwhen I receive [start game v]\nshow\nforever\n    if <(📱 Device 📱) = [Computer]> then\n        if <touching (mouse-pointer v)?> then\n            switch costume to (space_hover v)\n        else\n            switch costume to (space_nothover v)\n        end\n    else\n        if <touching (mouse-pointer v)?> then\n            switch costume to (play_hover v)\n        else\n            switch costume to (play_nothover v)\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(📱 Device 📱) = [Phone]> then\n    switch backdrop to (level 1 v)\n    hide\nend\n\nwhen [space v] key pressed\nif <<(📱 Device 📱) = [Computer]> and <(backdrop [name v]) = [Menu]>> then\n    switch backdrop to (level 1 v)\n    hide\nend\n\n@Brush\n\nwhen flag clicked\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [level 4 v]\ngo to x: (184) y: (-20)\nset [ghost v] effect to (0)\nshow\nswitch costume to (green v)\nforever\n    set y to ((([sin v] of ((timer) * (150)) ) * (10)) - (20))\nend\n\nwhen backdrop switches to [level 5 v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [level 8 v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [level 11 v]\ngo to x: (65) y: (110)\nset [ghost v] effect to (0)\nshow\nswitch costume to (blue v)\nforever\n    set y to ((([sin v] of ((timer) * (150)) ) * (10)) + (110))\nend\n\nwhen backdrop switches to [level 7 v]\ngo to x: (0) y: (25)\nset [ghost v] effect to (0)\nshow\nswitch costume to (red v)\nforever\n    set y to ((([sin v] of ((timer) * (150)) ) * (10)) + (25))\nend\n\nwhen backdrop switches to [level 12 v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [level 16 v]\ngo to x: (10) y: (0)\nset [ghost v] effect to (0)\nshow\nswitch costume to (orange v)\nforever\n    set y to (([sin v] of ((timer) * (150)) ) * (10))\nend\n\nwhen backdrop switches to [level 17 v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nstop [other scripts in sprite v]\nhide\n\n@Ground\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nswitch costume to (menu v)\nforever\n    switch costume to (backdrop [name v])\n    if <(backdrop [name v]) = [Level 20]> then\n        if <(🔑 Key 🔑) = [Yes]> then\n            switch costume to (level 20 with keys v)\n        end\n    end\nend\n\n@Spikes\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nswitch costume to (menu v)\nforever\n    switch costume to (backdrop [name v])\nend\n\n@Water\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nswitch costume to (menu v)\nset [ghost v] effect to (50)\nforever\n    switch costume to (backdrop [name v])\nend\n\nwhen backdrop switches to [level 12 v]\nwait (0.3) seconds\ngo to [front v] layer\n\n@Now Playing\n\nwhen I receive [next song v]\ngo to [front v] layer\nset [ghost v] effect to (100)\nswitch costume to (🎵 Song playing 🎵)\nshow\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nwait (1) seconds\nrepeat (100)\n    change [ghost v] effect by (1)\nend\nhide\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\nwait until <not <(💿 Playlist 💿) = [0]>>\nswitch costume to (🎵 Song playing 🎵)\n\n@Questions?\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (what device? v)\nshow\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [next intro question v]\nswitch costume to (which artist? v)\n\n@Button Left\n\nwhen this sprite clicked\nif <(📱 Device 📱) = [0]> then\n    set [📱 device 📱 v] to [Computer]\n    broadcast (next intro question v)\nelse\n    set [💿 playlist 💿 v] to [Direct]\n    hide\n    broadcast (start game v)\nend\n\nwhen I receive [start game v]\nhide\n\nwhen flag clicked\nshow\nswitch costume to (device_nothover v)\nforever\n    if <(📱 Device 📱) = [0]> then\n        if <touching (mouse-pointer v)?> then\n            switch costume to (device_hover v)\n        else\n            switch costume to (device_nothover v)\n        end\n    else\n        switch costume to (artist_nothover v)\n        if <touching (mouse-pointer v)?> then\n            switch costume to (artist_hover v)\n        else\n            switch costume to (artist_nothover v)\n        end\n    end\nend\n\n@Button Right\n\nwhen this sprite clicked\nif <(📱 Device 📱) = [0]> then\n    set [📱 device 📱 v] to [Phone]\n    broadcast (next intro question v)\nelse\n    set [💿 playlist 💿 v] to [TheFatRat]\n    hide\n    broadcast (start game v)\nend\n\nwhen I receive [start game v]\nhide\n\nwhen flag clicked\nshow\nswitch costume to (device_nothover v)\nforever\n    if <(📱 Device 📱) = [0]> then\n        if <touching (mouse-pointer v)?> then\n            switch costume to (device_hover v)\n        else\n            switch costume to (device_nothover v)\n        end\n    else\n        switch costume to (artist_nothover v)\n        if <touching (mouse-pointer v)?> then\n            switch costume to (artist_hover v)\n        else\n            switch costume to (artist_nothover v)\n        end\n    end\nend\n\n@Instructions\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nforever\n    if <<<(backdrop [name v]) = [Level 1]> or <(backdrop [name v]) = [Level 2]>> or <<(backdrop [name v]) = [Level 12]> or <<(backdrop [name v]) = [Level 17]> or <(backdrop [name v]) = [Level 18]>>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen backdrop switches to [level 1 v]\nif <(📱 Device 📱) = [Computer]> then\n    switch costume to (computer 1 v)\nend\nif <(📱 Device 📱) = [Phone]> then\n    switch costume to (phone 1 v)\nend\n\nwhen backdrop switches to [level 2 v]\nif <(📱 Device 📱) = [Computer]> then\n    switch costume to (computer 2 v)\nend\nif <(📱 Device 📱) = [Phone]> then\n    switch costume to (phone 2 v)\nend\n\nwhen backdrop switches to [level 12 v]\nif <(📱 Device 📱) = [Computer]> then\n    switch costume to (computer 3 v)\nend\nif <(📱 Device 📱) = [Phone]> then\n    switch costume to (phone 3 v)\nend\n\nwhen backdrop switches to [level 18 v]\nshow\nif <(📱 Device 📱) = [Computer]> then\n    switch costume to (computer 5 v)\nend\nif <(📱 Device 📱) = [Phone]> then\n    switch costume to (phone 5 v)\nend\n\nwhen backdrop switches to [level 17 v]\nshow\nswitch costume to (both 4 v)\n\n@Spring1\n\nwhen backdrop switches to [level 17 v]\ngo to x: (-155) y: (-67)\nshow\n\nwhen backdrop switches to [level 19 v]\ngo to x: (-155) y: (-66)\nshow\n\nwhen backdrop switches to [level 20 v]\nhide\n\nwhen backdrop switches to [bonus level v]\nhide\n\nwhen flag clicked\nset size to (70) %\nswitch costume to (spring1 v)\nhide\nforever\n    if <touching (hitbox v)?> then\n        broadcast (spring bounce 1 v)\n        wait until <(costume [number v]) = [1]>\n    end\n    if <<<(backdrop [name v]) = [Level 17]> or <<(backdrop [name v]) = [Level 18]> or <(backdrop [name v]) = [Level 19]>>> or <<<(backdrop [name v]) = [Ancient Level 4]> or <(backdrop [name v]) = [Ancient Level 5]>> or <<(backdrop [name v]) = [Ancient Level 6]> or <<(backdrop [name v]) = [Ancient Level 7]> or <(backdrop [name v]) = [Ancient Level 8]>>>>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [spring bounce 1 v]\nif <(📱 Device 📱) = [Computer]> then\n    repeat (5)\n        next costume\n    end\n    repeat (5)\n        switch costume to ((costume [number v]) - (1))\n    end\n    switch costume to (spring1 v)\nend\n\nwhen backdrop switches to [level 18 v]\ngo to x: (-130) y: (-67)\nshow\n\nwhen backdrop switches to [ancient level 4 v]\ngo to x: (-155) y: (-67)\nshow\n\nwhen backdrop switches to [ancient level 5 v]\ngo to x: (-116) y: (2)\nshow\n\nwhen backdrop switches to [ancient level 6 v]\ngo to x: (-155) y: (-67)\nshow\n\nwhen backdrop switches to [ancient level 7 v]\ngo to x: (-155) y: (-67)\nshow\n\nwhen backdrop switches to [ancient level 8 v]\ngo to x: (-155) y: (-67)\nshow\n\n@Spring2\n\nwhen backdrop switches to [level 19 v]\nhide\n\nwhen backdrop switches to [bonus level v]\nhide\n\nwhen flag clicked\nset size to (70) %\nswitch costume to (spring1 v)\nhide\nforever\n    if <touching (hitbox v)?> then\n        broadcast (spring bounce 2 v)\n        wait until <(costume [number v]) = [1]>\n    end\n    if <<(backdrop [name v]) = [Level 18]> or <(backdrop [name v]) = [Ancient Level 8]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [spring bounce 2 v]\nif <(📱 Device 📱) = [Computer]> then\n    repeat (5)\n        next costume\n    end\n    repeat (5)\n        switch costume to ((costume [number v]) - (1))\n    end\n    switch costume to (spring1 v)\nend\n\nwhen backdrop switches to [level 18 v]\ngo to x: (0) y: (-67)\nshow\n\nwhen backdrop switches to [ancient level 8 v]\ngo to x: (-80) y: (59)\nshow\n\n@Spring3\n\nwhen backdrop switches to [level 19 v]\nhide\n\nwhen backdrop switches to [bonus level v]\nhide\n\nwhen flag clicked\nset size to (70) %\nswitch costume to (spring1 v)\nhide\nforever\n    if <touching (hitbox v)?> then\n        broadcast (spring bounce 3 v)\n        wait until <(costume [number v]) = [1]>\n    end\n    if <(backdrop [name v]) = [Level 18]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [spring bounce 3 v]\nif <(📱 Device 📱) = [Computer]> then\n    repeat (5)\n        next costume\n    end\n    repeat (5)\n        switch costume to ((costume [number v]) - (1))\n    end\n    switch costume to (spring1 v)\nend\n\nwhen backdrop switches to [level 18 v]\ngo to x: (130) y: (-67)\nshow\n\n@House\n\nwhen flag clicked\nset [🔑 key 🔑 v] to [No]\nhide\n\nwhen backdrop switches to [level 20 v]\nshow\nif <(🔑 Key 🔑) = [Yes]> then\n    switch costume to (house_opened v)\nelse\n    switch costume to (house_notopened v)\nend\n\nwhen backdrop switches to [bonus level 2 v]\nhide\n\n@Key\n\nwhen flag clicked\ngo to x: (171) y: (-28)\nset [ghost v] effect to (0)\nhide\n\nwhen backdrop switches to [bonus level v]\nif <(🔑 Key 🔑) = [Yes]> then\n    hide\nelse\n    show\n    repeat until <(🔑 Key 🔑) = [Yes]>\n        set y to ((([cos v] of ((timer) * (120)) ) * (10)) - (28))\n        if <touching (hitbox v)?> then\n            set [🔑 key 🔑 v] to [Yes]\n            repeat (5)\n                change [ghost v] effect by (20)\n            end\n            hide\n        end\n    end\nend\n\nwhen backdrop switches to [level 18 v]\nhide\n\n@Platform1\n\nwhen backdrop switches to [ancient level 2 v]\nstop [other scripts in sprite v]\ngo to x: (-30) y: (-66)\nshow\nforever\n    set [⏪ moving platform 1 ⏩ v] to [2]\n    repeat (40)\n        change x by (⏪ Moving Platform 1 ⏩)\n    end\n    set [⏪ moving platform 1 ⏩ v] to [-2]\n    repeat (40)\n        change x by (⏪ Moving Platform 1 ⏩)\n    end\nend\n\nwhen backdrop switches to [ancient level 3 v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [ancient level 4 v]\nshow\ngo to x: (28) y: (2)\nshow\nforever\n    set [⏪ moving platform 1 ⏩ v] to [2]\n    repeat (25)\n        change x by (⏪ Moving Platform 1 ⏩)\n    end\n    set [⏪ moving platform 1 ⏩ v] to [-2]\n    repeat (25)\n        change x by (⏪ Moving Platform 1 ⏩)\n    end\nend\n\nwhen backdrop switches to [ancient level 5 v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [ancient level 9 v]\nshow\ngo to x: (-120) y: (120)\nshow\nforever\n    set [⏪ moving platform 1 ⏩ v] to [2]\n    repeat (25)\n        change x by (⏪ Moving Platform 1 ⏩)\n    end\n    set [⏪ moving platform 1 ⏩ v] to [-2]\n    repeat (25)\n        change x by (⏪ Moving Platform 1 ⏩)\n    end\nend\n\nwhen backdrop switches to [ancient level 10 v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [ancient level 1 v]\ngo to x: (-30) y: (-66)\nshow\nforever\n    set [⏪ moving platform 1 ⏩ v] to [2]\n    repeat (40)\n        change x by (⏪ Moving Platform 1 ⏩)\n    end\n    set [⏪ moving platform 1 ⏩ v] to [-2]\n    repeat (40)\n        change x by (⏪ Moving Platform 1 ⏩)\n    end\nend\n\nwhen flag clicked\nhide\nset size to (70) %\nswitch costume to (platform v)\n\n@Platform2\n\nwhen backdrop switches to [ancient level 3 v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\nset size to (70) %\nswitch costume to (platform v)\n\nwhen backdrop switches to [ancient level 2 v]\ngo to x: (50) y: (20)\nshow\nforever\n    set [⏪ moving platform 2 ⏩ v] to [2]\n    repeat (40)\n        change x by (⏪ Moving Platform 2 ⏩)\n    end\n    set [⏪ moving platform 2 ⏩ v] to [-2]\n    repeat (40)\n        change x by (⏪ Moving Platform 2 ⏩)\n    end\nend\n\n@Ancient Key\n\nwhen flag clicked\nset drag mode [not draggable v]\nhide\n\nwhen backdrop switches to [ancient level 3 v]\nstop [other scripts in sprite v]\nset [ghost v] effect to (0)\nshow\ngo to x: (35) y: (16)\nforever\n    set y to ((([cos v] of ((timer) * (150)) ) * (7)) + (16))\n    if <touching (hitbox v)?> then\n        broadcast (open lock v)\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        hide\n    end\nend\n\nwhen I receive [reset level v]\nif <(backdrop [name v]) = [Ancient Level 3]> then\n    repeat (10)\n        move (0) steps\n    end\n    show\n    repeat (5)\n        change [ghost v] effect by (-20)\n    end\n    set [ghost v] effect to (0)\nend\nif <(backdrop [name v]) = [Ancient Level 4]> then\n    repeat (10)\n        move (0) steps\n    end\n    show\n    repeat (5)\n        change [ghost v] effect by (-20)\n    end\n    set [ghost v] effect to (0)\nend\nif <(backdrop [name v]) = [Ancient Level 5]> then\n    repeat (10)\n        move (0) steps\n    end\n    show\n    repeat (5)\n        change [ghost v] effect by (-20)\n    end\n    set [ghost v] effect to (0)\nend\nif <(backdrop [name v]) = [Ancient Level 6]> then\n    repeat (10)\n        move (0) steps\n    end\n    show\n    repeat (5)\n        change [ghost v] effect by (-20)\n    end\n    set [ghost v] effect to (0)\nend\nif <(backdrop [name v]) = [Ancient Level 8]> then\n    repeat (10)\n        move (0) steps\n    end\n    show\n    repeat (5)\n        change [ghost v] effect by (-20)\n    end\n    set [ghost v] effect to (0)\nend\nif <(backdrop [name v]) = [Ancient Level 9]> then\n    repeat (10)\n        move (0) steps\n    end\n    show\n    repeat (5)\n        change [ghost v] effect by (-20)\n    end\n    set [ghost v] effect to (0)\nend\n\nwhen backdrop switches to [ancient level 4 v]\nstop [other scripts in sprite v]\nset [ghost v] effect to (0)\nshow\ngo to x: (33) y: (-35)\nforever\n    set y to ((([cos v] of ((timer) * (150)) ) * (3)) - (37))\n    if <touching (hitbox v)?> then\n        broadcast (open lock v)\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        hide\n    end\nend\n\nwhen backdrop switches to [ancient level 5 v]\nstop [other scripts in sprite v]\nset [ghost v] effect to (0)\nshow\ngo to x: (60) y: (150)\nforever\n    set y to ((([cos v] of ((timer) * (150)) ) * (3)) + (150))\n    if <touching (hitbox v)?> then\n        broadcast (open lock v)\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        hide\n    end\nend\n\nwhen backdrop switches to [ancient level 6 v]\nstop [other scripts in sprite v]\nset [ghost v] effect to (0)\nshow\ngo to x: (175) y: (110)\nforever\n    set y to ((([cos v] of ((timer) * (150)) ) * (3)) + (110))\n    if <touching (hitbox v)?> then\n        broadcast (open lock v)\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        hide\n    end\nend\n\nwhen backdrop switches to [ancient level 8 v]\nstop [other scripts in sprite v]\nset [ghost v] effect to (0)\nshow\ngo to x: (-80) y: (115)\nforever\n    set y to ((([cos v] of ((timer) * (150)) ) * (3)) + (115))\n    if <touching (hitbox v)?> then\n        broadcast (open lock v)\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        hide\n    end\nend\n\nwhen backdrop switches to [ancient level 9 v]\nstop [other scripts in sprite v]\nset [ghost v] effect to (0)\nshow\ngo to x: (-200) y: (140)\nforever\n    set y to ((([cos v] of ((timer) * (150)) ) * (3)) + (140))\n    if <touching (hitbox v)?> then\n        broadcast (open lock v)\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        hide\n    end\nend\n\n@Locks\n\nwhen flag clicked\nforever\n    switch costume to (backdrop [name v])\nend\n\nwhen I receive [open lock v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [reset level v]\nrepeat (10)\n    move (0) steps\nend\nshow\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\nset [ghost v] effect to (0)\n\nwhen I receive [next level v]\nset [ghost v] effect to (0)\nshow\n\n@Lazer1\n\nwhen backdrop switches to [ancient level 6 v]\nstop [other scripts in sprite v]\npoint in direction (90)\ngo to x: (130) y: (104)\nshow\nswitch costume to (lazer on v)\nforever\n    wait (3) seconds\n    next costume\nend\n\nwhen backdrop switches to [ancient level 8 v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [ancient level 7 v]\nstop [other scripts in sprite v]\npoint in direction (180)\ngo to x: (175) y: (104)\nshow\nswitch costume to (lazer on v)\nforever\n    wait (3) seconds\n    next costume\nend\n\nwhen flag clicked\nhide\n\n@Lazer2\n\nwhen backdrop switches to [ancient level 8 v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [ancient level 7 v]\npoint in direction (90)\ngo to x: (110) y: (-40)\nshow\nswitch costume to (lazer on v)\nforever\n    wait (3) seconds\n    next costume\nend\n\nwhen flag clicked\nhide\n\n@LazerTimer1\n\nwhen I receive [lazer timer set v]\nswitch costume to (lazer off v)\nwait (3) seconds\nswitch costume to (lazer on v)\n\nwhen backdrop switches to [ancient level 7 v]\ngo to x: (30) y: (-40)\nshow\nswitch costume to (lazer on v)\n\nwhen backdrop switches to [ancient level 6 v]\ngo to x: (110) y: (-40)\nshow\nswitch costume to (lazer on v)\n\nwhen backdrop switches to [ancient level 8 v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\n@Lazer Button\n\nwhen flag clicked\nhide\nswitch costume to (button off v)\nforever\n    if <touching (hitbox v)?> then\n        switch costume to (button on v)\n        broadcast (lazer timer set v)\n    else\n        switch costume to (button off v)\n    end\nend\n\nwhen backdrop switches to [ancient level 6 v]\nshow\ngo to x: (36) y: (28)\n\nwhen backdrop switches to [ancient level 7 v]\nshow\ngo to x: (36) y: (122)\n\nwhen backdrop switches to [ancient level 8 v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\ngo to [front v] layer\nreset timer\nset [⚡ turbo mode ⚡ v] to [0]\nswitch costume to (thumbnail v)\nrepeat (20)\n    move (0) steps\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [ghost v] effect to (100)\n\nwhen backdrop switches to [menu v]\ngo to [front v] layer\nreset timer\nset [⚡ turbo mode ⚡ v] to [0]\nrepeat (8)\n    move (0) steps\nend\nif <(timer) > [0.08]> then\n    set [⚡ turbo mode ⚡ v] to [No]\n    forever\n        go to [front v] layer\n    end\nelse\n    switch costume to (turbo mode v)\n    set [⚡ turbo mode ⚡ v] to [Yes]\n    set [ghost v] effect to (0)\n    broadcast (turbo mode question v)\nend\n\nwhen I receive [turbo mode accept v]\ngo to [front v] layer\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [ghost v] effect to (100)\nforever\n    switch costume to (thumbnail v)\n    go to [front v] layer\nend\n\n@Button Turbo\n\nwhen flag clicked\nset [⚡ confirmation ⚡ v] to [0]\nhide\n\nwhen this sprite clicked\nbroadcast (turbo mode accept v)\nset [⚡ confirmation ⚡ v] to [Yes]\nhide\n\nwhen I receive [turbo mode question v]\nshow\nset [⚡ confirmation ⚡ v] to [No]\ngo to [front v] layer\ngo [forward v] (1) layers\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (80) %\n    else\n        set size to (70) %\n    end\nend\n\n