◀︎ Sunny▶︎  a Platformer
@Stage\n\nwhen flag clicked\nforever\nend\n\nplay sound [music v] until done\n\n@プレイヤー\n\ndefine 初期位置\ngo to x: (-200) y: (-50)\nset [x v] to [0]\nset [y v] to [0]\n\ndefine 動く\nset rotation style [left-right v]\nif <<<[0] < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n    change [x v] by (1)\n    point in direction (90)\nend\nif <<<(mouse x) < [0]> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n    change [x v] by (-1)\n    point in direction (-90)\nend\nset [x v] to ((x) * (0.89))\nchange x by (x)\nrepeat (6)\n    if <touching (地面 v)?> then\n        change y by (1)\n    end\nend\nif <touching (地面 v)?> then\n    change y by (-6)\n    change x by ((0) - (x))\n    if <<<[50] < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        start sound [壁キック v]\n        if <(x) > [0]> then\n            set [x v] to [-5]\n        else\n            set [x v] to [5]\n        end\n        set [y v] to [10]\n    else\n        set [x v] to [0]\n    end\nend\nchange [y v] by (-1)\nchange y by (y)\nif <touching (地面 v)?> then\n    change y by ((0) - (y))\n    set [y v] to [0]\nend\nchange y by (-3)\nif <<touching (地面 v)?> and <<<[50] < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>>> then\n    start sound [Jump v]\n    set [y v] to [15]\nend\nchange y by (3)\n\nwhen flag clicked\ngo to [front v] layer\n初期位置\nforever\n    動く\n    障害物とゴール\nend\n\ndefine 障害物とゴール\nif <touching (ゴール v)?> then\n    start sound [Coin v]\n    初期位置\n    broadcast (次のステージへ v)\nend\nif <touching (障害物 v)?> then\n    start sound [Crunch v]\n    初期位置\nend\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        next costume\n        wait () seconds\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\n    change [brightness v] effect by (10)\nend\ndelete this clone\n\n@地面\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    if <(costume [number v]) = [12]> then\n        broadcast (OUTRO v)\n    end\nend\n\nwhen I receive [次のステージへ v]\nnext costume\n\n@太陽\n\nwhen flag clicked\nset size to (70) %\nshow\nswitch costume to (太陽 v)\ncreate clone of (_myself_ v)\nswitch costume to (光 v)\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\ngo to x: (220) y: (160)\nif <(costume [number v]) = [1]> then\n    go to [front v] layer\nelse\n    if <(costume [number v]) = [2]> then\n        set [ghost v] effect to (50)\n        forever\n            turn right (1) degrees\n        end\n    end\nend\n\n@障害物\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [次のステージへ v]\nnext costume\n\n@ゴール\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [次のステージへ v]\nnext costume\n\n@ゲームオーバー\n\nwhen I receive [outro v]\nshow variable [☁ 世界記録 v]\nshow variable [time v]\nif <(time) < (☁ 世界記録)> then\n    set [☁ 世界記録 v] to (time)\nend\ngo to [front v] layer\nshow\nstop [other scripts in sprite v]\nplay sound [akaifuusen v] until done\n\nwhen flag clicked\nreset timer\n\nwhen flag clicked\nforever\n    set [time v] to (timer)\nend\n\nwhen flag clicked\nhide variable [☁ 世界記録 v]\nhide variable [time v]\nhide\n\n@サムネイル\n\nwhen flag clicked\nshow variable [time v]\ngo to [front v] layer\nset [ghost v] effect to (100)\n\nwhen I receive [outro v]\n\nwhen flag clicked\nforever\n    show variable [time v]\nend\n\n@entry\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    next costume\n    set x to (-200)\n    wait (1) seconds\n    show\n    start sound [ポップ v]\n    repeat (100)\n        change x by (((0) - (x position)) / (10))\n    end\n    repeat (20)\n        change x by (((-200) - (x position)) / (10))\n    end\n    hide\n    wait (5) seconds\nend\n\n@雲\n\nwhen I start as a clone\nset [ghost v] effect to (pick random (0) to (50))\nshow\nforever\n    repeat until <(x position) < [-240]>\n        change x by (-1)\n    end\n    go to x: (250) y: (pick random (140) to (155))\n    set size to (pick random (30) to (38)) %\nend\n\nwhen flag clicked\nforever\n    hide\n    repeat (3)\n        go to x: (250) y: (pick random (140) to (155))\n        set size to (pick random (30) to (38)) %\n        switch costume to (pick random (1) to (3))\n        create clone of (_myself_ v)\n        wait (pick random (5) to (8)) seconds\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\nhide\n\n
Das habe ich verändert:\n\n-Schatten der Figur\n-Variable Übersetzt \n-Besseres Design\n-Ohne Musik \nmore coming by 20 Likes