Spring platformer

Instructions: 　　　　　⚠旗は必ず2回押してください⚠\n世界記録 @mizukushuma   27.900000000000126秒\n■■■■■↓下まで読まないと損します↓■■■■■■\n　　　　　　久々のプラットフォーマー！\n　　　　　　春をイメージして作りました！\n・長さ★★★☆☆            　　　　（作者のやる気）\n・クォリティー★★★★☆　　　（  ★☆☆☆☆  ）\n・難易度★★★☆☆　　めっちゃノーマルです(*^▽^*)\n■■■■■■■■■■操作方法■■■■■■■■■■■\n　　　　　　　　　　　【pc】\n・十字キー操作　　　　しゃがみなし\n\n　　　　　　　　　　【モバイル】\n・タップで操作　　　　しゃがみなし\n\n　　ラグでたまに動けなくなることがあったので\n軽量化をできるようにしました！変数でラグの度合いを\n　　　　変えて、楽しんでください！(*^▽^*)\n\n　　　　　0.ノーマル　1.大きな花びらのみ\n　　　　2.小さな花びらのみ　3.花びらなし\n\n■■■■■■■■■■■■■■■■■■■■■■■■■\n　　　追加してほしいこと　変更してほしいこと\n　　直してほしいことは　コメントで言ってください\n  　直せる限り直したいので！(人´∀｀)．☆．。．:*･ﾟ

@Stage\n\nwhen I receive [スタート v]\nswitch backdrop to (背景9 v)\nset [ghost v] effect to (0)\nset [brightness v] effect to (15)\nforever\n    play sound [Let You Go v] until done\nend\n\nwhen I receive [スタート v]\nwait (0.1) seconds\nwait until <(ステージ) = [6]>\nswitch backdrop to (背景2 v)\nwait until <(ステージ) = [7]>\nswitch backdrop to (背景9 v)\n\nwhen flag clicked\nswitch backdrop to (背景7 v)\n\nswitch backdrop to (背景6 v)\n\nset [brightness v] effect to (15)\n\n@本体\n\nwhen I receive [スタート v]\ngo to x: (-200) y: (0)\nshow\nset [ｙ v] to [0]\nset [速さ v] to [0]\nset [動作 v] to [y]\nforever\n    動き\nend\n\nwhen I receive [スタート v]\nforever\n    if <<touching (_edge_ v)?> and <(x position) > [215]>> then\n        go to x: (-200) y: (0)\n        set [ｙ v] to [0]\n        set [速さ v] to [0]\n        broadcast (次のステージ v)\n    end\nend\n\nwhen I receive [スタート v]\nforever\n    if <<touching (針 v)?> or <[-159] > (y position)>> then\n        set [動作 v] to [n]\n        start sound [ペタッ v]\n        デス\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nset [ステージ v] to [1]\nhide\n\nwhen I receive [スタート v]\nset [タイム v] to [0]\nset [タイム終わり v] to [n]\nhide variable [タイム v]\nhide variable [☁ 世界記録 v]\nforever\n    if <(タイム終わり) = [n]> then\n        wait (0.1) seconds\n        change [タイム v] by (0.1)\n        if <(ステージ) = [9]> then\n            show variable [☁ 世界記録 v]\n            show variable [タイム v]\n            set [タイム終わり v] to [y]\n            if <(タイム) < (☁ 世界記録)> then\n                set [☁ 世界記録 v] to (タイム)\n            end\n        end\n    end\nend\n\nset [☁ 世界記録 v] to [100]\n\nset [動作 v] to [y]\n\nset [☁ 世界記録 v] to [100]\n\ndefine デス\ngo to [front v] layer\npoint in direction (90)\nset rotation style [all around v]\nset [範囲 v] to (pick random (15) to (18))\nrepeat until <[-170] > (y position)>\n    show\n    go to [front v] layer\n    turn right (範囲) degrees\n    change y by (範囲)\n    change [範囲 v] by (-1)\nend\ngo to x: (-200) y: (0)\nset [ｙ v] to [0]\nset [速さ v] to [0]\nset [動作 v] to [y]\npoint in direction (90)\n\nset [☁ 世界記録 v] to [100]\n\ndefine 動き\nforever\n    if <(動作) = [y]> then\n        change [ｙ v] by (-1)\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<(mouse x) < (x position)> and <mouse down?>>> then\n            change [速さ v] by (-0.99)\n        end\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<(x position) < (mouse x)> and <mouse down?>>> then\n            change [速さ v] by (0.99)\n        end\n        set [速さ v] to ((速さ) * (0.9))\n        change x by (速さ)\n        if <<touching (背景 v)?> and <not <touching color (#ff0000)?>>> then\n            change y by (-1)\n        end\n        if <<touching (背景 v)?> and <not <touching color (#ff0000)?>>> then\n            change y by (-1)\n        end\n        if <<touching (背景 v)?> and <not <touching color (#ff0000)?>>> then\n            change y by (-1)\n        end\n        if <<touching (背景 v)?> and <not <touching color (#ff0000)?>>> then\n            change y by (-1)\n        end\n        if <<touching (背景 v)?> and <not <touching color (#ff0000)?>>> then\n            change y by (4)\n            change x by ((速さ) * (-1))\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<[0] < (mouse y)> and <mouse down?>>> then\n                set [ｙ v] to [12]\n                if <(速さ) > [0]> then\n                    set [速さ v] to [-10]\n                else\n                    set [速さ v] to [10]\n                end\n            else\n                set [速さ v] to [0]\n            end\n        end\n        change y by (-1)\n        if <<<touching (背景 v)?> and <not <touching color (#ff0000)?>>> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<[0] < (mouse y)> and <mouse down?>>>> then\n            start sound [Pop v]\n            set [ｙ v] to [12]\n        end\n        change y by (1)\n        change y by (ｙ)\n        if <<touching (背景 v)?> and <not <touching color (#ff0000)?>>> then\n            change y by ((0) - (ｙ))\n            set [ｙ v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\nset [軽量化 v] to [0]\nhide variable [軽量化 v]\n\nwhen flag clicked\nhide variable [☁ 世界記録 v]\n\n@背景\n\nwhen I receive [次のステージ v]\nset [動作 v] to [n]\nchange [ステージ v] by (1)\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート v]\ngo to x: (0) y: (0)\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\nshow\n\nwhen I receive [スタート v]\nforever\n    go to x: (0) y: (0)\nend\n\n@サムネ\n\nwhen flag clicked\nchange [ghost v] effect by (100)\n\nchange [ghost v] effect by (-100)\n\ngo to x: (0) y: (0)\n\n@YOUR Intro\n\nwhen flag clicked\nhide\nReset\nset [your intro: waiting v] to [0]\nset [your intro: clonenumber v] to [0]\nset [your intro: sides v] to [0]\nset [your intro: value v] to [0]\nset [your intro: velocity v] to [0]\ncreate clone of (_myself_ v)\nswitch costume to (name v)\nstart sound [Electro-Light - Symbolism v]\nwait (1.82) seconds\nset [your intro: clonenumber v] to [1]\nset [your intro: i v] to [5]\nrepeat (10)\n    create clone of (_myself_ v)\n    if <(YOUR Intro: sides) = [1]> then\n        set [your intro: sides v] to [0]\n        change [your intro: value v] by (10)\n        change [your intro: i v] by (-.4)\n    else\n        set [your intro: sides v] to [1]\n    end\nend\nset [your intro: clonenumber v] to [2]\nwait (.3) seconds\nrepeat (4)\n    create clone of (_myself_ v)\n    change [your intro: value v] by (10)\n    wait (0.1) seconds\nend\nclear graphic effects\nswitch costume to (name v)\ngo [forward v] (99) layers\ngo to [front v] layer\nset size to (0) %\nshow\nrepeat until <(round (size)) = [50]>\n    change size by (((50) - (size)) / (3))\nend\ncreate clone of (_myself_ v)\nrepeat until <(round (size)) = [100]>\n    change size by (((100) - (size)) / (5))\nend\nset [your intro: velocity v] to [17]\nset [your intro: waiting v] to [1]\nset [your intro: clonenumber v] to [3]\ncreate clone of (_myself_ v)\nset [your intro: clonenumber v] to [4]\ncreate clone of (_myself_ v)\nset [your intro: waiting v] to [2]\nrepeat (25)\n    go [forward v] (99) layers\n    set [your intro: velocity v] to ((YOUR Intro: velocity) * (.95))\n    set size to ((100) + (YOUR Intro: velocity)) %\nend\nreset timer\nbroadcast (intro v)\nrepeat until <(timer) > [3]>\n    set size to ((size) + (1)) %\n    wait (0.05) seconds\n    set size to ((size) + (2)) %\n    wait (0.05) seconds\n    set size to ((size) + (1)) %\n    wait (0.05) seconds\n    set size to ((size) + (0)) %\n    wait (0.05) seconds\n    set size to ((YOUR Intro: velocity) + (100)) %\n    wait (0.05) seconds\nend\npoint in direction (90)\nset [your intro: value v] to [5]\nrepeat (16)\n    turn right (YOUR Intro: value) degrees\n    change [your intro: value v] by (1)\nend\nrepeat until <(round (direction)) = [90]>\n    turn right (((90) - (direction)) / (5)) degrees\nend\nbroadcast (intro2 v)\nrepeat until <(timer) > [7]>\n    set size to ((size) + (1)) %\n    wait (0.05) seconds\n    set size to ((size) + (2)) %\n    wait (0.05) seconds\n    set size to ((size) + (1)) %\n    wait (0.03) seconds\n    set size to ((size) + (0)) %\n    wait (0.05) seconds\n    set size to ((YOUR Intro: velocity) + (100)) %\n    wait (0.05) seconds\nend\nset [your intro: velocity v] to [12]\nrepeat (30)\n    change size by (YOUR Intro: velocity)\n    change [your intro: velocity v] by (-1)\n    change [ghost v] effect by (3.3)\nend\nbroadcast (Intro End Animation v)\nhide\n\nwhen I start as a clone\nif <(YOUR Intro: clonenumber) = [0]> then\n    Reset\n    show\n    set size to (0) %\n    point in direction (-15)\n    switch costume to (square v)\n    set [your intro: velocity v] to [0]\n    set [your intro: value v] to [0]\n    repeat (15)\n        change [your intro: value v] by (1)\n        turn right (YOUR Intro: value) degrees\n        change [your intro: velocity v] by (1)\n        change size by (YOUR Intro: velocity)\n    end\n    set [your intro: value v] to [8]\n    repeat (30)\n        set [your intro: value v] to (((YOUR Intro: value) * (0.69)) + ((90) - (direction)))\n        turn right (YOUR Intro: value) degrees\n    end\n    repeat (12)\n        next costume\n    end\n    repeat until <(round (size)) = [2000]>\n        switch costume to (blank v)\n        change size by (((2000) - (size)) / (5))\n        switch costume to (square13 v)\n    end\nend\n\ndefine Reset\nclear graphic effects\nset size to (100) %\npoint in direction (90)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(YOUR Intro: clonenumber) = [1]> then\n    Reset\n    show\n    switch costume to (blank v)\n    set size to (150) %\n    point in direction (90)\n    switch costume to (square13 v)\n    set [brightness v] effect to (YOUR Intro: value)\n    go to x: (0) y: (0)\n    set [your intro: i v] to (YOUR Intro: i)\n    if <(YOUR Intro: sides) = [1]> then\n        repeat until <(round (y position)) = [180]>\n            change y by (((180) - (y position)) / (YOUR Intro: i))\n            change [ghost v] effect by (5)\n        end\n    else\n        repeat until <(round (y position)) = [-180]>\n            change y by (((-180) - (y position)) / (YOUR Intro: i))\n            change [ghost v] effect by (5)\n        end\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(YOUR Intro: clonenumber) = [2]> then\n    Reset\n    show\n    switch costume to (blank v)\n    set size to (150) %\n    point in direction (90)\n    set [brightness v] effect to (YOUR Intro: value)\n    go to x: (240) y: (-180)\n    point in direction (-135)\n    switch costume to (screen v)\n    repeat until <(round (direction)) = [90]>\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    point in direction (90)\n    wait until <(YOUR Intro: waiting) = [1]>\n    delete this clone\nend\n\nwhen I start as a clone\nif <(YOUR Intro: clonenumber) = [3]> then\n    Reset\n    show\n    go to [front v] layer\n    switch costume to (screennormal v)\n    set size to (100) %\n    point in direction (90)\n    set [brightness v] effect to (100)\n    go to x: (0) y: (0)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I start as a clone\nif <(YOUR Intro: clonenumber) = [4]> then\n    Reset\n    clear graphic effects\n    show\n    go to [front v] layer\n    go [forward v] (999) layers\n    switch costume to (screennormal v)\n    set size to (100) %\n    point in direction (90)\n    set [brightness v] effect to (100)\n    go to x: (0) y: (0)\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\ndefine Move and Clones\nset [your intro: clonenumber v] to [5]\ncreate clone of (_myself_ v)\ngo to x: (-150) y: (80)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (80)\ncreate clone of (_myself_ v)\ngo to x: (-150) y: (-80)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (-80)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(YOUR Intro: clonenumber) = [5]> then\n    show\n    clear graphic effects\n    set size to (10) %\n    point in direction (90)\n    switch costume to (sidesquareline v)\n    set [your intro: velocity v] to [0]\n    set [your intro: value v] to [0]\n    go to [front v] layer\n    repeat until <(round (size)) = [300]>\n        change size by (((300) - (size)) / (15))\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nwait until <(YOUR Intro: waiting) = [2]>\nreset timer\nrepeat until <(timer) > [6]>\n    Move and Clones\n    wait (1) seconds\nend\n\nwhen I receive [intro end animation v]\nif <not <(costume [number v]) = [14]>> then\n    repeat (20)\n        change size by (((0) - (size)) / (5))\n        change [ghost v] effect by (5)\n    end\nelse\n    repeat until <(round (size)) = [100]>\n        change size by (((100) - (size)) / (5))\n        switch costume to (blank v)\n        switch costume to (square v)\n    end\n    set [your intro: velocity v] to [12]\n    repeat (30)\n        change size by (YOUR Intro: velocity)\n        change [your intro: velocity v] by (-1)\n        change [ghost v] effect by (3.3)\n        turn right (([abs v] of (YOUR Intro: velocity) ) / (2)) degrees\n    end\n    delete this clone\nend\nbroadcast (スタート v)\n\nchange size by (((150) - (size)) / (3))\n\nset size to ((YOUR Intro: velocity) + (100)) %\n\nset size to ((size) + (5)) %\nset size to ((size) + (6)) %\n\nwait (0.1) seconds\n\n@Next!\n\nwhen I receive [次のステージ v]\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\ngo to [front v] layer\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    set [動作 v] to [y]\n    delete this clone\nend\n\nwhen I receive [\[intro\]end v]\nshow\n\nwhen flag clicked\nhide\n\n@針\n\nwhen I receive [次のステージ v]\ngo to x: (0) y: (0)\ngo to [back v] layer\nwait (0.1) seconds\nif <(ステージ) = [2]> then\n    switch costume to (コスチューム1 v)\n    show\nelse\n    if <(ステージ) = [3]> then\n        switch costume to (コスチューム2 v)\n        show\n    else\n        if <(ステージ) = [5]> then\n            switch costume to (コスチューム3 v)\n            show\n        else\n            if <(ステージ) = [7]> then\n                switch costume to (コスチューム4 v)\n                show\n            else\n                hide\n            end\n        end\n    end\nend\n\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\n@スプライト1\n\n@タボフィー\n\nwhen flag clicked\nforever\n    set [turbo v] to [0]\n    wait (0.001) seconds\n    if <[3] < (Turbo)> then\n        show\n        stop [all v]\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    change [turbo v] by (2)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@🌸\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (2))\ngo to x: (pick random (-200) to (200)) y: (175)\nrepeat until <(y position) < [-175]>\n    [-1] [1] [5]\n    [-2] [1] [10]\n    [-3] [1] [15]\n    [-2] [1] [10]\n    [-1] [1] [5]\n    [1] [-1] [5]\n    [2] [-1] [10]\n    [3] [-1] [15]\n    [2] [-1] [10]\n    [1] [-1] [5]\nend\ndelete this clone\n\ndefine (スピード) (向き) (回数)\nrepeat (回数)\n    turn right (向き) degrees\n    change x by (スピード)\n    change y by (-1)\nend\n\nwhen I receive [スタート v]\nhide\nforever\n    if <<(軽量化) = [0]> or <(軽量化) = [1]>> then\n        create clone of (_myself_ v)\n        wait (2.5) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@🌸2\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (2))\ngo to x: (pick random (-200) to (200)) y: (175)\nrepeat until <(y position) < [-175]>\n    [-1] [1] [5]\n    [-2] [1] [10]\n    [-3] [1] [15]\n    [-2] [1] [10]\n    [-1] [1] [5]\n    [1] [-1] [5]\n    [2] [-1] [10]\n    [3] [-1] [15]\n    [2] [-1] [10]\n    [1] [-1] [5]\nend\ndelete this clone\n\ndefine (スピード) (向き) (回数)\nrepeat (回数)\n    turn right (向き) degrees\n    change x by (スピード)\n    change y by (-1)\nend\n\nwhen I receive [スタート v]\nhide\nforever\n    if <<(軽量化) = [0]> or <(軽量化) = [1]>> then\n        create clone of (_myself_ v)\n        wait (3.5) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@スプライト2\n\nwhen I start as a clone\nset [ghost v] effect to (75)\ngo to [back v] layer\nshow\ngo to x: (pick random (-260) to (260)) y: (180)\nrepeat (pick random (35) to (50))\n    change y by (-5)\n    turn right (pick random (10) to (30)) degrees\nend\nrepeat until <touching (_edge_ v)?>\n    change y by (-5)\n    change x by (5)\n    turn right (pick random (10) to (30)) degrees\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen I receive [スタート v]\nhide\nshow variable [軽量化 v]\nforever\n    if <<(軽量化) = [0]> or <(軽量化) = [2]>> then\n        create clone of (_myself_ v)\n        create clone of (_myself_ v)\n    end\nend\n\n