Journey - A Scrolling Platformer #Games #All #Trending
@Stage\n\nwhen flag clicked\nforever\n    play sound [ultraviolet-infraction-main-version-01-37-19149 v] until done\nend\n\n@Player\n\nwhen flag clicked\nbroadcast (Play Game v) and wait\nbroadcast (Green Flag v) and wait\n\nwhen I receive [play game v]\nset [mijn variabele 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        CostumeL\n        CostumeR\n        broadcast (Tick v) and wait\n    end\n    if <(Exit) = [Die]> then\n        Game ~ Die\n    end\nend\n\ndefine Game On\nhide\nset [sx v] to [0]\nset [x v] to [-200]\nset [y v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset [jump v] to []\nshow\n\ndefine Tick\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [sx v] by (-1.8)\n    switch costume to (playerl v)\nelse\n    switch costume to (player v)\nend\nif <<key (right arrow v) pressed?> or > then\n    change [sx v] by (1.8)\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 > then\n    if <(In Air) < [4]> then\n        set [sy v] to [15]\n    end\nend\nif <(Sy) > [-20]> then\n    change [sy v] by (-2)\nend\nChange Player y by (Sy)\nTest ~ Die\nset [scroll x v] to (x)\nif <(Scroll X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (Scroll Y)) / (10)))\nif <(Scroll Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [Die]\nend\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\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\nif <touching (platforms v)?> then\n    repeat (12)\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 > then\n        if <(sx) > [0]> then\n            set [sx v] to [-15]\n        else\n            set [sx v] to [15]\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 Test ~ Die\nif <touching (danger v)?> then\n    set [exit v] to [Die]\nend\n\ndefine Game ~ Win\ngo to (exit v)\nchange [mijn variabele v] by (1)\nhide\n\nwhen I receive [1 v]\nset [x v] to [2350]\nset [y v] to [-10]\n\ndefine Game ~ Die\nstart sound [Die v]\nset [exit v] to []\nrepeat (5)\n    hide\n    wait (0.05) seconds\n    show\n    wait (0.05) seconds\nend\nhide\nwait (0.5) seconds\n\nwhen flag clicked\nset [scroll x v] to [0]\nwait until <(Scroll X) > [3696]>\nbroadcast (Done v)\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> or > then\n        if <(In Air) < [4]> then\n            play sound [Jump v] until done\n        end\n    end\nend\n\nforever\n\ndefine CostumeR\nif <key (right arrow v) pressed?> then\n    switch costume to (playerr v)\nelse\n    switch costume to (player v)\nend\n\ndefine CostumeL\n\n@Platforms\n\nwhen I receive [green flag v]\nshow\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 <(mijn variabele) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [300] y: [0]\n    Clone at x: [370] y: [0]\n    Clone at x: [630] y: [0]\n    Clone at x: [300] y: [0]\n    Clone at x: [280] y: [0]\n    Clone at x: [280] y: [0]\n    Clone at x: [500] y: [0]\n    Clone at x: [470] y: [0]\n    Clone at x: [470] y: [0]\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\n@Danger\n\nwhen I receive [green flag v]\nshow\n\nwhen I receive [tick v]\nPosition ((x) - (Scroll X)) ((y) - (Scroll Y))\n\nwhen I receive [setup v]\ngo to [back v] layer\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(mijn variabele) = [1]> then\n    switch costume to (1 1 v)\n    Clone at x: [100] y: [0]\n    Clone at x: [460] y: [0]\n    Clone at x: [100] y: [0]\n    Clone at x: [800] y: [0]\n    Clone at x: [300] y: [0]\n    Clone at x: [300] y: [0]\n    Clone at x: [300] y: [0]\n    Clone at x: [700] y: [0]\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)\nchange [x v] by (x)\nchange [y v] by (y)\ncreate clone of (_myself_ v)\nnext costume\n\nbroadcast (1 v)\n\n@Coins\n\nwhen I receive [green flag v]\nshow\n\nwhen I receive [tick v]\nPosition ((x) - (Scroll X)) ((y) - (Scroll Y))\nif <touching (player v)?> then\n    change [collected v] by (1)\n    start sound [Coin v]\n    delete this clone\nend\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(mijn variabele) = [1]> then\n    switch costume to (coin v)\n    Clone at x: [-50] y: [-35]\n    Clone at x: [20] y: [-35]\n    Clone at x: [90] y: [-35]\n    Clone at x: [385] y: [100]\n    Clone at x: [805] y: [-20]\n    Clone at x: [1055] y: [45]\n    Clone at x: [1290] y: [125]\n    Clone at x: [2350] y: [0]\n    Clone at x: [2990] y: [95]\n    Clone at x: [3205] y: [160]\n    Clone at x: [3425] y: [285]\nend\nset [x v] to [-99999]\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)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nchange [collected max v] by (1)\n\n@Blank\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n@You win\n\nwhen I receive [done v]\nshow\nswitch costume to ( v)\ncreate clone of (_myself_ v)\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I start as a clone\nswitch costume to (   v)\nset size to (1000) %\nswitch costume to (  v)\ngo to [front v] layer\nrepeat (200)\n    switch costume to (   v)\n    change size by (((100) - (size)) * (0.1))\n    switch costume to (  v)\nend\n\nwhen flag clicked\nhide\n\n
It's kinda generic but I did not know what I have to make. This is Jourey - A Scrolling Platformer. I just did a tutorial from griffpatch on Youtube. \n\nInstructions:\n- Move with the arrow keys, WASD.\n- Don't touch spikes.\n- Get coins.\n- ❤️ and ⭐️\n\n#Games #All