Moon Platformer 2 || A Platformer #Games

Instructions: EN :\nUse the keyboard arrows or W,A,S,D to move !\nPress the down arrow to duck !\nEnjoy !!\n------\nFr :\nUtilise les flèches du clavier ou W,A,S,D pour bouger !\nUtilise la flèche du bas pour esquiver !\nBon jeu !!\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (noir v)\n\nwhen I receive [début jeu v]\nswitch backdrop to (arrière plan lunaire2 v)\n\nwhen I receive [all start v]\nswitch backdrop to (moon-g6840a0c6b_1920 v)\n\nwhen I receive [htp rules v]\nswitch backdrop to (moon-g6840a0c6b_1920 v)\n\nwhen I receive [menu v]\nswitch backdrop to (arrière plan lunaire2 v)\n\n@Logo\n\nwhen flag clicked\nplay sound [Musique Le Parrain v] until done\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\ngo to x: (0) y: (-220)\nset [brightness v] effect to (0)\nset size to (100) %\nset [intro glissement v] to [23]\nwait (0.5) seconds\nrepeat (40)\n    change [ghost v] effect by (-5)\n    set y to ((y position) * (0.189))\nend\nwait (4) seconds\nbroadcast (Affichage Logo v)\nrepeat (20)\n    change [ghost v] effect by (5)\n    change [brightness v] effect by (3)\n    set y to ((((y position) + (4)) * (1.125)) - (4))\nend\nhide\nwait (0.5) seconds\nbroadcast (Début Jeu v)\n\n@carré\n\nwhen flag clicked\nshow\ngo to x: (99) y: (-102)\nwait (7) seconds\nhide\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\ngo to x: (0) y: (-220)\nset [brightness v] effect to (0)\nset size to (100) %\nset [intro glissement v] to [23]\nwait (0.5) seconds\nrepeat (40)\n    change [ghost v] effect by (-5)\n    set y to ((y position) * (0.189))\nend\nwait (4) seconds\nbroadcast (Affichage Logo v)\nrepeat (20)\n    change [ghost v] effect by (5)\n    change [brightness v] effect by (3)\n    set y to ((((y position) + (4)) * (1.125)) - (4))\nend\nhide\nwait (0.5) seconds\nbroadcast (Début Jeu v)\n\n@LeParrainMafieux\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nwait (2.8) seconds\ngo to x: (50) y: (25)\nshow\nrepeat (15)\n    wait (0) seconds\n    next costume\nend\n\nwhen I receive [affichage logo v]\nrepeat (25)\n    change [ghost v] effect by (5)\n    change [brightness v] effect by (3)\n    go to x: (50) y: (25)\nend\n\n@play\n\nwhen this sprite clicked\nbroadcast (All Start v)\nhide\n\nwhen I receive [début jeu v]\nshow\n\nwhen flag clicked\nhide\ngo to x: (19) y: (-120)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (((55) + (size)) / (2)) %\n        set [brightness v] effect to (2)\n    else\n        set size to (((40) + (size)) / (2)) %\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [htp rules v]\nhide\n\nwhen I receive [menu v]\nshow\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (Restart v)\n\nwhen I receive [all start v]\ngo to x: (-181) y: (164)\nshow\n\nwhen I receive [htp rules v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (((130) + (size)) / (2)) %\n        set [brightness v] effect to (2)\n    else\n        set size to (((114) + (size)) / (2)) %\n        set [brightness v] effect to (0)\n    end\nend\n\n@Player\n\ndefine Platformer Moteur\nif on edge, bounce\nchange [y v] by (-0.5)\nif <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n    switch costume to (costume3 v)\nelse\n    switch costume to (costume2 v)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [x v] by (-1)\n    point in direction (-90)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [x v] by (1)\n    point in direction (90)\nend\nset [x v] to ((x) * (0.9))\nchange x by (x)\nif <touching color (#ccd3d7)?> then\n    change y by (1)\n    if <touching color (#ccd3d7)?> then\n        change y by (1)\n        if <touching color (#ccd3d7)?> then\n            change y by (1)\n            if <touching color (#ccd3d7)?> then\n                change y by (1)\n                if <touching color (#ccd3d7)?> then\n                    change y by (1)\n                    if <touching color (#ccd3d7)?> then\n                        change y by (1)\n                        if <touching color (#ccd3d7)?> then\n                            change y by (-6)\n                            change x by ((x) * (-1))\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                set [y v] to [10]\n                                if <(x) > [0]> then\n                                    set [x v] to [-3]\n                                else\n                                    set [x v] to [3]\n                                end\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (y)\nif <touching color (#ccd3d7)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-0.5)\nif <<touching color (#ccd3d7)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    set [y v] to [8]\nend\nchange y by (0.5)\nif <touching color (#ed1c24)?> then\n    go to x: (X Spawn) y: (Y Spawn)\nend\nif <touching color (#005f31)?> then\n    set [x v] to [37]\n    broadcast (message1 v)\nend\nif <touching (big trampoline v)?> then\n    set [y v] to [17]\n    broadcast (message1 v)\nend\nif <touching color (#fdff00)?> then\n    set [y v] to [12]\n    broadcast (message1 v)\nend\nif <touching color (#4fff1a)?> then\n    go to x: (-188) y: (-136)\nend\nif <touching color (#9966ff)?> then\n    set [y v] to [17]\nend\nif <(x position) > [230]> then\n    wait (0.01) seconds\n    go to x: (X Spawn) y: (Y Spawn)\nend\nif <touching color (#ffc181)?> then\n    set [x v] to [10]\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\ngo to x: (X Spawn) y: (Y Spawn)\n\nwhen I receive [restart v]\ngo to x: (X Spawn) y: (Y Spawn)\n\nwhen I receive [all start v]\ngo to x: (X Spawn) y: (Y Spawn)\n\nwhen I receive [all start v]\nshow\n\nwhen flag clicked\nset [level v] to [1]\ngo to [front v] layer\nforever\n    if <(x position) > [230]> then\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        go to x: (-203) y: (-78)\n        change [level v] by (1)\n        broadcast (next v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume2 v)\nset [y spawn v] to [-77]\nset [x spawn v] to [-200]\ngo to x: (X Spawn) y: (Y Spawn)\nset size to (50) %\nset [x v] to [0]\nset [y v] to [0]\nforever\n    Platformer Moteur\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-203) y: (-78)\n\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [début jeu v]\nforever\n    play sound [heros-time-paulo-kalazzi-main-version-01-51-2639 v] until done\nend\n\nwhen I receive [début jeu v]\nhide\n\nrepeat (10)\n\nwhen flag clicked\nchange [☁ player v] by (1)\n\nset [level v] to [20]\n\nrepeat (2)\n    repeat (60)\n        change x by (0.5)\n    end\nend\n\n@Levels\n\nwhen flag clicked\ngo to x: (2) y: (5)\nhide\n\nwhen I receive [all start v]\nswitch costume to (level 1 v)\nshow\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nforever\n    set [level v] to (costume [number v])\nend\n\n@Tyrolienne\n\nwhen flag clicked\nhide\n\nwhen I receive [début jeu v]\nhide\nforever\n    if <(Level) = [11]> then\n        go to [back v] layer\n        show\n        go to x: (0) y: (0)\n    else\n        hide\n    end\nend\n\n@Big Trampoline\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [all start v]\nforever\n    if <(Level) = [14]> then\n        show\n        go to x: (-1) y: (-126)\n    else\n        hide\n    end\n    if <touching (player v)?> then\nend\n\n@Skip\n\nwhen flag clicked\nhide\n\nwhen I receive [all start v]\ngo to x: (189) y: (-159)\nshow\n\nwhen this sprite clicked\nchange [level v] by (1)\nbroadcast (next v)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (((120) + (size)) / (2)) %\n        set [brightness v] effect to (2)\n    else\n        set size to (((100) + (size)) / (2)) %\n        set [brightness v] effect to (0)\n    end\nend\n\n@HTP\n\nwhen this sprite clicked\nhide\nbroadcast (HTP rules v)\n\nwhen I receive [début jeu v]\nshow\n\nwhen flag clicked\nhide\ngo to x: (26) y: (-155)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (((55) + (size)) / (2)) %\n        set [brightness v] effect to (2)\n    else\n        set size to (((40) + (size)) / (2)) %\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [menu v]\nshow\n\nwhen I receive [all start v]\nhide\n\n@HTP rules\n\nwhen flag clicked\nhide\n\nwhen I receive [début jeu v]\nhide\n\nwhen I receive [htp rules v]\ngo to x: (10) y: (-10)\nshow\n\nwhen I receive [menu v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen I receive [affichage logo v]\nhide\n\nwhen I receive [all start v]\nhide\n\nwhen I receive [début jeu v]\nhide\n\nwhen I receive [htp rules v]\ngo to x: (-176) y: (142)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (15)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nhide\nbroadcast (Menu v)\n\n@Affiche\n\nwhen flag clicked\nforever\n    hide\nend\n\n