First Platformer || #games
@Stage\n\n@Sprite7\n\nwhen flag clicked\n\nwhen I receive [play v]\nrepeat (100000000000)\n    change [ghost v] effect by (3)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\nset [ghost v] effect to (0)\n\n@Sprite5\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\n\nshow\n\n@Sprite4\n\nwhen I receive [new level v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\ngo to [back v] layer\nshow\nswitch costume to (costume1 v)\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\nwhen I receive [new level v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\n\n@Sprite6\n\nwhen flag clicked\n\nwhen I receive [play v]\nrepeat (34)\n    change [ghost v] effect by (3)\nend\nset [hi! v] to [0]\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nstart sound [Kalimba v]\ngo to [front v] layer\nshow\nset [ghost v] effect to (10)\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (Play v)\n    end\nend\n\n@Sprite9\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nswitch costume to (costume1 v)\ngo to [front v] layer\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        change [hi! v] by (1)\n        broadcast (New Level v)\n        broadcast (Restart v)\n        wait (2) seconds\n    else\n        if <touching (mouse-pointer v)?> then\n            switch costume to (costume2 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\nend\n\nwhen flag clicked\n\n@Sprite10\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nswitch costume to (costume1 v)\ngo to x: (405) y: (33)\ngo to [front v] layer\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (Restart v)\n        wait (1) seconds\n    else\n        if <touching (mouse-pointer v)?> then\n            switch costume to (costume2 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\n\nwhen I receive [play v]\nset [hi! v] to [0]\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nswitch costume to (costume1 v)\nshow\ngo to x: (36) y: (28)\nset [ghost v] effect to (100)\nforever\n    if <(Hi!) = [11]> then\n        broadcast (Done v)\n        hide\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nwait (.01) seconds\nrepeat (7)\n    next costume\n    wait (.01) seconds\nend\nplay sound [Coin v] until done\nswitch costume to (costume9 v)\nplay sound [100 Megalovania v] until done\nbroadcast (Start Game v)\nhide\n\n@Sprite8\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-3)\nend\ndelete this clone\n\nwhen I receive [play v]\nhide variable [hi! v]\nset [hi! v] to [0]\nforever\n    if <touching (sprite3 v)?> then\n        change [hi! v] by (1)\n        go to x: (-182) y: (-73)\n        broadcast (New Level v)\n    end\nend\n\nwhen I receive [restart v]\ngo to x: (-204) y: (-55)\n\nwhen flag clicked\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\ngo to x: (-209) y: (-63)\nforever\n    change [xvel v] by ((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) + ((Xvel) * (-.1)))\n    change x by (Xvel)\n    change y by (my variable)\n    if <touching (sprite2 v)?> then\n        change y by ((-2) - (my variable))\n        set [my variable v] to ((<key (up arrow v) pressed?> * <touching (sprite2 v)?>) * (13))\n        change y by (2)\n    end\n    change [my variable v] by (-1)\n    if <touching (sprite2 v)?> then\n        change x by ((Xvel) * (-1))\n        set [xvel v] to ((<key (left arrow v) pressed?> - <key (right arrow v) pressed?>) * (5))\n    end\n    if <touching (sprite4 v)?> then\n        go to x: (-209) y: (-63)\n    end\nend\n\n
i took me a very very long time to make this so i hope it works and yeah\nand thanks @-emberanimations- for  the like the thing when it moves \n\non #games its 69 on trending :O