-Freeze-  (A Platformer)
@Stage\n\n@logo citrons\n\nwhen flag clicked\nhide variable [☁ highscore v]\ngo to [front v] layer\nshow\nset [ghost v] effect to (0)\ngo to x: (-14) y: (-238)\nglide (0.7) secs to x: (-14) y: (0)\nwait (0.7) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nwait (0.6) seconds\nhide\nbroadcast (message1 v)\n\nwhen I receive [end v]\nforever\n    if <(temps) < (☁ highscore)> then\n        set [☁ highscore v] to (round (temps))\n    end\n    stop [this script v]\nend\n\n@Sprite1\n\nwhen I receive [message1 v]\nshow\n\nwhen flag clicked\nhide\n\n@ice texte\n\nwhen I receive [message1 v]\nshow\n\nwhen flag clicked\nhide\n\n@Lutin2\n\nwhen flag clicked\nhide variable [temps v]\nhide variable [temps final v]\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [play v]\nhide\n\nwhen I receive [end v]\nset [temps final v] to (join [Your time : ] (join (round (temps)) [ s]))\nhide variable [temps v]\nshow variable [temps final v]\nstop [other scripts in sprite v]\n\nwhen I receive [message1 v]\nshow\n\nwhen flag clicked\nforever\n    set [temps v] to (timer)\nend\n\nwhen this sprite clicked\nbroadcast (play v)\nreset timer\nshow variable [temps v]\n\n@level\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [play v]\nshow\nforever\n    if <(costume [number v]) = [14]> then\n        broadcast (end v)\n    end\nend\n\n@Lutin3\n\nwhen I receive [play v]\nshow\ngo to [front v] layer\ngo to x: (-185) y: (0)\nforever\n    change [y v] by (-0.5)\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 color (#ffffff)?> and <not <touching (lutin4 v)?>>> then\n        change y by (1)\n        if <<touching color (#ffffff)?> and <not <touching (lutin4 v)?>>> then\n            change y by (1)\n            if <<touching color (#ffffff)?> and <not <touching (lutin4 v)?>>> then\n                change y by (1)\n                if <<touching color (#ffffff)?> and <not <touching (lutin4 v)?>>> then\n                    change y by (1)\n                    if <<touching color (#ffffff)?> and <not <touching (lutin4 v)?>>> then\n                        change y by (1)\n                        if <<touching color (#ffffff)?> and <not <touching (lutin4 v)?>>> then\n                            change y by (1)\n                            if <<touching color (#ffffff)?> and <not <touching (lutin4 v)?>>> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to [10]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\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    end\n    change y by (y)\n    if <<touching color (#ffffff)?> and <not <touching (lutin4 v)?>>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<<touching color (#ffffff)?> and <not <touching (lutin4 v)?>>> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    show\n    if <touching color (#00ff55)?> then\n        set [y v] to [15]\n    end\n    if <<touching (_edge_ v)?> and <(x position) > [190]>> then\n        go to x: (-185) y: (0)\n        broadcast (next v)\n    end\n    if <<touching color (#07dbf9)?> or <touching (lutin6 v)?>> then\n        go to x: (-185) y: (0)\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <key (any v) pressed?> then\n        if <key (left arrow v) pressed?> then\n            switch costume to (costume4 v)\n        end\n        if <key (right arrow v) pressed?> then\n            switch costume to (costume2 v)\n        end\n    else\n        switch costume to (costume3 v)\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Lutin4\n\nwhen I receive [play v]\ngo to [front v] layer\nhide\nforever\n    create clone of (_myself_ v)\n    wait (pick random (5) to (8)) seconds\nend\n\nwhen I start as a clone\nshow\nset size to (pick random (80) to (100)) %\ngo to x: (-265) y: (pick random (88) to (30))\nglide (pick random (8) to (11)) secs to x: (333) y: (y position)\ndelete this clone\n\nwhen I receive [end v]\nhide\n\n@Lutin5\n\nwhen I start as a clone\nforever\n    show\nend\n\nwhen I start as a clone\ngo to x: (pick random (-240) to (240)) y: (185)\nswitch costume to (costume1 v)\nglide (1) secs to x: (x position) y: (-155)\ndelete this clone\n\nwhen I receive [play v]\ngo to [front v] layer\nhide\nforever\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\n\n@Lutin6\n\nwhen flag clicked\ngo to [front v] layer\nhide\nforever\n    if <([costume # v] of [level v]) = [9]> then\n        switch costume to (costume2 v)\n        show\n        point in direction (90)\n        go to x: (-35) y: (-292)\n        glide (1) secs to x: (-27) y: (-156)\n        turn right (15) degrees\n        go to x: (-32) y: (-146)\n        glide (0.5) secs to x: (-15) y: (-107)\n        turn right (15) degrees\n        next costume\n        turn right (15) degrees\n        glide (0.5) secs to x: (10) y: (-79)\n        turn right (15) degrees\n        wait (0.1) seconds\n        turn right (15) degrees\n        wait (0.2) seconds\n        turn right (15) degrees\n        wait (0.3) seconds\n        turn right (15) degrees\n        next costume\n        turn right (15) degrees\n        wait (0.5) seconds\n        turn right (15) degrees\n        wait (0.5) seconds\n        turn right (15) degrees\n        wait (0.5) seconds\n        turn right (15) degrees\n        glide (2) secs to x: (53) y: (-307)\n        hide\n        wait (3) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Tobu - Hope \[NCS Release\].mp3 v] until done\n    set volume to (80) %\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [level v]) = [10]> then\n        hide\n    end\nend\n\n@Lutin7\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nshow\n\n@Lutin1\n\nwhen flag clicked\nset [htt v] to [1]\nhide variable [temps v]\nhide variable [☁ highscore v]\nhide\nswitch costume to (costume2 v)\n\nwhen I receive [message1 v]\nshow\nswitch costume to (costume1 v)\n\nwhen this sprite clicked\nnext costume\n\nwhen I receive [play v]\nhide\nforever\n    if <(costume [number v]) = [1]> then\n        show variable [temps v]\n        show variable [☁ highscore v]\n        set [htt v] to [0]\n    end\n    if <(costume [number v]) = [2]> then\n        hide variable [☁ highscore v]\n        hide variable [temps v]\n        set [htt v] to [1]\n    end\nend\n\n@Lutin8\n\nwhen flag clicked\nforever\n    if <(htt) = [1]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [end v]\nshow variable [☁ highscore2 v]\ngo to x: (-133) y: (162)\nswitch costume to (costume2 v)\nhide variable [☁ highscore v]\n\nwhen flag clicked\ngo to x: (-128) y: (-162)\nhide variable [☁ highscore2 v]\nswitch costume to (costume1 v)\nforever\n    set [☁ highscore2 v] to (☁ highscore)\nend\n\n