Train Heist - Platformer  #games         
@Stage\n\nwhen flag clicked\nset volume to (100) %\n\nforever\nend\n\nplay sound [Music v] until done\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\n\n@Player\n\nwhen flag clicked\nwait (.5) seconds\nshow\ngo to [front v] layer\nset [y v] to [0]\ngo to x: (-199) y: (-38)\nset rotation style [left-right v]\nforever\n    if <touching color (#000000)?> then\n        set [y v] to [0]\n        if <key (up arrow v) pressed?> then\n            set [y v] to [11]\n            change y by (Y)\n        end\n    end\n    if <not <touching color (#000000)?>> then\n        change [y v] by (-1)\n        change y by (Y)\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        change x by (6)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        change x by (-6)\n    end\n    if <touching color (#b41212)?> then\n        if <key (right arrow v) pressed?> then\n            change x by (-6)\n        end\n        if <key (left arrow v) pressed?> then\n            change x by (6)\n        end\n        if <(Y) > [0]> then\n            change [y v] by ((Y) * (-1))\n        end\n    end\n    if <touching color (#ffffff)?> then\n        start sound [Collect v]\n        broadcast (Next v)\n        go to x: (-199) y: (-44)\n    end\n    if <touching color (#969696)?> then\n        start sound [Crunch v]\n        go to x: (-199) y: (-44)\n    end\n    if <touching (gold v)?> then\n        broadcast (End v)\n        hide\n        stop [this script v]\n    end\nend\n\n@Train\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [end v]\nhide\n\n@Moving BackDrop\n\nwhen flag clicked\nshow\ngo to x: (0) y: (70)\nforever\n    change x by (-10)\n    if <(x position) < [-556]> then\n        go to x: (541) y: (70)\n    end\nend\n\nwhen I receive [end v]\ngo to [back v] layer\n\n@Moving BackDrop2\n\nwhen flag clicked\ngo to x: (541) y: (70)\nhide\nwait (.5) seconds\nshow\nforever\n    change x by (-10)\n    if <(x position) < [-556]> then\n        go to x: (541) y: (70)\n    end\nend\n\nwhen I receive [end v]\ngo to [back v] layer\n\n@Gold\n\nwhen flag clicked\nforever\n    go to x: (172) y: (-111)\n    if <([costume # v] of [train v]) = [10]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@You\n\nwhen I receive [end v]\nswitch costume to (normal v)\nshow\nrepeat (40)\n    change x by (5)\nend\n\nwhen flag clicked\nhide\ngo to x: (-203) y: (32)\n\n@Cutscene Background\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [end v]\nshow\n\n@Speak\n\nwhen flag clicked\nhide\ngo to x: (-5) y: (-139)\n\nwhen I receive [end v]\nwait (1) seconds\nshow\nwait (6) seconds\nbroadcast (Lkei it? v)\n\n@Fade\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nset [ghost v] effect to (100)\n\nwhen I receive [lkei it? v]\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    go to x: (0) y: (0)\nend\n\n
This is my another game. It is platformer game where the man heists the train.\nPlay and Enjoy:) \n\nINSTRUCTIONS___\n*Avoid spikes \n* Avoid falling under train if happens\n*Get to the end \n\nCONTROLS__\n[Arrow keys] to move\n[up arrow] to jump\n\n\n\n\n\n\n