Mario Platformer ~マリオ　プラットフォーマー~

Instructions: New project: https://scratch.mit.edu/projects/493687843/\n\nWelcome to my 2nd platformer!\n<^>/mobile\n\nToo hard? My last platformer "Sunstruck" was spammed with mail like "EZ" or "Short and Easy bruh"\nThat is why it is soo hard\n\nIf you like it pls give it a ❤️ and a ⭐\n\nNo: advertising, spam, or being rude\nYes: being nice\n\n(All levels ARE possible)\n\n\nPropose to be Featured studio\nhttps://scratch.mit.edu/studios/4228481/projects/\n\n\nhint below...\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n(stars are beautiful so why not use them on the last level)

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景3 v)\n\nwhen I receive [開始 v]\nswitch backdrop to (背景2 v)\n\nwhen I receive [minigame v]\nswitch backdrop to (背景4 v)\n\n@球\n\ndefine くぁｗせｄｒｆｔｇｙふいこｌｐ\nrepeat (6)\n    if <touching (地面 v)?> then\n        change y by (1)\n    end\nend\n\ndefine 横へいこうね\nrepeat until <not <touching (地面 v)?>>\n    if <(x) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\ndefine 縦型授業すたとんとん\nrepeat until <not <touching (地面 v)?>>\n    if <(y) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\nwhen I receive [開始 v]\n初期化\nswitch costume to (スキン)\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n        change [x v] by (-1)\n        turn left (10) degrees\n    end\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        change [x v] by (1)\n        turn right (10) degrees\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (地面 v)?> then\n        くぁｗせｄｒｆｔｇｙふいこｌｐ\n        if <touching (地面 v)?> then\n            change y by (-5)\n            横へいこうね\n        end\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n            start sound [壁 v]\n            set [y v] to [13]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-4]\n            else\n                set [x v] to [4]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (地面 v)?> then\n        縦型授業すたとんとん\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n            start sound [ジャンプ v]\n            set [y v] to [13]\n        else\n            set [y v] to [0]\n        end\n    end\nend\n\nwhen I receive [開始 v]\nforever\n    if <touching (針 v)?> then\n        go to x: (-200) y: (-100)\n        start sound [空気 v]\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <(y position) < [-179]> then\n        go to x: (-200) y: (-100)\n        start sound [空気 v]\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <<<touching (鉢1 v)?> or <touching (針2 v)?>> or <<touching (針3 v)?> or <<touching (針4 v)?> or <<touching (針5 v)?> or <touching (スプライト8 v)?>>>>> then\n        go to x: (-200) y: (-100)\n        start sound [空気 v]\n        set [x v] to [0]\n        set [y v] to [0]\n    end\nend\n\nwhen I receive [開始 v]\nrepeat until <([costume # v] of [地面 v]) = [20]>\n    if <touching (ゴール v)?> then\n        go to x: (-222) y: (-91)\n        broadcast (level v)\n    end\nend\n\nwhen flag clicked\nhide\n\ndefine 初期化\nset [x v] to [0]\nset [y v] to [0]\nshow\nset size to (85) %\ngo to x: (-200) y: (-50)\n\nwhen I receive [開始 v]\nset volume to (volume) %\n\nwhen I receive [開始 v]\nclear graphic effects\nforever\n    if <([costume # v] of [プラフォ君表示用の v]) = [7]> then\n        change [color v] effect by (2)\n    end\nend\n\n@地面\n\nwhen flag clicked\nhide\nswitch costume to (ステージ1 v)\n\nwhen I receive [level v]\nnext costume\n\nwhen I receive [開始 v]\nshow\nforever\n    go to x: (46) y: (5)\nend\n\n@針\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nhide\n\nwhen I receive [開始 v]\nshow\n\nwhen flag clicked\nforever\n    switch costume to ([costume # v] of [地面 v])\nend\n\n@次\n\nwhen I receive [level v]\nstart sound [ふっ v]\n\nwhen I receive [開始 v]\nset volume to (volume) %\n\n@サムネイル\n\nwhen flag clicked\nshow\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.0001)\nset [サムネの動き v] to [-25]\ngo to [front v] layer\nshow\ngo to x: (0) y: (300)\nrepeat (10)\n    change y by (サムネの動き)\n    change [サムネの動き v] by (1.5)\nend\nrepeat (20)\n    change y by (サムネの動き)\n    change [サムネの動き v] by (0.5)\nend\n\n@ホーム\n\nwhen I receive [開始 v]\nhide\n\nwhen I receive [ホーム画面 v]\nclear graphic effects\nshow\nforever\n    go to [back v] layer\n    go to x: (0) y: (0)\n    glide (1) secs to x: (0) y: (10)\n    glide (1) secs to x: (0) y: (0)\nend\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nhide\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\n\nwhen flag clicked\nforever\n    set [skin v] to (costume [number v])\nend\n\nwhen I receive [skin変更 v]\nnext costume\n\nwhen I receive [qawsed v]\nrepeat (25)\n    change [pixelate v] effect by (5)\nend\nswitch costume to (コスチューム2 v)\n\nwhen I receive [minigame v]\nhide\n\n@スプライト2\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [演出 v]\nset [ghost v] effect to (0)\ngo to [front v] layer\nshow\nset size to (100) %\nset [jksa v] to [0]\nbroadcast (qawsed v)\nrepeat (25)\n    change size by (jksa)\n    change [jksa v] by (5)\nend\n\nwhen I receive [qawsed v]\nwait (0.7) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (開始 v)\n\n@イントロバージョン2\n\nwhen flag clicked\nhide\nwait (0.5) seconds\nswitch costume to (コスチューム1 v)\ngo to x: (0) y: (212)\nshow\nglide (0.1) secs to x: (0) y: (0)\nstart sound [金属ロゴ表示1 v]\nrepeat (12)\n    next costume\nend\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast (ホーム画面 v)\n\nwhen flag clicked\ngo to x: (0) y: (212)\nwait (0.3) seconds\nset [ghost v] effect to (100)\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\n\n@ぷれい4\n\nwhen flag clicked\nset [ok1 v] to [0]\nswitch costume to (コスチューム1 v)\nhide\nrepeat until <(ok1) = [1]>\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        set [brightness v] effect to (20)\n    else\n        clear graphic effects\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nif <<not <([costume # v] of [プラフォ君表示用の v]) = [7]>> or <<([costume # v] of [プラフォ君表示用の v]) = [7]> and <(鍵) = [1]>>> then\n    set [ok1 v] to [1]\n    switch costume to (コスチューム1 v)\n    set volume to (volume) %\n    broadcast (回転はじめ v)\n    play sound [決定 v] until done\n    broadcast (回転追わり v)\n    broadcast (演出 v)\n    hide\n    broadcast (引退 v)\n    hide\nend\n\nwhen I receive [ホーム画面 v]\ngo to x: (0) y: (-130)\nshow\nforever\n    glide (1.5) secs to x: (0) y: (-120)\n    glide (1.5) secs to x: (0) y: (-130)\nend\n\nwhen I receive [minigame v]\nhide\n\n@スプライト7\n\nwhen I receive [メッセージ1 v]\nif <not <(kaginotikk) = [1]>> then\n    hide\n    show\n    glide (0.5) secs to x: (140) y: (155)\n    wait (0.1) seconds\n    glide (0.5) secs to x: (140) y: (200)\n    hide\n    set [kaginotikk v] to [1]\nelse\n    hide\nend\n\nwhen flag clicked\nhide\nset [kaginotikk v] to [0]\n\n@★♥\n\nwhen I start as a clone\nswitch costume to (コスチューム2 v)\nset [星b v] to [No]\nforever\n    set [星a v] to <touching (mouse-pointer v)?>\n    if <touching (mouse-pointer v)?> then\n        wait (0.5) seconds\n        set [星b v] to [Yes]\n        wait (0.6) seconds\n        broadcast (メッセージ1 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\ncreate clone of (_myself_ v)\nset [ハートb v] to [No]\nforever\n    set [ハートa v] to <touching (mouse-pointer v)?>\n    if <touching (mouse-pointer v)?> then\n        wait (0.5) seconds\n        set [ハートb v] to [Yes]\n        wait (0.6) seconds\n        broadcast (メッセージ1 v)\n    end\nend\n\n@プラフォ君表示用の\n\nwhen flag clicked\nhide\nswitch costume to (コスチューム1 v)\npoint in direction (90)\nset size to (140) %\n\nwhen I receive [ホーム画面 v]\nshow\n\nwhen I receive [次に移行 v]\nnext costume\n\nwhen I receive [戻るよ＝ v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen I receive [演出 v]\nhide\n\nwhen I receive [minigame v]\nhide\n\nwhen I receive [ホーム画面 v]\ngo to x: (0) y: (-50)\nshow\nforever\n    glide (1.5) secs to x: (0) y: (-45)\n    glide (1.5) secs to x: (0) y: (-55)\nend\n\n@スプライト5\n\nwhen flag clicked\ngo to x: (-60) y: (-50)\nhide\n\nwhen I receive [ホーム画面 v]\nshow\n\nwhen this sprite clicked\nstart sound [Water Drop v]\nbroadcast (戻るよ＝ v)\nchange [スキン v] by (-1)\n\nwhen I receive [演出 v]\nhide\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        set [brightness v] effect to (30)\n    else\n        set size to (90) %\n        clear graphic effects\n    end\nend\n\nwhen I receive [minigame v]\nhide\n\n@スプライト3\n\nwhen flag clicked\nset [スキン v] to [1]\nhide\n\nwhen I receive [ホーム画面 v]\nshow\n\nwhen this sprite clicked\nstart sound [Water Drop v]\nbroadcast (次に移行 v)\nchange [スキン v] by (1)\n\nwhen I receive [演出 v]\nhide\n\nwhen flag clicked\ngo to x: (60) y: (-50)\nswitch costume to (コスチューム1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        set [brightness v] effect to (30)\n    else\n        set size to (90) %\n        clear graphic effects\n    end\nend\n\nwhen I receive [minigame v]\nhide\n\n@スプライト6\n\nwhen flag clicked\ngo to [front v] layer\nset [鍵 v] to [0]\nforever\n    if <(鍵) = [1]> then\n        hide\n    else\n        if <([costume # v] of [プラフォ君表示用の v]) = [7]> then\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [メッセージ1 v]\nset [鍵 v] to [1]\nhide\n\nwhen I receive [minigame v]\nhide\n\n@ゴール\n\nwhen flag clicked\nhide\n\nwhen I receive [開始 v]\nshow\nforever\n    if <([costume # v] of [地面 v]) = [20]> then\n        hide\n    end\nend\n\n@スプライト4\n\nwhen I receive [開始 v]\nset volume to (80) %\nset [監視 v] to [1]\nstop all sounds\nforever\n    play sound [yt1s v] until done\nend\n\nwhen I receive [ホーム画面 v]\nset volume to (60) %\nset [監視 v] to [0]\nrepeat until <(監視) = [1]>\n    play sound [yt1s2 v] until done\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [minigame v]\nset volume to (80) %\nset [監視 v] to [1]\nstop all sounds\nforever\n    play sound [yt1s v] until done\nend\n\n@バネ\n\nwhen flag clicked\nhide\nforever\n    if <([costume # v] of [地面 v]) = [8]> then\n        go to x: (-50) y: (-22)\n        ジャンプ\n    else\n        hide\n    end\nend\n\ndefine ジャンプ\nshow\nif <touching (球 v)?> then\n    switch costume to (2 v)\n    set [y v] to [22]\n    start sound [ジャンプ v]\nelse\n    switch costume to (1 v)\nend\n\nif <([costume # v] of [地面 v]) = [9]> then\n    hide\nend\n\nwhen I receive [開始 v]\nset volume to (volume) %\n\n@鉢1\n\nwhen flag clicked\nhide\nforever\n    if <([costume # v] of [地面 v]) = [10]> then\n        go to x: (-110) y: (-115)\n        repeat until <([costume # v] of [地面 v]) = [11]>\n            show\n            glide (0.3) secs to x: (-110) y: (-160)\n            wait (1.5) seconds\n            glide (0.3) secs to x: (-110) y: (-115)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [地面 v]) = [11]> then\n        hide\n    end\nend\n\n@針2\n\nwhen flag clicked\nhide\nforever\n    if <([costume # v] of [地面 v]) = [10]> then\n        go to x: (-70) y: (-115)\n        repeat until <([costume # v] of [地面 v]) = [11]>\n            show\n            glide (0.3) secs to x: (-70) y: (-160)\n            wait (1.5) seconds\n            glide (0.3) secs to x: (-70) y: (-115)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [地面 v]) = [11]> then\n        hide\n    end\nend\n\n@針3\n\nwhen flag clicked\nhide\nforever\n    if <([costume # v] of [地面 v]) = [10]> then\n        go to x: (-30) y: (-115)\n        repeat until <([costume # v] of [地面 v]) = [11]>\n            show\n            glide (0.3) secs to x: (-30) y: (-160)\n            wait (1.5) seconds\n            glide (0.3) secs to x: (-30) y: (-115)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [地面 v]) = [11]> then\n        hide\n    end\nend\n\n@針4\n\nwhen flag clicked\nhide\nforever\n    if <([costume # v] of [地面 v]) = [10]> then\n        go to x: (10) y: (-115)\n        repeat until <([costume # v] of [地面 v]) = [11]>\n            show\n            glide (0.3) secs to x: (10) y: (-160)\n            wait (1.5) seconds\n            glide (0.3) secs to x: (10) y: (-115)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [地面 v]) = [11]> then\n        hide\n    end\nend\n\n@針5\n\nwhen flag clicked\nhide\nforever\n    if <([costume # v] of [地面 v]) = [10]> then\n        go to x: (50) y: (-115)\n        repeat until <([costume # v] of [地面 v]) = [11]>\n            show\n            glide (0.3) secs to x: (50) y: (-160)\n            wait (1.5) seconds\n            glide (0.3) secs to x: (50) y: (-115)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [地面 v]) = [11]> then\n        hide\n    end\nend\n\n@スプライト8\n\nwhen flag clicked\nhide\nforever\n    if <([costume # v] of [地面 v]) = [11]> then\n        show\n        turn right (-2) degrees\n    else\n        hide\n    end\nend\n\n@ガイド役\n\nwhen flag clicked\nforever\n    if <([costume # v] of [地面 v]) = [20]> then\n        show\n    else\n        hide\n    end\nend\n\n@☁\n\nwhen I start as a clone\nset [ghost v] effect to (50)\nshow\ngo to x: (400) y: (0)\nglide (5) secs to x: (-100) y: (0)\nhide\ndelete this clone\n\nwhen I receive [開始 v]\nhide\nforever\n    go to [back v] layer\n    switch costume to (pick random (1) to (3))\n    create clone of (_myself_ v)\n    wait (4) seconds\nend\n\nwhen flag clicked\nhide\n\n@外の枠\n\nwhen flag clicked\nhide\n\nwhen I receive [minigame v]\ngo to [back v] layer\nshow\n\n@ボール\n\ndefine ボール\ngo to x: (0) y: (-50)\npoint in direction ((90) - (pick random (230) to (310)))\nwait (1.5) seconds\nforever\n    show\n    repeat until <<touching (パドル v)?> or <touching (外の枠 v)?>>\n        move (6) steps\n        if on edge, bounce\n        if <(pick random (1) to (3)) = [3]> then\n            turn right (pick random (-3) to (3)) degrees\n        end\n    end\n    if <touching (外の枠 v)?> then\n        if <(direction) < [90]> then\n            point in direction ((direction) - ((direction) * (2)))\n        else\n            point in direction ((direction) + (((180) - (direction)) * (2)))\n        end\n        repeat until <not <touching (外の枠 v)?>>\n            move (10) steps\n        end\n    end\n    if <touching (パドル v)?> then\n        point in direction ((direction) + (((90) - (direction)) * (2)))\n        repeat until <not <touching (パドル v)?>>\n            move (10) steps\n            if on edge, bounce\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [minigame v]\nボール\n\nwhen I receive [minigame v]\nforever\n    if <(y position) < [-165]> then\n        stop [all v]\n    end\nend\n\nwhen I receive [minigame v]\nforever\n    if <touching (ブロック v)?> then\n        wait (0) seconds\n        point in direction ((direction) + (((90) - (direction)) * (2)))\n    end\n    repeat until <not <touching (ブロック v)?>>\n        move (10) steps\n        if on edge, bounce\n    end\nend\n\n@パドル\n\nwhen flag clicked\nhide\n\nwhen I receive [minigame v]\nshow\ngo to x: (0) y: (-170)\nforever\n    if <<<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> and <not <[90] < (x position)>>> then\n        change x by (10)\n    end\n    if <<<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> and <not <(x position) < [-90]>>> then\n        change x by (-10)\n    end\nend\n\n@ブロック\n\nwhen I start as a clone\nshow\nwait until <touching (ボール v)?>\nchange [point v] by (1)\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [minigame v]\nswitch costume to (コスチューム1 v)\ngo to x: (-105) y: (168)\nrepeat (6)\n    create clone of (_myself_ v)\n    change x by (42)\nend\nswitch costume to (コスチューム2 v)\ngo to x: (-105) y: (146)\nrepeat (6)\n    create clone of (_myself_ v)\n    change x by (42)\nend\nswitch costume to (コスチューム3 v)\ngo to x: (-105) y: (124)\nrepeat (6)\n    create clone of (_myself_ v)\n    change x by (42)\nend\ngo to x: (-105) y: (102)\nswitch costume to (コスチューム4 v)\nrepeat (6)\n    create clone of (_myself_ v)\n    change x by (42)\nend\nswitch costume to (コスチューム5 v)\ngo to x: (-105) y: (80)\nrepeat (6)\n    create clone of (_myself_ v)\n    change x by (42)\nend\nswitch costume to (コスチューム6 v)\ngo to x: (-105) y: (58)\nrepeat (6)\n    create clone of (_myself_ v)\n    change x by (42)\nend\n\nwhen flag clicked\nset [point v] to [0]\nforever\n    if <(point) = [36]> then\n        broadcast (クリア！！！🎊 v)\n    end\nend\n\n@スプライト1\n\nwhen this sprite clicked\nbroadcast (minigame v)\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [回転はじめ v]\nhide\n\nwhen I receive [ホーム画面 v]\ngo to x: (-190) y: (-150)\nshow\nforever\n    glide (1.5) secs to x: (-190) y: (-140)\n    glide (1.5) secs to x: (-190) y: (-150)\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n        set [brightness v] effect to (20)\n    else\n        clear graphic effects\n        set size to (100) %\n    end\nend\n\n@スプライト9\n\nwhen flag clicked\nhide\n\nwhen I receive [クリア！！！🎊 v]\nshow\nwait (1) seconds\nhide\nstop [all v]\n\n@秒数\n\nwhen I start as a clone\nforever\n    if <[22] < (length of (秒))> then\n        hide\n        show variable [秒 v]\n    else\n        show\n        switch costume to (letter (数字番号) of (秒))\n        hide variable [秒 v]\n    end\nend\n\ndefine 配置\ngo to x: (-250) y: (150)\nhide\nset [数字番号 v] to [0]\nrepeat (22)\n    change [数字番号 v] by (1)\n    change x by (20)\n    create clone of (_myself_ v)\nend\nswitch costume to (+ v)\nshow\ngo to x: (-250) y: (150)\n\nwhen I receive [開始 v]\nset [秒 v] to [0]\nrepeat until <([costume # v] of [地面 v]) = [20]>\n    wait (1) seconds\n    change [秒 v] by (1)\nend\n\nwhen I receive [開始 v]\n配置\n\n