- GrassLand - Platformer ( #2 )

Instructions: Collab with @tomato421\nhttps://scratch.mit.edu/projects/440143615\nフォロー♡☆おねがいします！＾＾

@Stage\n\nwhen flag clicked\nforever\n    play sound [まうふぃん3 v] until done\nend\n\n@Player\n\ndefine Spin off screen\nset rotation style [all around v]\nset [player death v] to [1]\nset [y v v] to [15]\nrepeat until <(y position) < [-178]>\n    go to [front v] layer\n    turn right (10) degrees\n    change y by (Y v)\n    change [y v v] by (-1)\nend\nset [player death v] to [0]\ngo to [back v] layer\nset rotation style [left-right v]\npoint in direction (90)\ngo [forward v] (3) layers\ngo to [front v] layer\n\nnext backdrop\n\nwhen I start as a clone\nclear graphic effects\nset size to (100) %\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen flag clicked\ngo [forward v] (10) layers\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nreset timer\nswitch costume to (1 v)\nswitch backdrop to (2 v)\nshow\nforever\n    change y by (1)\n    change [y v] by (-1)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > [1]> and <mouse down?>>> then\n        change [x v] by (1)\n        point in direction (90)\n        create clone of (_myself_ v)\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < [-1]> and <mouse down?>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((X) * (-1))\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <<(mouse y) > [50]> and <mouse down?>>> 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 [y v] to [0]\n        end\n    end\n    change y by (Y)\n    if <touching (ground v)?> then\n        change y by ((0) - (Y))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> and <touching (ground v)?>> or <<mouse down?> and <<touching (ground v)?> and <(mouse y) > [50]>>>> then\n        start sound [ジャンプ v]\n        set [y v] to [15]\n        create clone of (_myself_ v)\n    end\n    if <touching (spike v)?> then\n        Spin off screen\n    else\n        if <[-166] > (y position)> then\n            go to x: (-199) y: (-50)\n        end\n    end\n    if <touching color (#ffff00)?> then\n        start sound [smw_spring_jump @ToadfanSchool v]\n        set [y v] to [23]\n        create clone of (_myself_ v)\n        broadcast (アニメーション v)\n    end\n    if <(Level) = [8]> then\nend\n\nwhen flag clicked\ngo [forward v] (3) layers\ngo to x: (-206) y: (-50)\nset rotation style [left-right v]\npoint in direction (90)\nset size to (100) %\nset [x v] to [0]\nset [y v] to [0]\nshow\n\n@Ground\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\ngo to x: (0) y: (0)\ngo [forward v] (5) layers\nforever\n    switch costume to (Stage)\nend\n\nwhen flag clicked\nset [stage v] to [1]\n\nwhen I receive [goal v]\nchange [stage v] by (1)\n\nwhen flag clicked\nforever\n    set [level v] to (costume [number v])\nend\n\n@transition\n\nwhen flag clicked\nhide\n\nwhen I receive [goal v]\nset [trans on or off v] to [On]\ngo [forward v] (1) layers\ngo to [front v] layer\nset x to (500)\nshow\nrepeat (6)\n    change x by (-80)\nend\nchange x by (-15)\nwait (0.6) seconds\nset [trans on or off v] to [Off]\nrepeat (5)\n    change x by (-80)\nend\nhide\n\n@sun\n\nwhen flag clicked\nhide\ngo to x: (-5) y: (-25)\nset size to (100) %\nset [sun suze v] to [100]\nforever\n    change size by ([cos v] of (Sun Suze) )\n    change [sun suze v] by (7)\nend\n\nwhen flag clicked\nforever\n    if <<<<<(Stage) = [7]> or <(Stage) = [8]>> or <(Stage) = [9]>> or <(Stage) = [10]>> or <(Stage) = [11]>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nshow\n\n@スプライト1\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\n\n@Decoration\n\nwhen flag clicked\nshow\ngo to [back v] layer\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\n@Spike\n\nwhen flag clicked\nswitch costume to (コスチューム3 v)\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nhide\nshow\nswitch costume to (コスチューム1 v)\n\nwhen I receive [goal v]\nwait (0.5) seconds\nnext costume\n\n