Massive Multiplayer Platformer v1.3
@Stage\n\nwhen flag clicked\nforever\n    play sound [vexento-tevo-qnDQyH8hqv v] until done\nend\n\n@TB\n\nwhen flag clicked\ngo to [front v] layer\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nshow\ngo to [front v] layer\n\n@player\n\nwhen flag clicked\ngo to x: (-200) y: (-75)\nclear graphic effects\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.85))\n    change x by (x)\n    if <touching color (#cccccc)?> then\n        change y by (1)\n        if <touching color (#cccccc)?> then\n            change y by (1)\n            if <touching color (#cccccc)?> then\n                change y by (1)\n                if <touching color (#cccccc)?> then\n                    change y by (1)\n                    if <touching color (#cccccc)?> then\n                        change y by (1)\n                        if <touching color (#cccccc)?> then\n                            change y by (1)\n                            if <touching color (#cccccc)?> then\n                                change y by (-6)\n                                change x by ((x) * (-1))\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#cccccc)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#cccccc)?> and <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        set [y v] to [13]\n    end\n    change y by (1)\n    if <<<touching color (#ff6666)?> and <not <touching (wire v)?>>> or <(y position) < [-175]>> then\n        death animation\n        go to x: (-200) y: (-115)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <<(x position) > [240]> or <<key (space v) pressed?> and <not <(LEVEL) = [22]>>>> then\n        change [level v] by (1)\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-210) y: (-115)\n        wait until <not <key (space v) pressed?>>\n    end\n    if <touching color (#ffc366)?> then\n        set [y v] to [17]\n    end\n    if <<touching color (#fff78f)?> and <<<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> or <mouse down?>>> then\n        set [x v] to ((x) * (2))\n    end\nend\n\ndefine death animation\nrepeat (15)\n    change [ghost v] effect by (6.7)\nend\nwait (0.35) seconds\nset [ghost v] effect to (0)\n\n@LEVEL\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [winner v]\nstop [other scripts in sprite v]\nswitch costume to (celebration time woowoo v)\n\n@WIRE\n\nwhen flag clicked\ngo to [back v] layer\nhide\nclear graphic effects\nset [win? v] to [no]\npoint in direction (90)\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    if <touching (player v)?> then\n        set [win? v] to [yes]\n        repeat until <touching (charger v)?>\n            change x by (10)\n        end\n        broadcast (WINNER v) and wait\n        stop [this script v]\n    end\n    if <(LEVEL) = [22]> then\n        show\n    else\n        hide\n    end\nend\n\n@CHARGER\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [22]> then\n        show\n    else\n        hide\n    end\nend\n\n@Particle \n\nwhen I start as a clone\ngo to [back v] layer\nset [yv v] to (pick random (15.0) to (25))\nset [xv v] to (pick random (-5) to (5.0))\nshow\nset size to (pick random (100) to (175)) %\nset [ghost v] effect to (pick random (25) to (50))\nforever\n    change [yv v] by (-1)\n    change x by (XV)\n    change y by (YV)\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\nend\n\ndefine Particle (#)\nrepeat (#)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\n    go to x: (pick random (-200) to (200)) y: (-130)\n    Particle [10]\n    wait (0.9) seconds\nend\n\nwhen I receive [winner v]\nstop [other scripts in sprite v]\nrepeat (5)\n    go to x: (pick random (-200) to (200)) y: (-130)\n    Particle [100]\n    wait (0.2) seconds\nend\nwait (1) seconds\nrepeat (100)\n    go to x: (pick random (-200) to (200)) y: (-130)\n    Particle [10]\n    wait (1) seconds\nend\n\n
DOUBLE CLICK THE FLAG\n\nPacman Platformer! You move with arrow keys. First, collect all the coins in the level. When you did that you can go to the next level by touching the yellow arrow.