The Moon platformer Mobile Friendly
@Stage\n\nwhen flag clicked\nswitch backdrop to (arrière plan1 v)\n\n@terrain\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]\nset [temps du joueur v] to [0]\nforever\n    switch costume to (niveau)\n    go [forward v] (50) layers\nend\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\nrepeat until <(niveau) = [23]>\n    wait (1) seconds\n    change [temps du joueur v] by (1)\nend\nif <(Temps du joueur) < (☁ Record Time)> then\n    set [☁ record time v] to (Temps du joueur)\nend\n\nwhen flag clicked\nforever\n    if <<(niveau) = [1]> or <(niveau) = [23]>> then\n        show variable [☁ record time v]\n    else\n        hide variable [☁ record time v]\n    end\nend\n\n@danger\n\nwhen flag clicked\nshow\ngo to [back v] layer\nforever\n    switch costume to (niveau)\nend\n\nwhen flag clicked\nshow\nforever\n    set [ghost v] effect to (15)\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 [22]\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            change [temps du joueur v] by (15)\n        end\n    end\nend\n\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 to [front v] layer\nend\n\nwhen flag clicked\nwait (2.5) seconds\nshow\ngo to x: (-193) y: (156)\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\nwhen flag clicked\nforever\n    repeat (60)\n        change [ghost v] effect by (0.5)\n    end\n    repeat (60)\n        change [ghost v] effect by (-0.5)\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@Texte\n\nwhen flag clicked\ngo to x: (0) y: (0)\nwait (2.5) seconds\nshow\nset [niveau v] to [1]\ngo to [front v] layer\nforever\n    switch costume to (niveau)\nend\n\n@Sprite1\n\nwhen flag clicked\npoint in direction (0)\nrepeat (100)\n    create clone of (_myself_ v)\nend\nforever\n    change [ghost v] effect by (pick random (-5) to (5))\n    go to [back v] layer\nend\n\nwhen I start as a clone\ngo to x: (pick random (-240) to (240)) y: (pick random (-170) to (170))\nset [brightness v] effect to (pick random (1) to (30))\nset [ghost v] effect to (pick random (1) to (30))\nset size to (pick random (10) to (80)) %\nforever\n    change [ghost v] effect by (pick random (-5) to (5))\n    go to [back v] layer\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 (vide v)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [recommence v]\npoint in direction (90)\ngo to x: (-207) y: (-39)\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 (10) to (15))\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\npoint in direction (90)\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 <(x position) < (mouse x)>>> 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 <(mouse x) < (x position)>>> 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 <(y position) < (mouse y)>>> 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        if <key (down arrow v) pressed?> then\n            set [y v] to [-10]\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?> or <<mouse down?> and <(y position) < (mouse y)>>> and <touching (terrain v)?>> then\n            change [y v] by (Yy)\n        end\n        change y by (1)\n        if <<<touching (danger v)?> or <touching (feu v)?>> or <touching (fumée v)?>> then\n            repeat (25)\n                change [ghost v] effect by (4)\n                turn right (4) degrees\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\nforever\n    if <[1] = (Son saut)> then\n        start sound [Boing v]\n        wait until <not <[1] = (Son saut)>>\n    end\n    if <[2] = (Son saut)> then\n        start sound [Crunch v]\n        wait until <not <[2] = (Son saut)>>\n    end\n    if <<<touching (danger v)?> or <touching (feu v)?>> or <touching (fumée v)?>> then\n        play sound [Oops v] until done\n        wait (0.3) seconds\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(Fusée) = [1]> then\n        hide\n    end\n    if <(Fusée) = [0]> then\n        show\n    end\nend\n\n@Fumée\n\nwhen flag clicked\nhide\nforever\n    if <[8] = (niveau)> then\n        go to x: (10) y: (-71)\n        repeat until <not <(niveau) = [8]>>\n            create clone of (_myself_ v)\n            set [orientation v] to (pick random (-20) to (20))\n            wait (0.01) seconds\n        end\n        hide\n    end\n    if <[9] = (niveau)> then\n        repeat until <not <(niveau) = [9]>>\n            go to x: (-10) y: (-63)\n            create clone of (_myself_ v)\n            set [orientation v] to (pick random (-20) to (20))\n            wait (0.01) seconds\n        end\n        hide\n    end\n    if <[13] = (niveau)> then\n        repeat until <not <(niveau) = [13]>>\n            go to x: (83) y: (-70)\n            create clone of (_myself_ v)\n            set [orientation v] to (pick random (-20) to (20))\n            wait (0.01) seconds\n        end\n        hide\n    end\n    if <[15] = (niveau)> then\n        repeat until <not <(niveau) = [15]>>\n            go to x: (0) y: (-86)\n            create clone of (_myself_ v)\n            set [orientation v] to (pick random (-20) to (20))\n            wait (0.01) seconds\n        end\n        hide\n    end\n    if <[18] = (niveau)> then\n        repeat until <not <(niveau) = [18]>>\n            go to x: (60) y: (-59)\n            create clone of (_myself_ v)\n            set [orientation v] to (pick random (-20) to (20))\n            wait (0.01) seconds\n        end\n        hide\n    end\nend\n\nwhen I start as a clone\nset [brightness v] effect to (pick random (-50) to (10))\nset [color v] effect to (pick random (0) to (30))\nset size to (20) %\nshow\npoint in direction (Orientation)\nrepeat (80)\n    go [backward v] (1) layers\n    change size by (1)\n    change [ghost v] effect by (0.1)\n    move (1) steps\nend\nrepeat (92)\n    go [backward v] (1) layers\n    go to [back v] layer\n    change [ghost v] effect by (1)\n    move (0.7) steps\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <<<<not <(niveau) = [9]>> and <not <(niveau) = [8]>>> and <not <(niveau) = [13]>>> and <not <(niveau) = [15]>>> then\n        if <not <(niveau) = [18]>> then\n            delete this clone\n        end\n    end\nend\n\n@Feu\n\nwhen I start as a clone\npoint in direction (orientation feu)\ngo to x: (100) y: (-50)\nclear graphic effects\nset size to (80) %\nset [color v] effect to (Couleur feu)\nshow\nrepeat (17)\n    move (4) steps\n    change [ghost v] effect by (6)\n    change size by (-0.5)\n    change [color v] effect by (2)\n    change [brightness v] effect by (2)\nend\ndelete this clone\n\nwhen flag clicked\nset rotation style [don't rotate v]\nset [orientation feu v] to [0]\nhide\nforever\n    Feu [12] [0] [0] [1]\nend\n\ngo to x: (10) y: (-71)\n\ndefine Feu (lvl) (x) (y) (num costume)\nset [couleur feu v] to [0]\nif <(lvl) = (niveau)> then\n    switch costume to (num costume)\n    go to x: (x) y: (y)\n    repeat until <not <(niveau) = (lvl)>>\n        repeat (50)\n            change [couleur feu v] by (0.3)\n            create clone of (_myself_ v)\n            set [orientation feu v] to (pick random (-3) to (3))\n        end\n        wait (2) seconds\n        repeat (50)\n            change [couleur feu v] by (-0.3)\n            create clone of (_myself_ v)\n            set [orientation feu v] to (pick random (-3) to (3))\n        end\n    end\nend\n\nset [niveau v] to [22]\n\n@détecteur\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> and <touching (terrain v)?>> then\n        set [son saut v] to [1]\n    else\n        set [son saut v] to [0]\n    end\n    if <not <touching (terrain v)?>> then\n        wait until <touching (terrain v)?>\n        set [son saut v] to [2]\n    end\nend\n\nwhen flag clicked\nforever\n    go to (player v)\n    set [ghost v] effect to (100)\nend\n\n@Fusée\n\nwhen flag clicked\ngo to x: (150) y: (-95)\nrepeat until <<(niveau) > [22]> and <(Fusée) > [0]>>\n    if <(niveau) > [22]> then\n        wait (0.01) seconds\n        show\n    else\n        hide\n    end\nend\n\nset [niveau v] to [22]\nset [fusée v] to [0]\n\nwhen flag clicked\nswitch costume to (vide v)\nset [fusée v] to [0]\nforever\n    if <touching (player v)?> then\n        set [fusée v] to [1]\n        wait (1) seconds\n        switch costume to (plein v)\n    end\nend\n\nwhen flag clicked\nset [envole v] to [0]\nforever\n    if <(Fusée) = [1]> then\n        wait (1) seconds\n        repeat until <[163] < (y position)>\n            repeat (2)\n                change [envole v] by (0.1)\n                change y by (Envole)\n                change x by (3)\n                if <[163] < (y position)> then\n                    hide\n                end\n            end\n            repeat (2)\n                change [envole v] by (0.1)\n                change y by (Envole)\n                change x by (-3)\n                if <[163] < (y position)> then\n                    hide\n                end\n            end\n        end\n        broadcast (Victoire ! v)\n    end\n    if <[163] < (y position)> then\n        hide\n    end\nend\n\n@Réacteur de la fusée\n\nwhen flag clicked\nforever\n    go to (fusée v)\nend\n\nwhen flag clicked\ngo to (fusée v)\nforever\n    if <(Fusée) > [0]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Fusée) = [1]> then\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nrepeat (50)\n    change size by (-5)\n    change [ghost v] effect by (2)\n    change [brightness v] effect by (3)\n    change [color v] effect by (3)\nend\ndelete this clone\n\nwhen flag clicked\nset size to (200) %\nforever\n    if <(y position) > [163]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(y position) > [163]> then\n        hide\n    end\nend\n\n@Victoire !\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [victoire ! v]\nshow\n\n@Fon de veilleSprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    hide\n    show\n    go [forward v] (100) layers\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Sprite2\n\nforever\n    go to x: (0) y: (0)\n    go to [front v] layer\nend\n\n@pink-and-black-guy-16567587\n\nwhen flag clicked\nwait (1) seconds\ngo to x: (-40) y: (-200)\nset size to (80) %\nforever\n    turn right (0.05) degrees\n    go to [back v] layer\nend\n\n
Mobile friendly ^^\nArrow key to move !\nLove, favorite and follow me ! =D\nHave  a nice game !\n\nTouches directionnelles pour bouger !\nLove, met une étoile et suis moi ! =D\nAmuse toi bien !