Pico Run #platformer #games #pico 

Instructions: Directions: \n- Collect the coins and avoid mushrooms! (They're poisonous!)\n- Up arrow to jump.\n- Can also mouse click to jump\n- Left arrow and right arrow\n- [Not available for mobile yet]\n\nHave fun and enjoy!\n\nKeyboard shortcuts:\n- R key to respawn.\n- Space key to jump\n- M key to mute music\n- U key to unmute music\n\nNope, you cannot skip levels. All levels are possible.

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nstart sound [bensound-summer v]\n\nwhen I receive [new level v]\nnext costume\n\nwhen [m v] key pressed\nstop all sounds\n\nwhen [u v] key pressed\nforever\n    play sound [bensound-summer v] until done\nend\n\n@ground\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [new level v]\nnext costume\n\n@pico\n\nwhen flag clicked\nshow\nclear graphic effects\ngo to x: (-199) y: (44)\nset [coins collected: v] to [0]\npoint in direction (90)\nset size to (50) %\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<key (up arrow v) pressed?> or <mouse down?>> then\n            set [y v] to [17]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> and <touching (ground v)?>> or <<key (space v) pressed?> and <touching (ground v)?>>> or <<mouse down?> and <touching (ground v)?>>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [225]> then\n        broadcast (new level v)\n    end\nend\n\nwhen flag clicked\nhide variable [coins collected: v]\nswitch costume to (costume1 v)\nif <key (right arrow v) pressed?> then\n    point in direction (90)\n    switch costume to (costume1 v)\n    wait (0.1) seconds\n    switch costume to (costume2 v)\n    wait (0.1) seconds\n    switch costume to (costume3 v)\n    wait (0.1) seconds\n    switch costume to (costume4 v)\n    wait (0.1) seconds\nend\nif <key (left arrow v) pressed?> then\n    switch costume to (costume5 v)\n    wait (0.1) seconds\n    switch costume to (costume6 v)\n    wait (0.1) seconds\n    switch costume to (costume7 v)\n    wait (0.1) seconds\n    switch costume to (costume8 v)\n    wait (0.1) seconds\nend\n\nforever\nend\n\nwhen I receive [new level v]\ngo to x: (-199) y: (44)\n\nwhen flag clicked\nforever\n    if <(y position) < [-130]> then\n        broadcast (Pico dies, coin reappear v)\n        go to x: (-199) y: (44)\n        hide\n        wait (0.001) seconds\n        show\n        wait (0.001) seconds\n        hide\n        wait (0.001) seconds\n        show\n    end\nend\n\nwhen I receive [pico dies because of obstacle v]\nbroadcast (Pico dies, coin reappear v)\ngo to x: (-199) y: (44)\nhide\nwait (0.001) seconds\nshow\nwait (0.001) seconds\nhide\nwait (0.001) seconds\nshow\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        broadcast (Pico dies because of obstacle v)\n    end\nend\n\n@coin\n\nwhen flag clicked\nclear graphic effects\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (0)\nswitch costume to (costume1 v)\nset size to (75) %\nwait (1) seconds\nrepeat (10)\n    change y by (5)\nend\nrepeat (10)\n    change y by (-5)\nend\n\nwhen flag clicked\nforever\n    if <touching (pico v)?> then\n        start sound [Coin v]\n        change [coins collected: v] by (1)\n        change [ghost v] effect by (25)\n        clear graphic effects\n        hide\n    end\nend\n\nwhen I receive [new level v]\nshow\nnext costume\n\nwhen I receive [pico dies, coin reappear v]\nshow\n\n@obstacle\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [new level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <touching (pico v)?> then\n        start sound [Pew v]\n        broadcast (Pico dies because of obstacle v)\n    end\nend\n\n@clouds(accessory)\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    switch costume to (pick random (1) to (2))\n    go to (random position v)\n    change x by (250)\n    repeat (90)\n        change x by (-4)\n    end\nend\n\n@tn\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\ngo to [front v] layer\n\nshow\n\nwait (1) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\nset [time v] to [.1]\nforever\n    set [time v] to ((timer) + (.1))\nend\n\nwhen [timer v] > (Time)\ngo to [front v] layer\nshow\n\n@Intro\n\nwhen flag clicked\ngo to x: (1) y: (266)\ngo to [front v] layer\nshow\nglide (0.2) secs to x: (1) y: (-9)\nglide (0.1) secs to x: (1) y: (79)\nglide (0.3) secs to x: (1) y: (-91)\nglide (0.2) secs to x: (1) y: (-39)\nglide (0.1) secs to x: (-1) y: (-266)\nhide\ngo to [back v] layer\n\n