避けるplatformer 

Instructions: Easy. Use the up to jump and the arrows to move.\nDon't touch spikes or lava.\nAdded background\n73 levels\nCan you collect all 10 coins?

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nset [the level v] to [1]\nforever\n    switch backdrop to (The Level)\nend\n\n@Blank\n\n@Player\n\nwhen flag clicked\nhide\nforever\n    play sound [Calm song v] until done\nend\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [ghost v] effect to (0)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (40)\n\nwhen I receive [rainbow color v]\nforever\n    if <touching (particles v)?> then\n        forever\n            set [player rainbow v] to [true]\n            change [color v] effect by (1)\n        end\n    end\nend\n\nwhen flag clicked\nset [the level v] to [1]\nbroadcast (Next Level v)\nhide\ngo to x: (-210) y: (20)\nshow\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\n    if <touching color (#21b300)?> then\n        change y by (1)\n    end\n    if <touching color (#21b300)?> then\n        change y by (1)\n    end\n    if <touching color (#21b300)?> then\n        change y by (1)\n    end\n    if <touching color (#21b300)?> then\n        change y by (1)\n    end\n    if <touching color (#21b300)?> then\n        change y by (-4)\n        change x by ((X Velocity) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching color (#21b300)?> then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [y velocity v] to [0]\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            if <not <color (#0c0000) is touching (#21b300)?>> then\n                switch costume to (player v)\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching color (#21b300)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [the level v] by (1)\n    end\n    if <touching color (#b9b9b9)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        broadcast (Reset v)\n    else\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            if <not <color (#0c0000) is touching (#21b300)?>> then\n                switch costume to (player v)\n            end\n        end\n    end\n    if <touching (particles v)?> then\n        set [color v] effect to (player color effect)\n    end\n    if <key (space v) pressed?> then\n        if <not <(The Level) = [11]>> then\n            broadcast (Next Level v)\n            change [the level v] by (1)\n            wait until <not <key (space v) pressed?>>\n        end\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nset [thumbnail ready v] to [false]\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\n\nwhen flag clicked\nset [thumbnail ready v] to [true]\nshow\nwait (2) seconds\ngo to x: (0) y: (0)\nbroadcast (start v)\nhide\ngo to [front v] layer\nclear graphic effects\n\n@particles\n\nwhen I start as a clone\nshow\nset [player color effect v] to (pick random (1) to (100))\nset [rainbow color v] to (pick random (1) to (200))\nif <(rainbow color) = [50]> then\n    broadcast (rainbow color v)\nend\nswitch costume to (costume1 v)\nset [color v] effect to (player color effect)\ngo to x: (pick random (-180) to (180)) y: (180)\nrepeat until <touching color (#21b300)?>\n    change y by (-10)\nend\nrepeat (3)\n    next costume\n    wait (0.1) seconds\nend\ndelete this clone\n\nwhen I receive [rainbow color v]\nforever\n    change [color v] effect by (10)\nend\n\nwhen flag clicked\nhide\nset [player rainbow v] to [false]\nset [rainbow color v] to [0]\nset [player color effect v] to [0]\nforever\n    wait (pick random (5) to (10)) seconds\n    if <not <(player rainbow) = [true]>> then\n        create clone of (_myself_ v)\n    end\nend\n\n@notification\n\nwhen flag clicked\nhide\nset [ghost v] effect to (0)\nforever\n    if <(player rainbow) = [true]> then\n        show\n        wait (6) seconds\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\n