Scrolling Platformer Template Uncolored
@Stage\n\nwhen [m v] key pressed\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [, ] ((mouse y) + (SCROLL Y))))\nshow variable [mouse v]\n\nwhen flag clicked\nforever\n    play sound [Arp Bounce - Geographer _ Royalty Free Music - No Copyright Music v] until done\nend\n\n@Player\n\nwhen flag clicked\nswitch costume to (forward v)\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(Exit) > []>\n        Tick\n        set [scroll x v] to (X)\n        Position\n        broadcast (Tick v)\n    end\n    if <(Exit) = [w i n]> then\n        Game- WIN HOORAY\n    else\n        Game- Death :(\n    end\nend\n\ndefine Game On\nset [x v] to [0]\nset [y v] to [0]\nset [sy v] to [0]\nset [sx v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset size to (100) %\nset [ghost v] effect to (0)\npoint in direction (90)\nshow\n\ndefine Tick\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n    switch costume to (left v)\n    change [sx v] by (-2)\nend\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    switch costume to (right v)\n    change [sx v] by (2)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player X By (round (sx))\nend\nif <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n    if <(In Air) < [5]> then\n        set [sy v] to [16]\n    end\nend\nchange [sy v] by (-2)\nChange Player Y By (sy)\nset [scroll x v] to (X)\nPosition\nif <(Y) < [-180]> then\n    set [exit v] to [dieeee]\nend\n\ndefine Change Player Y By (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nTest- Death :(\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Position\ngo to x: ((X) - (SCROLL X)) y: ((Y) - (SCROLL Y))\n\ndefine Change Player X By (sx)\nchange [x v] by (sx)\nPosition\nTest- Death :(\nif <touching (platforms v)?> then\n    repeat (8)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game- Death :(\nset [exit v] to []\nplay sound [Hit v] until done\nrepeat (26)\n    change [ghost v] effect by (4)\nend\n\ndefine Test- Death :(\nif <<touching color (#ff0000)?> or <touching (lava v)?>> then\n    set [exit v] to [dieeee]\nend\n\ndefine Game- WIN HOORAY\nrepeat (50)\n    go to (exit v)\n    move ((distance to [exit v]) / (2)) steps\n    turn right (16) degrees\n    change size by (-1.1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    show\nend\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((Y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [500] y: [0]\n    Clone at x: [500] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [500] y: [0]\n        Clone at x: [550] y: [0]\n        Clone at x: [634] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [500] y: [0]\n            Clone at x: [550] y: [0]\n            Clone at x: [634] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (game end v)\n                Clone at x: [500] y: [0]\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\ncreate clone of (_myself_ v)\nchange [x v] by (450)\nnext costume\ncreate clone of (_myself_ v)\nchange [x v] by (450)\nnext costume\n\n@Coins\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    start sound [Coin v]\n    change [collected v] by (1)\n    change [coin total v] by (1)\n    if <(Collected) = (Max Collected)> then\n        broadcast (Portal open v)\n    end\n    delete this clone\nend\n\nwhen I receive [setup v]\nhide\nset [ghost v] effect to (0)\nset size to (100) %\nset [y v] to [0]\nset [x v] to [0]\nset [collected v] to [0]\nset [max collected v] to [0]\nif <(LEVEL) = [1]> then\n    wait (0) seconds\n    Clone x: [0] y: [30]\n    Clone x: [650] y: [100]\n    Clone x: [970] y: [60]\nelse\n    if <(LEVEL) = [2]> then\n        wait (0) seconds\n        Clone x: [180] y: [130]\n        Clone x: [615] y: [130]\n        Clone x: [630] y: [200]\n    else\n        if <(LEVEL) = [3]> then\n            wait (0) seconds\n            Clone x: [300] y: [50]\n            Clone x: [600] y: [170]\n            Clone x: [930] y: [50]\n            Clone x: [950] y: [400]\n            Clone x: [1400] y: [400]\n            change [max collected v] by (-2)\n        else\n            if <(LEVEL) = [4]> then\n        end\n    end\nend\nset [y v] to [-99999999999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone x: (x) y: (y)\nset [ghost v] effect to (0)\nset size to (100) %\nset [x v] to (x)\nset [y v] to (y)\nchange [max collected v] by (1)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [coin total v] to [0]\nhide\n\n@Exit\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((X) - (SCROLL X)) ((Y) - (SCROLL Y))\nif <<(costume [name v]) = [Open]> and <touching (player v)?>> then\n    set [exit v] to [w i n]\nend\n\nwhen I receive [setup v]\nswitch costume to (closed v)\nhide\nset [collected v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [1594] y: [58]\nelse\n    Clone at x: [2129] y: [60]\nend\nif <(LEVEL) = [3]> then\n    Clone at x: [2181] y: [65]\nend\nif <(LEVEL) = [4]> then\n    Clone at x: [1000000000000000000000000000] y: [60]\nend\n\ncreate clone of (_myself_ v)\nchange [x v] by (450)\nnext costume\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [portal open v]\nswitch costume to (open v)\n\n@Lava\n\nwhen I start as a clone\ngo [backward v] (1) layers\nforever\n    set [y v] to (([sin v] of ((timer) * (100)) ) * (10))\nend\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nset [y v] to [0]\nset [x v] to [0]\nrepeat (20)\n    Position x: [450] y: [0]\nend\n\ndefine Position x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\n@No Lag\n\n@No Lag2\n\n@Skippppp\n\nwhen this sprite clicked\nset [exit v] to [w i n]\n\n@No Lag3\n\n
Hi!!!! So, this is a scrolling platformer template/engine. You can just play this game for fun, or you can remix it and add your own things. Redesign it, change the colors, add transitions, add an intro- the list goes on and on! Just use your creativity, I can't wait to see what you all come up with!!!\n\nDon't forget to love, fave, and follow!!!! Thanks!!\n\nHave a great day!\nLove,\nTropicalCoder13\n\n\nThanks to @-Diamondfox- for loving!!!!!!!!