Spring - Platformer #games

Instructions: This is a simple and easy platformer inspired by the struggles that I have been experiencing so far in life.\n\nHow to play:\nUp Arrow or W Key - Jump\nLeft Arrow or A Key - Move Left\nRight Arrow or D Key - Move Right\nDown Arrow or S Key - Crouch\nR Key - Reset Level\nGet to the Yellow Circle on each level to move on to the next.\n(Note: This game is not playable on Mobile)\n\n[Story]\nYou (The Little Cube) are on a small adventure until you lost hope that you have no way home. You will have to face different obstacles along the way back to regain your courage until you are back safe.\n\n(Note: All levels are possible. Just don't give up!)

@Stage\n\nwhen flag clicked\nswitch backdrop to (1 v)\n\nwhen flag clicked\nforever\n    repeat until <(backdrop [number v]) = [11]>\n        play sound [Overworld v] until done\n    end\n    if <(backdrop [number v]) = [11]> then\n        forever\n            play sound [Win v] until done\n        end\n    end\nend\n\n@Mario\n\nwhen flag clicked\nerase all\nswitch costume to (コスチューム1 v)\n\nforever\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        wait (0.01) seconds\n        next costume\n    end\nend\n\nwhen flag clicked\nif <key (down arrow v) pressed?> then\n    switch costume to (コスチューム2 v)\nelse\n    switch costume to (run_r1 v)\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n初期化\n\nwhen flag clicked\nreset timer\nforever\n    if <touching color (#986230)?> then\n        初期化\n        change [落ちた数 v] by (1)\n    end\nend\n\nwhen flag clicked\nrepeat until <(backdrop [number v]) = [16]>\n\ndefine 初期化\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-210) y: (30)\nswitch costume to (run_r1 v)\n\nwait (0.1) seconds\n\nwhen I receive [開始 v]\nshow\nhide variable [x v]\nhide variable [y v]\n初期化\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    change x by (X)\n    set [x v] to ((X) * (0.9))\n    if <<<<touching color (#e74a08)?> or <touching color (#ffdb8b)?>> or <touching color (#924400)?>> or <touching color (#809390)?>> then\n        set [ジャンプしたぁ v] to [0]\n        change y by (6)\n    end\n    if <touching color (#e74a08)?> then\n        set [ジャンプしたぁ v] to [0]\n        change y by (-6)\n        change x by ((X) * (-1))\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n            set [y v] to [15]\n            if <(X) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    if <touching color (#986230)?> then\n        初期化\n    end\n    change y by (Y)\n    if <touching color (#e74a08)?> then\n        change y by (() - (Y))\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n            set [y v] to [15]\n        end\n    end\n    if <<key (down arrow v) pressed?> or <<mouse down?> and <(mouse y) < [0]>>> then\n        switch costume to (コスチューム2 v)\n    else\n        switch costume to (run_r1 v)\n    end\n    if <key (s v) pressed?> then\n        初期化\n    end\nend\n\nwhen I receive [記録なしだった… v]\nforever\n    if <(backdrop [number v]) = [16]> then\n        say [記録なし…]\n    end\nend\n\nwhen I receive [記録を言って！ v]\nsay (Time)\nshow variable [タイム v]\n\nwhen I receive [次だよ！ v]\n初期化\n\nwhen flag clicked\nforever\n    if <<touching color (#9e9e9e)?> or <touching color (#00f8ff)?>> then\n        初期化\n    end\nend\n\nwhen flag clicked\nset size to (100) %\n\nwhen [down arrow v] key pressed\n\nwhen flag clicked\nforever\n    if <key (down arrow v) pressed?> then\n        switch costume to (コスチューム2 v)\n    else\n        switch costume to (run_r1 v)\n        repeat until <not <key (right arrow v) pressed?>>\n            switch costume to (run_r1 v)\n            switch costume to (コスチューム1 v)\n        end\n    end\nend\n\nwhen this sprite clicked\n初期化\n\nwhen flag clicked\nset size to (150) %\n\nwhen flag clicked\nforever\n    repeat until <not <key (up arrow v) pressed?>>\n        switch costume to (コスチューム4 v)\n        if <not <key (up arrow v) pressed?>> then\n            switch costume to (run_r1 v)\n        end\n    end\nend\n\nwhen [right arrow v] key pressed\npoint in direction (90)\nrepeat until <not <key (right arrow v) pressed?>>\n    switch costume to (run_r1 v)\n    switch costume to (コスチューム1 v)\nend\n\nwhen [up arrow v] key pressed\nrepeat until <not <key (up arrow v) pressed?>>\n    switch costume to (コスチューム4 v)\n    set [ジャンプしたぁ v] to [1]\n    if <(ジャンプしたぁ) = [1]> then\n        switch costume to (コスチューム4 v)\n    else\n        switch costume to (run_r1 v)\n    end\nend\n\nwhen [left arrow v] key pressed\nset rotation style [left-right v]\npoint in direction (-90)\nrepeat until <not <key (left arrow v) pressed?>>\n    switch costume to (run_r1 v)\n    switch costume to (コスチューム1 v)\nend\n\nwhen flag clicked\nforever\n    if <<<<touching color (#488916)?> or <touching color (#c4e0c3)?>> or <touching color (#109083)?>> or <<touching color (#1d8400)?> or <<touching color (#3a901e)?> or >>> then\n        初期化\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\npoint in direction (0)\nglide (1) secs to x: (209) y: (152)\n\nwhen I receive [開始 v]\nrepeat until <(backdrop [number v]) = [16]>\n    turn right (10) degrees\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [16]> then\n        hide\n    end\nend\n\nwhen this sprite clicked\nnext backdrop\nforever\n    set [タイム v] to [なし]\n    broadcast (記録なしだった… v)\nend\n\nwhen flag clicked\nforever\n    hide\nend\n\n@記録管理\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [11]> then\n        if <(タイム) < (☁ Time)> then\n            set [タイム v] to (タイム)\n            if <(タイム) = [記録なしだった…]> then\n                set [タイム v] to [x]\n            end\n        end\n    end\nend\n\nwhen I receive [開始 v]\nset [タイム v] to [0]\nrepeat until <(backdrop [number v]) = [11]>\n    change [タイム v] by (1)\n    wait (1) seconds\n    if <(backdrop [number v]) = [11]> then\n        broadcast (記録を言う v)\n    end\nend\n\n@サムネ\n\nwhen flag clicked\nshow\nwait (0.5) seconds\nbroadcast (開始 v)\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    hide variable [タイム v]\nend\n\n@緑の旗\n\nwhen I receive [開始 v]\nhide\nreset timer\nshow\nforever\n    if <(backdrop [number v]) = [11]> then\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (199) y: (-52)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching (mario v)?> then\n        broadcast (次だよ！ v)\n        next backdrop\n        初期化\n    end\nend\n\nwhen I receive [次だよ！ v]\nhide\nwait (0.5) seconds\nshow\n\n@nextボタン\n\nwhen flag clicked\npoint in direction (0)\nglide (1) secs to x: (209) y: (152)\n\nwhen this sprite clicked\nnext backdrop\nforever\n    set [time v] to [なし]\n    broadcast (記録なしだった… v)\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [16]> then\n        hide\n    end\nend\n\nwhen I receive [開始 v]\nrepeat until <(backdrop [number v]) = [16]>\n    turn right (10) degrees\nend\n\n@記録感知器\n\nwhen flag clicked\nhide\n\nwhen I receive [開始 v]\nset [time v] to [0]\nrepeat until <(backdrop [number v]) = [11]>\n    change [time v] by (1)\n    wait (1) seconds\n    if <(backdrop [number v]) = [11]> then\n        broadcast (記録を言って！ v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [11]> then\n        if <(Time) < (☁ Time)> then\n            set [☁ time v] to (Time)\n            if <(Time) = [記録なしだった…]> then\n                set [☁ time v] to [x]\n            end\n        end\n    end\nend\n\n@next2\n\nwhen flag clicked\ngo to x: (16) y: (15)\nhide\n\nwhen I receive [次だよ！ v]\nshow\nwait (0.5) seconds\nhide\n\n@next\n\nwhen flag clicked\ngo to x: (-2) y: (-3)\nhide\n\nwhen I receive [次 v]\nshow\nwait (0.5) seconds\nhide\n\n@マリオ7\n\nwhen flag clicked\nhide\n\n@Next!\n\nwhen I receive [次！ v]\nset [color v] effect to (pick random (-250) to (250))\nhide\nstart sound [High Whoosh v]\nclone [1]\nwait (0.05) seconds\nclone [2]\nwait (0.05) seconds\nclone [3]\nwait (0.05) seconds\nclone [4]\nwait (0.05) seconds\nclone [5]\n\ndefine clone (cloneid)\nswitch costume to (cloneid)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nif <<(costume [number v]) = [1]> or <<(costume [number v]) = [2]> or <<(costume [number v]) = [3]> or <<(costume [number v]) = [4]> or <(costume [number v]) = [5]>>>>> then\n    go to x: (468) y: (0)\n    repeat until <(round (x position)) = [0]>\n        change x by (((0) - (x position)) / (7))\n    end\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    wait (2.2) seconds\n    repeat until <[465] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [2]> then\n    wait (2.1) seconds\n    repeat until <[465] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [3]> then\n    wait (2) seconds\n    repeat until <[465] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [4]> then\n    wait (1.9) seconds\n    repeat until <[465] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [5]> then\n    wait (1.8) seconds\n    repeat until <[330] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\n\nwhen I receive [次 v]\nshow\nwait (0.5) seconds\n\nhide\n\nwhen flag clicked\ngo to x: (-2) y: (-3)\nhide\n\nwhen flag clicked\ngo to x: (-2) y: (-3)\nhide\n\n@ターボを対策\n\nwhen flag clicked\nhide\nforever\n    wait (0.01) seconds\n    set [ターボ対策 v] to [0]\nend\n\nwhen flag clicked\nhide\nforever\n    if <(ターボ対策) > [20]> then\n        broadcast (ターボ v)\n    end\nend\n\nwhen I receive [ターボ v]\nshow\nstop [all v]\n\nwhen flag clicked\nhide\nset [ターボ対策 v] to [0]\nforever\n    change [ターボ対策 v] by (10)\nend\n\n