Winter platformer - Collab with Romain57330 by blue_of_the_ocean

Instructions: Winter platformer\n\n~~PRESENTATION~~\nThis new project is a collab with. . . . . \n@romain57330\n\n~~INSTRUCTION~~\nThis new game is for PC and MOBILE!\nArrows keys to move.\nAvoid peaks, holes, finish all levels to win!\n\n~~NOTES:~~\nDon’t forget to ❤️ and ⭐️ this project if you want more collab, a part 2 or if you like!\n@romain57330d did the codes  and I did the charts! (Except miniature and menu)!\n\n~~History:~~\nOn Christmas Eve, your parents your guests at dinner\nat home! You’ll take it!\nIn the evening! Do you realize that the date\nwas at 8:00p.m. and it’s already 8:30p.m.!\nYou need to get there quickly before 9:00p.m.\n(You have 100 seconds to join them or else,\nYou’ll have to wait until next Christmas for the reunion\nfamily)!\n\nThank you for reading !

@Stage\n\nwhen flag clicked\nswitch backdrop to (menu v)\n\nwhen I receive [start  v]\nswitch backdrop to (fond v)\n\nwhen I receive [info v]\nswitch backdrop to (instruction  v)\n\nwhen I receive [histoire  v]\nswitch backdrop to (histoire v)\n\nwhen I receive [back v]\nswitch backdrop to (menu v)\n\n@Fin\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nforever\n    if <touching (player v)?> then\n        broadcast (Niveau  v)\n        wait until <not <touching (player v)?>>\n    end\nend\n\n@dangers\n\nwhen I receive [start  v]\nshow\ngo to [back v] layer\nswitch costume to (1 v)\ngo to x: (-45) y: (-14)\nforever\n    if <touching (player v)?> then\n        broadcast (Mort v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [niveau  v]\nnext costume\n\n@Platforme\n\nwhen I receive [start  v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (1 v)\n\nwhen I receive [niveau  v]\nchange [niveau v] by (1)\nnext costume\n\nwhen flag clicked\nhide\nset [niveau v] to [1]\n\n@Player\n\nwhen flag clicked\nforever\n    play sound [Musique  v] until done\nend\n\nwhen I receive [mort v]\ngo to x: (-208) y: (48)\nchange [mort v] by (1)\n\nwhen I receive [mort v]\ngo to x: (-183) y: (-64)\n\nwhen I receive [niveau  v]\ngo to x: (-183) y: (-64)\n\nwhen flag clicked\nset [mort v] to [0]\nhide\n\nwhen I receive [start  v]\nshow\nswitch costume to (droite v)\ngo to x: (-208) y: (48)\nset size to (20) %\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 (droite v)\n            change [x v] by (1)\n        end\n        if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n            switch costume to (gauche v)\n            change [x v] by (-1)\n        end\n        change x by (X)\n        if <touching (platforme v)?> then\n            change y by (1)\n        end\n        if <touching (platforme v)?> then\n            change y by (1)\n        end\n        if <touching (platforme v)?> then\n            change y by (1)\n        end\n        if <touching (platforme v)?> then\n            change y by (1)\n        end\n        if <touching (platforme 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 (platforme 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?> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (platforme v)?>> then\n            change [y v] by (14)\n        end\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nset [temps v] to [0]\nhide variable [temps v]\nhide variable [niveau v]\n\nwhen I receive [start  v]\nforever\n    repeat until <(Niveau) = [23]>\n        wait (1) seconds\n        change [temps v] by (1)\n        if <(Temps) > [100]> then\n            switch backdrop to (perdu ! v)\n            broadcast (Fini v)\n        end\n    end\nend\n\n@Piège\n\nwhen flag clicked\nhide\nforever\n    if <(Niveau) = [16]> then\n        show\n    else\n        hide\n    end\nend\n\n@Lumière personnage\n\nwhen flag clicked\nhide\n\nwhen I receive [start  v]\nset size to (25) %\nshow\nforever\n    go to [back v] layer\n    go to (player v)\n    point towards (player v)\nend\n\n@neige\n\nwhen I start as a clone\nshow\nset size to (pick random (50) to (70)) %\nset [ghost v] effect to (pick random (6) to (80))\nglide (pick random (3) to (4)) secs to x: (pick random (224) to (-226)) y: (-173)\ndelete this clone\n\nwhen flag clicked\nforever\n    hide\nend\n\nwhen I receive [start  v]\nshow\nforever\n    go to [back v] layer\n    go to x: (pick random (-224) to (226)) y: (173)\n    create clone of (_myself_ v)\n    wait (0.09) seconds\nend\n\n@Lumière pics2\n\nwhen I receive [start  v]\ngo to [back v] layer\nshow\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [niveau  v]\nnext costume\n\n@Nuage\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to x: (-230) y: (pick random (35) to (93))\nshow\nswitch costume to (pick random (1) to (20))\nset [ghost v] effect to (pick random (0) to (15))\nrepeat (130)\n    change x by (4)\nend\ndelete this clone\n\nwhen I receive [start  v]\nshow\nset [ghost v] effect to (0)\ngo to x: (10000000) y: (1000000000000)\nhide\nforever\n    go to [back v] layer\n    create clone of (_myself_ v)\n    wait (pick random (1.5) to (3)) seconds\nend\n\n@Back\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (back v)\nset size to (100) %\nhide\n\nwhen this sprite clicked\nhide\nbroadcast (Back v)\n\nwhen I receive [back v]\nbroadcast (Menu v)\n\nwhen I receive [histoire  v]\nshow\n\nwhen I receive [start  v]\nhide\n\nwhen I receive [info v]\nshow\n\n@Histoire\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (histoire v)\nset size to (100) %\nshow\ngo to x: (-35) y: (-99)\n\nwhen this sprite clicked\nhide\nbroadcast (Histoire  v)\n\nwhen I receive [start  v]\nhide\n\nwhen I receive [menu v]\nshow\n\nwhen I receive [info v]\nhide\n\n@Info\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (info v)\nset size to (100) %\ngo to x: (-36) y: (-25)\nshow\n\nwhen this sprite clicked\nhide\nbroadcast (Info v)\n\nwhen I receive [start  v]\nhide\n\nwhen I receive [menu v]\nshow\n\nwhen I receive [histoire  v]\nhide\n\n@Jouer\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (jouer v)\nset size to (100) %\nshow\ngo to x: (-37) y: (47)\n\nwhen this sprite clicked\nhide\nbroadcast (Start  v)\n\nwhen I receive [info v]\nhide\n\nwhen I receive [menu v]\nshow\n\nwhen I receive [histoire  v]\nhide\n\n@Portail\n\nwhen flag clicked\nhide\nforever\n    if <(Niveau) = [19]> then\n        show\n    else\n        hide\n    end\n    if <touching (player v)?> then\n        broadcast (Niveau  v)\n    end\nend\n\n@Miniature\n\nwhen flag clicked\nshow\nswitch costume to (miniature v)\nhide\n\n@Clic\n\nwhen flag clicked\nset size to (100) %\nswitch costume to (1 v)\nset [clic v] to [0]\nhide\n\nwhen I receive [menu v]\nshow\n\nwhen I receive [info v]\nhide\n\nwhen I receive [histoire  v]\nhide\n\nwhen I receive [start  v]\nhide\n\nwhen this sprite clicked\nchange [clic v] by (1)\nplay sound [pop v] until done\nif <(Clic) = [7]> then\n    switch costume to (2 v)\nend\n\n@Skip\n\nwhen I receive [skip v]\nbroadcast (Niveau  v)\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    switch costume to (skip v)\n    if <(Niveau) = [24]> then\n        hide\n    end\nend\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [start  v]\nshow\n\nwhen this sprite clicked\nbroadcast (Skip v)\n\n@Sprite1\n\nwhen flag clicked\nforever\n    if <(Niveau) = [17]> then\n        go to x: (-8) y: (108)\n        show\n    else\n        hide\n    end\nend\n\n