Mystic Valley || multiplayer platformer   #games #stratfordjames
@Stage\n\nwhen flag clicked\nswitch backdrop to (tutorial {2} v)\nrepeat (10)\n    play sound [Village Vibe \(online-audio-converter v] until done\nend\n\n@Level\n\nwhen I receive [tick v]\ngo to x: (0) y: (0)\nswitch costume to (LEVEL)\n\nwhen flag clicked\nshow\n\n@Sprite1\n\nwhen flag clicked\nhide\n\n@Player\n\nwhen flag clicked\nshow\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    Reset\n    repeat until <(EXIT) > []>\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [die]> then\nend\n\nwhen I receive [tick v]\nTick\n\ndefine Tick\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <(in air) < [4]>> then\n    set [yv v] to [12]\nend\nif <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n    change [xv v] by (-2)\n    point in direction (-90)\nelse\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [xv v] by (2)\n        point in direction (90)\n    end\nend\nif <(yv) > [-12]> then\n    change [yv v] by (-1)\nend\nMove Y (yv)\nMove X (xv)\nset [xv v] to ((xv) * (.8))\nif <touching (danger v)?> then\n    set [exit v] to [die]\nend\nif <(x position) > [230]> then\n    set [exit v] to [win]\nend\n\ndefine Reset\ngo to x: (-200) y: (-75)\npoint in direction (90)\nset [exit v] to []\n\ndefine Move Y (y)\nchange [in air v] by (1)\nchange y by (y)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        if <(yv) > [0]> then\n            change y by (-1)\n        else\n            change y by (1)\n        end\n    end\n    set [yv v] to [0]\n    change y by (-5)\n    if <touching (level v)?> then\n        set [in air v] to [0]\n    end\n    change y by (5)\nend\n\ndefine Move X (x)\nchange x by (x)\nif <touching (level v)?> then\n    repeat (10)\n        change y by (1)\n        if <not <touching (level v)?>> then\n            stop [this script v]\n        end\n    end\n    change y by (-10)\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        if <(x) > [0]> then\n            set [xv v] to [-16]\n        else\n            set [xv v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [xv v] to [0]\n    end\n    set [n v] to [0]\n    repeat until <<not <touching (level v)?>> or <(n) = [50]>>\n        if <(x) > [0]> then\n            change x by (-1)\n        else\n            change x by (1)\n        end\n        change [n v] by (1)\n    end\nend\n\nwhen flag clicked\nshow\n\n
The grassland ◈ A mulitplayer platformer\n\nArrow keys or tap (mobile) to move\nDon't fall into the water\n\nto chat, press t and then select one of the 11 phrases\n\nas long as you are not "New Scratcher" you can see other players and chat with them\n\nif you stay inactive longer than 60 seconds or your FPS drops lower than 10, the system will kick you out