City | Scrolling Platformer #Games #all
@Stage\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nstop all sounds\n\nwhen I receive [play game v]\nforever\n    play sound [Treenan v] until done\nend\n\n@g\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    start game\n    broadcast (reset v) and wait\n    broadcast (setup v) and wait\n    repeat until <(EXIT) > []>\n        tick\n        broadcast (TICK v) and wait\n    end\n    Game-death\nend\n\ndefine start game\npoint in direction (90)\nset [sx v] to [0]\nset [x v] to [-50]\nset [y v] to [20]\nset [sy v] to [0]\nset [scroll y v] to [100]\nset [in air v] to [0]\nset [exit v] to []\nset [scroll x v] to [-50]\nclear graphic effects\nshow\n\ndefine tick\nif <key (left arrow v) pressed?> then\n    change [sx v] by (-2)\nend\nif <key (right arrow v) pressed?> then\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?> then\n    if <(in air) < [3]> then\n        change [sy v] by (9)\n    end\nend\nchange [sy v] by (-2)\nchange player y by (sy)\ntest-death?\nchange [scroll x v] by (round (((x) - (SCROLL X)) / (5)))\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by ((round (((y) - (SCROLL Y)) / (5))) + (0))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nposition\nif <(y) < [-180]> then\n    set [exit v] to [f]\n    play sound [Oops v] until done\nend\nif <touching (end v)?> then\n    broadcast (WIN v)\nend\nif <touching (fan v)?> then\n    change [sy v] by (7)\nend\n\ndefine change player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nposition\nrepeat until <not <<touching (platform v)?> or <touching (lift 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\nif <<touching (platform v)?> or <touching (lift v)?>> then\n    repeat (12)\n        change [y v] by (1)\n        position\n        if <not <<touching (platform v)?> or <touching (lift v)?>>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    repeat until <not <<touching (platform v)?> or <touching (lift 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 []\nset [lift \(animation\) v] to [10]\nrepeat (20)\n    change y by (lift \(animation\))\n    turn right (18) degrees\n    change [lift \(animation\) v] by (-1)\n    change [ghost v] effect by (5)\nend\nwait (0.5) seconds\n\ndefine test-death?\nif <touching (danger v)?> then\n    set [exit v] to [ow]\n    start sound [ow v]\nend\n\nset [exit v] to [0]\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\n\n@platform\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\npostion ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nwait (0.1) seconds\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\ncreate clone of (_myself_ v)\nswitch costume to (level 1 2 v)\nchange [x v] by (480)\ncreate clone of (_myself_ v)\nswitch costume to (level 1 3 v)\nchange [x v] by (480)\ncreate clone of (_myself_ v)\nswitch costume to (level 1 4 v)\nchange [x v] by (480)\ncreate clone of (_myself_ v)\nswitch costume to (level 1 5 v)\nchange [x v] by (480)\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\nchange [x v] by (480)\ncreate clone of (_myself_ v)\n\ndefine postion (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\nwhen I receive [win v]\nstop [other scripts in sprite v]\n\n@deco\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\npostion ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine postion (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\nif <(costume [number v]) = [3]> then\n    set [y v] to ((lift y) + (35))\nend\n\nwhen I receive [setup v]\npoint in direction (90)\nset [x v] to [-40]\nset [y v] to [30]\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nchange [x v] by (476)\nchange [y v] by (50)\nswitch costume to (costume5 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nchange [y v] by (300)\nchange [x v] by (200)\nswitch costume to (costume6 v)\ncreate clone of (_myself_ v)\nset [x v] to [2268]\nset [y v] to [40]\nturn right (15) degrees\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\n\nchange [x v] by (800)\nchange [y v] by (-30)\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\nset [x v] to [2155]\nset [y v] to [370]\nswitch costume to (costume4 v)\n\n@Sprite3\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@danger\n\nwhen I receive [setup v]\nshow\nset [x v] to [90]\nset [y v] to [150]\nswitch costume to (1 v)\ncreate clone of (_myself_ v)\nset [x v] to [1650]\nset [y v] to [23]\nswitch costume to (2 v)\ncreate clone of (_myself_ v)\nset [x v] to [9999]\n\nset [x v] to [775]\nset [y v] to [17]\nswitch costume to (4 v)\ncreate clone of (_myself_ v)\nset [x v] to [1526]\nset [y v] to [260]\nswitch costume to (2 v)\ncreate clone of (_myself_ v)\nset [x v] to [1756]\nset [y v] to [365]\nswitch costume to (3 v)\n\nwhen I receive [tick v]\npostion ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine postion (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 [green flag v]\nhide\n\nchange [x v] by (481)\nnext costume\n\nwhen I receive [reset v]\nhide\ndelete this clone\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\n\n@W\n\nwhen flag clicked\nhide\n\nwhen I receive [win v]\nwait (0.3) seconds\ngo to [front v] layer\nshow\nset [shake v] to (pick random (-50) to (50))\nset [shake y v] to (pick random (-50) to (50))\nstart sound [Win v]\nrepeat (20)\n    go to x: (shake) y: (shake y)\n    set [shake v] to ((shake) / (-1.2))\n    set [shake y v] to ((shake y) / (-1.2))\nend\n\n@End\n\nwhen I receive [setup v]\nset [x v] to [2396]\nset [y v] to [85]\nshow\n\nwhen I receive [tick v]\npostion ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine postion (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 [green flag v]\nhide\n\nwhen I receive [reset v]\nhide\ndelete this clone\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\n\nwhen I receive [play game v]\nshow\n\n@lift\n\ndefine postion (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\nif <(lift y) < [220]> then\n    change y by (1)\n    if <touching (g v)?> then\n        change [lift y v] by (5)\n    end\n    change y by (-1)\nend\nif <(x) = [670]> then\n    set [debug v] to (distance to [g v])\nend\nif <(debug) > [75]> then\n    if <(lift y) > [38]> then\n        change [lift y v] by (-2)\n    end\nend\n\nwhen I receive [setup v]\nset [x v] to [670]\nset [lift y v] to [38]\nswitch costume to (level 1 1 v)\nshow\n\ncreate clone of (_myself_ v)\n\nset [x v] to [99999999999]\nhide\n\nwhen I receive [tick v]\npostion ((x) - (SCROLL X)) ((lift y) - (SCROLL Y))\n\nswitch costume to (level 1 2 v)\nchange [x v] by (480)\ncreate clone of (_myself_ v)\nswitch costume to (level 1 3 v)\nchange [y v] by (165)\ncreate clone of (_myself_ v)\n\nwhen I receive [green flag v]\nhide\n\n@intro\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\npoint in direction (90)\nhide\nset [id v] to [0]\ncreate clone of (_myself_ v)\nchange [id v] by (1)\ncreate clone of (_myself_ v)\nshow\nswitch costume to (costume1 v)\nbroadcast (Green Flag v) and wait\n\nwhen I start as a clone\nif <(id) = [0]> then\n    show\n    switch costume to (costume2 v)\n    go to [back v] layer\nelse\n    show\n    switch costume to (costume3 v)\n    set [ghost v] effect to (30)\n    go to [front v] layer\n    go to x: (-200) y: (0)\n    turn right (50) degrees\n    start sound [Low Whoosh v]\n    repeat (25)\n        change x by (20)\n    end\n    hide\n    broadcast (Play Game v) and wait\nend\n\nwhen I receive [play game v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@fan\n\ndefine postion (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 [x v] to [1171]\nset [y v] to [38]\nswitch costume to (level 1 1 v)\nshow\n\ncreate clone of (_myself_ v)\nhide\n\nset [x v] to [99999999999]\n\nwhen I receive [tick v]\npostion ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nswitch costume to (level 1 2 v)\nchange [x v] by (480)\ncreate clone of (_myself_ v)\nswitch costume to (level 1 3 v)\nchange [y v] by (165)\ncreate clone of (_myself_ v)\n\nwhen I receive [green flag v]\nhide\n\n
City\n\n#15 in games! thank you so much <3 (trending unfroze???)\n#14 in tutorials tysm!\nWhat the community is loving? Wow!\nSince this is getting alot of negative comments, if you have something important to say, comment on my profile.\n➤ many hours \n\n➤ inspired by Megapolis by @Alolex1\n\n➤ A lil teaser, it's not meant to be difficult.\n\nUpdate log:\n15th Nov 2022 \nreleased & added an Easter egg (play in full screen to find it)\n\n don't scroll down\n\n\n\n\n\nif you scroll down you have to do something...\n\n\n\n\n\n\n\n\n\n\n\ncan't say I didn't warn you..\n\n\n\n\n\n\n\n\n\nYou have to like and favourite now hehe >:)