Aqua | The Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [1 v] until done\nend\n\nwhen I receive [next  v]\nnext backdrop\n\n@Player \n\nwhen flag clicked\nshow\nset [x v] to [0]\npoint in direction (90)\ngo to [front v] layer\ngo to x: (-195) y: (-67)\nset [yvel v] to [0]\nforever\n    Platform Gravity: [-1] Jump Height: [15] Side movement speed: [3] friction: [.7] slope: []\nend\n\ndefine Platform Gravity: (gravity) Jump Height: (jump height) Side movement speed: (side movment) friction: (friction) slope: (slope)\nset rotation style [left-right v]\nchange [yvel v] by (gravity)\nchange y by (yVel)\nif <touching (platforms v)?> then\n    repeat until <not <touching (platforms v)?>>\n        change y by ((([abs v] of (yVel) ) / (yVel)) * (-1))\n    end\n    set [yvel v] to (<<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(([abs v] of (yVel) ) / (yVel)) = [-1]>> * (jump height))\nend\nset [xvel v] to ((((xVel) + (<<key (left arrow v) pressed?> or <key (a v) pressed?>> * ((side movment) * (-1)))) + (<<key (right arrow v) pressed?> or <key (d v) pressed?>> * (side movment))) * (friction))\nchange x by (xVel)\nset [slope v] to [0]\nrepeat until <<(slope) = ((slope) * (-1))> or <not <touching (platforms v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (platforms v)?> then\n    change y by (slope)\n    repeat until <not <touching (platforms v)?>>\n        change x by ((([abs v] of (xVel) ) / (xVel)) * (-1))\n    end\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    point in direction (-90)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    point in direction (90)\nend\n\nwhen flag clicked\nforever\n    if <touching (line2 v)?> then\n        broadcast (Next  v)\n        go to x: (-187) y: (-129)\n    end\n    if <touching (anchors v)?> then\n        stop [other scripts in sprite v]\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        broadcast (Oof v)\n        go to x: (-187) y: (-129)\n        repeat (20)\n            change [ghost v] effect by (-5)\n        end\n    end\nend\n\nPlatform Gravity: [-1] Jump Height: [15] Side movement speed: [4] friction: [.7] slope: []\n\nwhen I receive [oof v]\nforever\n    Platform Gravity: [-1] Jump Height: [15] Side movement speed: [3] friction: [.7] slope: []\nend\n\nif <touching (platforms v)?> then\n    repeat until <not <touching (platforms v)?>>\n        change y by ((([abs v] of (yVel) ) / (yVel)) * (-1))\n    end\n    set [yvel v] to (<<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(([abs v] of (yVel) ) / (yVel)) = [-1]>> * (jump height))\nend\n\nwhen flag clicked\nforever\n\ngo to x: (-195) y: (yVel)\n\ngo to x: (-195) y: (-67)\n\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\nend\n\nwhen I receive [right v]\npoint in direction (90)\n\nwhen I receive [left v]\npoint in direction (-90)\n\n@Platforms\n\ngo to x: (-3) y: (0)\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to [front v] layer\nforever\n    if <(costume [number v]) = [3]> then\n        broadcast (Anchor v)\n    end\n    if <(costume [number v]) = [4]> then\n        broadcast (Show v)\n    end\nend\n\nwhen I receive [next  v]\nnext costume\n\nwhen flag clicked\n\n\n@Bubbles\n\nswitch costume to (kostium8 v)\n\nset [ghost v] effect to (45)\n\nwhen flag clicked\nset size to (60) %\nswitch costume to (kostium4 v)\nhide\nforever\n    wait (pick random (2) to (4)) seconds\n    create clone of (_myself_ v)\nend\n\nset size to (100) %\n\ngo to [back v] layer\n\nwhen I start as a clone\ngo to [back v] layer\nset [ghost v] effect to (pick random (30) to (80))\nset size to (pick random (5) to (50)) %\ngo to x: (pick random (-234) to (236)) y: (-162)\nshow\nswitch costume to (pick random (4) to (6))\nforever\n    repeat (pick random (1) to (5))\n        change y by (pick random (0.0.1) to (1))\n    end\nend\n\nshow\n\nwait (pick random (0.1) to (0.5)) seconds\n\nchange y by (pick random (0.0.1) to (1))\n\nrepeat (pick random (1) to (5))\n\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\ngo to x: (pick random (-234) to (236)) y: (-162)\n\nwhen I start as a clone\nforever\n    if <touching (line v)?> then\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        repeat (20)\n            delete this clone\n        end\n    end\nend\n\n@Subtitles\n\nwhen flag clicked\ngo to x: (-71) y: (148)\nshow\nswitch costume to (1 v)\n\nwhen I receive [next  v]\nnext costume\n\nwhen flag clicked\nwait until <(costume [number v]) = [11]>\ngo to x: (0) y: (0)\nbroadcast (End Credits v)\n\n@Anchors\n\nwhen I receive [anchor v]\ngo to x: (0) y: (0)\nswitch costume to (kostium2 v)\nshow\n\nwhen flag clicked\nswitch costume to (kostium5 v)\nhide\n\ngo to x: (36) y: (28)\n\nwhen I receive [next  v]\nnext costume\n\n@Line\n\ngo to x: (36) y: (28)\n\nwhen flag clicked\nshow\nchange [ghost v] effect by (100)\nswitch costume to (kostium1 v)\ngo to x: (0) y: (135)\n\n@Line2\n\nwhen flag clicked\nshow\ngo to x: (238) y: (15)\nchange [ghost v] effect by (100)\nswitch costume to (kostium2 v)\n\nwhen I receive [end credits v]\nforever\n    hide\nend\n\nwhen I receive [show v]\nshow\n\nwhen flag clicked\nrepeat (100)\n    show\nend\n\ngo to x: (200) y: (45)\n\nchange x by (3)\n\nchange y by (-10)\n\ngo to x: (243) y: (45)\n\nshow\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    go to x: (3) y: (2)\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    switch costume to (kostium1 v)\n    show\nend\n\n
-----------------------------English----------------------\nWelcome to the Aqua Platformer! There are only 10 levels at the moment. The game may contain bugs.  If you found a game error or a grammar error somewhere, write in the comments. This is my first platformer like this, hope you enjoy!\n\nInstructions:\n\nW/Up arrow - jump\nA,D/ Left and right arrows- walk\n\n\n------------------------------Polish-----------------------\nWitaj w Aqua Platformer! Na razie jest tu tylko 10 poziomów. Gra może zawierać błędy. Jeżeli znalazłeś/aś błąd w grze lub gramatyczny, napisz w komentarzach. To moja pierwsza taka platformówka, mam nadzieję, że wam się spodoba!\n\nInstrukcje:\n\nW/ strzałka w górę - skok\nA,D/ lewa i prawa strzałka - chodzenie