neon 2 #Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Popsicle2 v] until done\nend\n\n@Player\n\nwhen flag clicked\nshow\nset size to (150) %\ngo to x: (-220) y: (-56)\nforever\n    Respawn program\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-1)\n        create clone of (_myself_ v)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x v] by (1)\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        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n            set [y v] to [15]\n        else\n            set [x v] to [0]\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y v] to [15]\n    end\n    change y by (1)\nend\n\ndefine Respawn program\nif <[230] < (x position)> then\n    go to x: (-220) y: (-56)\n    set [x v] to [0]\n    set [y v] to [0]\n    broadcast (next v)\nend\nif <(y position) < [-160]> then\n    go to x: (-220) y: (-56)\n    set [x v] to [0]\n    set [y v] to [0]\nend\nif <<touching (spike v)?> or <touching (lava v)?>> then\n    go to x: (-220) y: (-56)\n    set [x v] to [0]\n    set [y v] to [0]\nend\n\nwhen [timer v] > (0)\ngo to x: (-168) y: (-56)\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Ground\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    reset timer\n    if <(costume [number v]) = [10]> then\n        broadcast (goal v)\n    end\nend\n\nwhen I receive [next v]\nnext costume\n\nwhen [timer v] > (0)\nswitch costume to (1 v)\n\n@Spike\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next v]\nnext costume\n\nwhen [timer v] > (0)\nswitch costume to (1 v)\n\n@cooltext422707736044956\n\nwhen flag clicked\nhide\n\nwhen I receive [goal v]\nshow\n\nwhen [timer v] > (0)\nhide\n\n@cooltext422708184659163\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0)\nshow\n\n@Love fave\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (10) to (15)) seconds\n    switch costume to (costume1 v)\n    go to x: (0) y: (50)\n    show\n    go to [front v] layer\n    start sound [pop v]\n    repeat (9)\n        change y by (-6)\n    end\n    repeat (5)\n        change y by (3)\n    end\n    repeat (5)\n        change y by (-1)\n    end\n    wait (2) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\nend\n\nwhen [timer v] > (0)\nhide\n\n
新作!https://scratch.mit.edu/projects/775527501/\n使い方\n矢印キー、wasdキーで動かす\nUsage\nMove with arrow keys and wasd keys