Sea platformer 20 lvl
@Stage\n\nwhen I receive [play v]\nwait (2.5) seconds\nforever\n    play sound [Murad - Run \(Inspired By Alan Walker\) NCN Release.mp3 v] until done\nend\n\n@terrain\n\nwhen flag clicked\nwait (2.5) seconds\nforever\n    if <(niveau) = [4]> then\n        broadcast (pièce 2 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (2.5) seconds\nforever\n    if <(niveau) = [3]> then\n        broadcast (pièce 1 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (2.5) seconds\nshow\nset [niveau v] to [1]\ngo to [back v] layer\nforever\n    switch costume to (niveau)\nend\n\nwhen [b v] key pressed\nhide list [joueurs v]\nwait until <not <key (b v) pressed?>>\nshow list [joueurs v]\n\ngo to x: (5) y: (0)\n\n@danger\n\nwhen flag clicked\nshow\nforever\n    switch costume to (niveau)\n    go to [back v] layer\nend\n\nwhen flag clicked\nshow\nforever\n    set [ghost v] effect to (0)\n    go to [back v] layer\n    set size to (100) %\n    go to x: (0) y: (0)\n    repeat (10)\n        change y by (0.5)\n    end\n    repeat (10)\n        change y by (-0.5)\n    end\nend\n\nset [niveau v] to [16]\n\n@skip\n\nwhen flag clicked\nset [niveau v] to [1]\nforever\n    go to [front v] layer\n    set size to (100) %\n    if <touching (mouse-pointer v)?> then\n        change size by (10)\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            broadcast (respawn v)\n            change [niveau v] by (1)\n            wait (1) seconds\n        end\n    end\nend\n\nwhen I receive [respawn v]\nif <(niveau) = [8]> then\n    stop [other scripts in sprite v]\n    forever\n        go to [front v] layer\n        point in direction (90)\n        switch costume to (costume1 v)\n        repeat (10)\n            turn right (0.5) degrees\n        end\n        repeat (20)\n            turn left (0.5) degrees\n        end\n        repeat (10)\n            turn right (0.5) degrees\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait (1) seconds\nshow\nforever\n    go [forward v] (50) layers\n    go to [front v] layer\nend\n\nwhen flag clicked\nwait (2.5) seconds\nshow\ngo to x: (-192) y: (146)\npoint in direction (90)\ngo to [front v] layer\nforever\n    repeat (20)\n        turn right (0.5) degrees\n    end\n    repeat (40)\n        turn left (0.5) degrees\n    end\n    repeat (20)\n        turn right (0.5) degrees\n    end\nend\n\n@trampoline\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    switch costume to (niveau)\nend\n\n@wather\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (25)\nforever\n    set [fisheye v] effect to (([sin v] of ((timer) * (100)) ) * (30))\n    set [whirl v] effect to (([sin v] of ((timer) * (75)) ) * (30))\nend\n\nwhen flag clicked\nset [pièce v] to [0]\nset [niveau v] to [1]\ngo to [front v] layer\nforever\n    switch costume to (niveau)\nend\n\nwhen flag clicked\nforever\n    if <[7] = (niveau)> then\n        show\n        go to x: (0) y: (-350)\n        repeat until <not <(niveau) = [7]>>\n            change y by (0.5)\n        end\n        hide\n    end\n    if <[16] = (niveau)> then\n        show\n        go to x: (0) y: (-350)\n        repeat until <not <(niveau) = [16]>>\n            change y by (0.5)\n        end\n        hide\n    end\n    if <[19] = (niveau)> then\n        show\n        go to x: (0) y: (-350)\n        repeat until <not <(niveau) = [19]>>\n            change y by (0.5)\n        end\n        hide\n    end\n    if <[20] = (niveau)> then\n        show\n        go to x: (0) y: (-350)\n        repeat until <not <(niveau) = [20]>>\n            change y by (0.5)\n        end\n        hide\n    end\nend\n\nwhen I receive [recommence v]\ngo to x: (0) y: (-350)\n\n@Sprite1\n\nwhen flag clicked\nset size to (50) %\ngo to [back v] layer\ncreate clone of (_myself_ v)\nwait (1) seconds\ncreate clone of (_myself_ v)\nwait (1) seconds\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [back v] layer\nset [ghost v] effect to (25)\nforever\n    repeat (100)\n        change size by (1)\n    end\n    repeat (100)\n        change size by (-1)\n    end\nend\n\n@player\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (25)\n    change size by (-6)\n    switch costume to (costume2 v)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [recommence v]\ngo to x: (-207) y: (50)\nset [x v] to [0]\nset [y v] to [0]\n\ndefine spécial détéction\nif <touching (trampoline v)?> then\n    change [y v] by (pick random (20) to (30))\nend\n\nwhen flag clicked\nforever\n    spécial détéction\nend\n\nwhen flag clicked\nforever\n    spécial death\nend\n\ndefine spécial death\nif <touching (laser2 v)?> then\n    repeat (10)\n        change [ghost v] effect by (8)\n    end\n    go to x: (-207) y: (-39)\n    broadcast (Recommence v)\n    repeat (10)\n        change [ghost v] effect by (-8)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait (2.5) seconds\nswitch costume to (a droite v)\ngo to [back v] layer\npoint in direction (90)\nset [yy v] to [15]\nset [xx -90 v] to [-1]\nset [xx 90 v] to [1]\ngo to [front v] layer\nshow\ngo to x: (-207) y: (-30)\nforever\n    go to [front v] layer\n    set [x v] to [0]\n    set [y v] to [0]\n    forever\n        change [y v] by (-1)\n        set [x v] to ((x) * (0.9))\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n            switch costume to (a droite v)\n            set [orientation  de player v] to [a droite]\n            change [x v] by (Xx 90)\n        end\n        if <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n            switch costume to (a gauche v)\n            set [orientation  de player v] to [a gauche]\n            change [x v] by (Xx -90)\n        end\n        change x by (x)\n        if <touching (terrain v)?> then\n            change y by (1)\n        end\n        if <touching (terrain v)?> then\n            change y by (1)\n        end\n        if <touching (terrain v)?> then\n            change y by (1)\n        end\n        if <touching (terrain v)?> then\n            change y by (1)\n        end\n        if <touching (terrain v)?> then\n            change y by (-4)\n            change x by ((x) * (-1))\n            if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                set [y v] to [10]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-4]\n                else\n                    set [x v] to [4]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n        change y by (y)\n        if <touching (terrain 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 (terrain v)?>> or <<touching (terrain v)?> and <<mouse down?> and <(mouse y) > (y position)>>>> then\n            change [y v] by (Yy)\n        end\n        change y by (1)\n        if <<touching (danger v)?> or <touching (wather v)?>> then\n            repeat (10)\n                change [ghost v] effect by (8)\n            end\n            go to x: (-207) y: (-39)\n            broadcast (Recommence v)\n            repeat (10)\n                change [ghost v] effect by (-8)\n            end\n        end\n        if <[200] < (x position)> then\n            change [niveau v] by (1)\n            go to x: (-207) y: (-39)\n            broadcast (Recommence v)\n        end\n    end\nend\n\nwhen flag clicked\nadd (username) to [joueurs v]\n\n@Sprite2\n\nwhen flag clicked\nwait (2.6) seconds\ngo to [back v] layer\nforever\n    show\nend\n\nwhen flag clicked\nshow\nforever\n    switch costume to (niveau)\n    go to [back v] layer\nend\n\n@Sprite3\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n
-----------Welcome in the sea platformer !-----------\n\nUse the Arrow key to move,\nComment, like, favorite and and follow !\n\n