Rainformer -   Platformer

Instructions: 再共有です(本当の共有日：1/25\n報告乱用に勝ったのか...?\n❤と⭐を押せば無敵になれます！\n”Press ❤ and ⭐ to become invincible!\n今回はゾンビを動かすマインクラフトプラットフォーマー(4)を作りました！！\n❤と⭐、フォロー、拡散をよろしくお願いします。\n《操作方法》\n矢印キーまたはタップで操作します。\nスペースキーでマウスカーソルにゾンビの毒玉を撃ちます\n敵に当たると死にます()\n《クレジット》\nBGM：C418\nコスチューム：@kuri-pa-2\n参考：@zyo-ka-da

@Stage\n\nwhen flag clicked\nforever\n    if <<(LEVEL) = [4]> or <(LEVEL) = [5]>> then\n        switch backdrop to (bühnenbild1 v)\n    else\n        switch backdrop to (backdrop1 v)\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    show\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n@Sprite4\n\nwhen flag clicked\nswitch costume to (pixel_sound v)\ngo [backward v] (15) layers\nhide\nset [ghost v] effect to (30)\n\nwhen I receive [intro_finished v]\nshow\ngo [backward v] (5) layers\nwait (1) seconds\n\nwhen I receive [oof v]\nif <(costume [number v]) = [1]> then\n    play sound [ROBLOX Death Sound.mp3 v] until done\nend\n\nwhen this sprite clicked\nnext costume\nif <(costume [number v]) = [1]> then\n    play sound [Lights \[Dream Trance\]2 v] until done\nelse\n    if <(costume [number v]) = [2]> then\n        stop all sounds\n    end\nend\n\nplay sound [TheFatRat - Time Lapse v] until done\n\nwhen I receive [intro_finished v]\nshow\ngo [backward v] (5) layers\nwait (1) seconds\nrepeat until <(costume [number v]) = [2]>\n    play sound [Lights \[Dream Trance\]2 v] until done\nend\n\nset [pixelate v] effect to (0)\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen I receive [level up! v]\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\nrepeat (5)\n    change x by (-80)\nend\nhide\n\n@Sprite5\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [12]> then\n        show\n        point in direction ((([sin v] of ((timer) * (200)) ) * (3)) + (90))\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\n\n@Figur2\n\nwhen flag clicked\nrepeat (2)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\nforever\n    if <not <<(LEVEL) = [4]> or <(LEVEL) = [5]>>> then\n        switch costume to (pick random (1) to (4))\n        set size to (pick random (40) to (70)) %\n        go to [back v] layer\n        set [ghost v] effect to (30)\n        if <(pick random (1) to (2)) = [1]> then\n            show\n            go to x: (-200) y: (pick random (20) to (180))\n            repeat (220)\n                change x by (2)\n            end\n            hide\n            wait (pick random (1) to (5)) seconds\n        end\n        if <(pick random (1) to (2)) = [2]> then\n            show\n            go to x: (220) y: (pick random (20) to (180))\n            repeat (110)\n                change x by (-4)\n            end\n            hide\n            wait (pick random (1) to (5)) seconds\n        end\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<(LEVEL) = [4]> or <(LEVEL) = [5]>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (30)\n    end\nend\n\n@another_danger\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(LEVEL) = [5]> then\n        show\n        go to x: (0) y: (-110)\n    else\n        if <(LEVEL) = [8]> then\n            show\n            go to x: (100) y: (-80)\n        else\n            if <(LEVEL) = [11]> then\n                show\n                go to x: (180) y: (-90)\n            else\n                hide\n            end\n        end\n    end\nend\n\nrepeat (20)\n    change x by (5)\nend\nrepeat (20)\n    change x by (-5)\nend\n\nwhen I start as a clone\nwait (1) seconds\nforever\n    if <(LEVEL) = [5]> then\n        turn right (10) degrees\n        show\n        go to x: (150) y: (-110)\n    else\n        if <(LEVEL) = [11]> then\n            turn right (10) degrees\n            show\n            go to x: (100) y: (-90)\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [start v]\ncreate clone of (_myself_ v)\nforever\n    turn right (10) degrees\nend\n\nwhen flag clicked\nforever\n    if <not <<<(LEVEL) = [5]> or <(LEVEL) = [8]>> or <<(LEVEL) = [3]> or <(LEVEL) = [11]>>>> then\n        hide\n        set x to (0)\n    end\nend\n\nwait (1) seconds\n\nshow\ngo to x: (90) y: (40)\n\nhide\n\n@ground\n\nwhen flag clicked\ngo [forward v] (4) layers\nforever\n    switch costume to (LEVEL)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [intro_finished v]\nshow\n\n@shadows\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    switch costume to (LEVEL)\n    set [ghost v] effect to (50)\nend\n\nset [level v] to [7]\n\n@trampolins\n\nwhen flag clicked\nforever\n    if <touching (sprite6 v)?> then\n        switch costume to (kostüm2 v)\n        wait (0.2) seconds\n    else\n        switch costume to (kostüm1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [7]> then\n        go to x: (131) y: (-68)\n        show\n    else\n        if <(LEVEL) = [8]> then\n            go to x: (-90) y: (-68)\n            show\n        else\n            hide\n        end\n    end\nend\n\nif <(LEVEL) = [9]> then\n\nshow\nset x to (-70)\n\nwhen I start as a clone\nforever\n    if <touching (sprite2 v)?> then\n        switch costume to (kostüm2 v)\n        wait (0.1) seconds\n    else\n        switch costume to (kostüm1 v)\n    end\nend\n\nwhen flag clicked\n\nforever\n    \n        point in direction (90)\n        show\n        set y to ()\n        set x to (40)\n    else\n        hide\n    end\nend\n\nhide\n\ncreate clone of (_myself_ v)\n\n@Figur3\n\nwhen flag clicked\nwait (0.2) seconds\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        broadcast (start_idk v)\n        set size to (80) %\n        switch costume to (play_button_pixel_2 v)\n        repeat until <not <touching (mouse-pointer v)?>>\n            turn right (15) degrees\n            wait (0.1) seconds\n            turn left (15) degrees\n            wait (0.3) seconds\n        end\n    else\n        set size to (70) %\n        switch costume to (play_button_pixel v)\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nshow\ngo to [front v] layer\n\nwhen this sprite clicked\nbroadcast (start v)\nturn right (15) degrees\nrepeat (2)\n    turn right (15) degrees\n    change size by (-30)\n    change [ghost v] effect by (40)\nend\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [intro_finished v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [instructions_closed v]\nshow\n\nset [pixelate v] effect to (0)\n\n@Figur4\n\nwhen flag clicked\nshow\n\nwhen I receive [start v]\nhide\n\nwhen this sprite clicked\nhide\nbroadcast (instructions v)\n\nwhen I receive [instructions_closed v]\nshow\n\nwhen flag clicked\ngo to [front v] layer\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (80) %\n        switch costume to (costume1 v)\n        repeat until <not <touching (mouse-pointer v)?>>\n            turn right (15) degrees\n            wait (0.1) seconds\n            turn left (15) degrees\n            wait (0.3) seconds\n        end\n    else\n        set size to (70) %\n        switch costume to (pixel_info v)\n    end\nend\n\nwhen I receive [intro_finished v]\nshow\n\nset [pixelate v] effect to (0)\n\n@Figur8\n\nwhen flag clicked\nswitch costume to (kostüm12 v)\n\nwhen I receive [start v]\ngo [forward v] (10) layers\nforever\n    switch costume to (LEVEL)\nend\n\ngo to [front v] layer\n\nset [level v] to [7]\n\n@Figur6\n\nwhen I receive [instructions v]\ngo to [front v] layer\ngo [forward v] (1) layers\nshow\nrepeat (10)\n    change size by (12)\nend\nset size to (100) %\nforever\n    if <mouse down?> then\n        repeat (10)\n            change size by (-10)\n        end\n        hide\n        broadcast (instructions_closed v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\nset size to (10) %\n\nwhen flag clicked\n\n@Figur9\n\nwhen flag clicked\nshow\ngo [backward v] (3) layers\nforever\n    switch costume to (LEVEL)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [intro_finished v]\nshow\n\nwhen flag clicked\nbroadcast (Intro_finished v)\n\nset [pixelate v] effect to (0)\n\n@Sprite6\n\ndefine Platformer physics\nchange [yv v] by (-1)\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    change [xv v] by (-1)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [xv v] by (1)\nend\nset [xv v] to ((Xv) * (0.9))\nchange x by (Xv)\nif <<touching (ground v)?> or <touching (moving platforms v)?>> then\n    change y by (1)\nend\nif <<touching (ground v)?> or <touching (moving platforms v)?>> then\n    change y by (1)\nend\nif <<touching (ground v)?> or <touching (moving platforms v)?>> then\n    change y by (1)\nend\nif <<touching (ground v)?> or <touching (moving platforms v)?>> then\n    change y by (1)\nend\nif <<touching (ground v)?> or <touching (moving platforms v)?>> then\n    change y by (-4)\n    change x by ((Xv) * (-1))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n        set [yv v] to [15]\n        if <(Xv) > [0]> then\n            set [xv v] to [-10]\n        else\n            set [xv v] to [10]\n        end\n    end\nend\nchange y by (Yv)\nif <<touching (ground v)?> or <touching (moving platforms v)?>> then\n    change y by ((Yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> and <<touching (ground v)?> or <touching (moving platforms v)?>>> then\n    set [yv v] to [15]\nend\nchange y by (1)\nif <<touching (spikes v)?> or <touching (another_danger v)?>> then\n    if <not <(LEVEL) = [10]>> then\n        broadcast (oof v)\n        go to x: (-180) y: (0)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    else\n        if <[-3] > (Yv)> then\n            broadcast (enemy_killed v)\n            wait (0.2) seconds\n        else\n            broadcast (oof v)\n            go to x: (-180) y: (0)\n            set [xv v] to [0]\n            set [yv v] to [0]\n        end\n    end\nend\nif <(y position) < [-160]> then\n    go to x: (-180) y: (0)\n    set [xv v] to [0]\n    set [yv v] to [0]\nend\nif <(x position) > [220]> then\n    broadcast (LEVEL UP! v)\n    change [level v] by (1)\n    hide\n    go to x: (-180) y: (0)\n    wait (0.8) seconds\n    show\nend\nif <touching (trampolins v)?> then\n    set [yv v] to [25]\nend\n\nwhen flag clicked\nset [level v] to [7]\ngo to x: (107) y: (-83)\nswitch costume to (pixel_character v)\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n        point in direction (-90)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo [forward v] (55) layers\nshow\nset [level v] to [1]\ngo to x: (-180) y: (0)\nforever\n    Platformer physics\nend\n\npoint towards (mouse-pointer v)\n\npoint in direction (90)\n\nset [pixelate v] effect to (0)\n\nswitch costume to (costume1 v)\n\nset [pixelate v] effect to (0)\n\n@moving platforms\n\nwhen flag clicked\nhide\ngo to x: (-20) y: (-70)\nforever\n    if <(LEVEL) = [6]> then\n        show\n        repeat (30)\n            change x by (5)\n        end\n        repeat (30)\n            change x by (-5)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [6]> then\n        show\n    else\n        hide\n    end\nend\n\nchange y by (4)\n\nchange y by (-4)\n\n@Spikes\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [10]> then\n        set rotation style [left-right v]\n        point in direction (90)\n        set x to (0)\n        repeat (40)\n            change x by (5)\n        end\n        point in direction (-90)\n        repeat (40)\n            change x by (-5)\n        end\n    else\n        point in direction (90)\n        set x to (19)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [intro_finished v]\nforever\n    switch costume to (LEVEL)\n    if <not <(LEVEL) = [10]>> then\n        set [ghost v] effect to (0)\n        show\n        set y to (-104)\n    end\nend\n\nwhen I receive [enemy_killed v]\nif <(LEVEL) = [10]> then\n    repeat (6)\n        change y by (-10)\n    end\n    hide\nelse\n    set [ghost v] effect to (0)\nend\n\nset [level v] to [7]\n\nglide (1.7) secs to x: (200) y: (-104)\nglide (1.7) secs to x: (0) y: (-104)\n\nset [pixelate v] effect to (0)\n\n@...\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen I receive [intro_finished v]\ngo to [front v] layer\nshow\nforever\n    point in direction ((([sin v] of ((timer) * (150)) ) * (3)) + (90))\nend\n\nwhen I receive [start v]\nhide\n\n