To Mars - A Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (mars2 v)\n\nwhen I receive [fin intro mars v]\nnext backdrop\n\nwhen I receive [fin intro mars v]\nforever\n    switch backdrop to (LEVEL)\nend\n\nwhen I receive [intro de la fin v]\nswitch backdrop to (arrière plan25 v)\n\n@PLayer\n\ndefine Platformer Engine\nswitch costume to (111 v)\nchange [y v] by (-0.5)\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n    switch costume to (droit v)\n    change [x v] by (-1)\nend\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n    change [x v] by (1)\n    switch costume to (parachute v)\nend\nset [x v] to ((X) * (0.9))\nchange x by (X)\nif <touching (platforme v)?> then\n    change y by (1)\n    if <touching (platforme v)?> then\n        change y by (1)\n        if <touching (platforme v)?> then\n            change y by (1)\n            if <touching (platforme v)?> then\n                change y by (1)\n                if <touching (platforme v)?> then\n                    change y by (1)\n                    if <touching (platforme v)?> then\n                        change x by (-6)\n                        change x by ((X) * (-1))\n                        if <<<key (up arrow v) pressed?> or <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>> or <<<key (w v) pressed?> or <key (d v) pressed?>> or <touching (platforme v)?>>> 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                            set [x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (Y)\nif <touching (platforme v)?> then\n    change y by ((Y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-0.5)\nif <<touching (platforme v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>>> then\n    set [y v] to [10]\nend\nchange y by (0.5)\nif <<touching (danger v)?> or <<touching (alien v)?> or <touching (alien2 v)?>>> then\n    go to x: (X spaw) y: (Y spaw)\nend\n\n    go to x: (X spaw) y: (Y spaw)\nend\nif <<touching (vent toxic \(boss\)//vent toxic v)?> or <touching (vent toxic \(boss\)//vent toxic2 v)?>> then\n    go to x: (-219) y: (164)\nend\nif <(x position) > [215]> then\n    change [level v] by (1)\n    go to x: (X spaw) y: (Y spaw)\nend\nif <(level2) = [0]> then\n    switch costume to (parachute v)\nelse\n    switch costume to (gauche 2 v)\nend\n\nwhen flag clicked\nforever\n    if <key (up arrow v) pressed?> then\n        switch costume to (haut v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (parachute v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (droit v)\n    end\nend\n\nwhen flag clicked\ngo to x: (-142) y: (151)\n\nwhen I receive [fin intro mars v]\npoint in direction (-90)\nset [x spaw v] to [-151]\nset [y spaw v] to [-30]\ngo to x: (X spaw) y: (Y spaw)\nset size to (80) %\nset [x v] to [0]\nset [y v] to [0]\nrepeat until <(trouvre jet pack) = [1]>\n    Platformer Engine\n    show\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [level2 v] to [0]\n\nwhen flag clicked\nforever\n    play sound [the-arrival by evgeny-bardyuzha Artlist v] until done\nend\n\nwhen I receive [trouve jet pack v]\nforever\n    switch costume to (jet pack v)\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n        point in direction (90)\n        change [x v] by (0.5)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        point in direction (-90)\n        change [x v] by (-0.5)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (platforme v)?> then\n        change y by (1)\n        if <touching (platforme v)?> then\n            change y by (1)\n            if <touching (platforme v)?> then\n                change y by (1)\n                if <touching (platforme v)?> then\n                    change y by (1)\n                    if <touching (platforme v)?> then\n                        change y by (1)\n                    end\n                    if <touching (platforme v)?> then\n                        change x by (-6)\n                        change x by ((X) * (-1))\n                    end\n                    if <<<key (up arrow v) pressed?> or <key (right arrow v) pressed?>> or <<<touching (platforme v)?> or <<mouse down?> and <(y position) < (mouse y)>>> or <<<mouse down?> and <(mouse x) < (x position)>> or <<mouse down?> and <(x position) < (mouse x)>>>>> then\n                        set [y v] to [5]\n                        if <(X) > [0]> then\n                            set [x v] to [-10]\n                        else\n                            set [x v] to [10]\n                        end\n                    else\n                        set [x v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    change y by (-1)\n    if <<<key (space v) pressed?> or <key (up arrow v) pressed?>> or <<key (w v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n        set [y v] to [6]\n    end\n    change y by (1)\n    if <(x position) > [215]> then\n        change [level v] by (1)\n        go to x: (X spaw) y: (Y spaw)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(LEVEL) = [20]> and <(y position) = [-166]>> then\n        broadcast (intro jet pack v)\n    end\nend\n\nwhen flag clicked\nset [trouvre jet pack v] to [0]\n\nwhen I receive [intro jet pack v]\nrepeat until <(trouvre jet pack) = [1]>\n    hide\nend\n\nwhen I receive [trouve jet pack v]\nshow\n\nwhen I receive [trouve jet pack v]\nset [trouvre jet pack v] to [1]\n\nwhen I receive [fin intro mars v]\nrepeat until <(LEVEL) = [20]>\n    repeat (50)\n        if <<<[-179] > (y position)> or <(y position) = [-180]>> and <(LEVEL) = [20]>> then\n            broadcast (intro jet pack v)\n        end\n    end\nend\nrepeat (50)\n    if <<<[-179] > (y position)> or <(y position) = [-180]>> and <(LEVEL) = [20]>> then\n        broadcast (intro jet pack v)\n    end\nend\n\nwhen I receive [intro de la fin v]\nforever\n    hide\nend\n\nwhen I receive [intro de la fin v]\nset [intro de la fin v] to [1]\n\nwhen I receive [intro de la fin v]\nforever\n    hide variable [level v]\nend\n\nwhen I receive [fin intro mars v]\nshow variable [level v]\n\nwhen flag clicked\nhide variable [level v]\n\n@platforme\n\nwhen I receive [fin intro mars v]\nswitch costume to (costume1 v)\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [fin intro mars v]\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [trouve jet pack v]\nshow\n\nwhen I receive [intro jet pack v]\nhide\n\nwhen I receive [fin intro mars v]\nshow\n\nwhen I receive [fin intro mars v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [intro de la fin v]\nforever\n    hide\nend\n\n@danger\n\nwhen I receive [fin intro mars v]\nforever\n    show\n    go to [back v] layer\nend\n\nwhen I receive [fin intro mars v]\nswitch costume to (costume6 v)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\nwhen flag clicked\nswitch costume to (580b585b2edbce24c47b26f3 \(1\)2 v)\nset [level v] to [1]\n\n@intro mars\n\nwhen flag clicked\nrepeat (89)\n    wait (0.1) seconds\n    next costume\nend\nset [intro mars v] to [1]\nbroadcast (fin intro mars v)\n\nwhen flag clicked\nswitch costume to (1008294 v)\nshow\n\nwhen I receive [fin intro mars v]\nhide\n\nwhen flag clicked\nstart sound [galactic-realms by night-rider-87 Artlist v]\nif <(intro mars) = [1]> then\n    stop [this script v]\nend\n\nwhen flag clicked\nset [intro mars v] to [0]\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\nforever\n    go [backward v] (1) layers\nend\n\nwhen I receive [fin intro mars v]\nhide\n\n@alien\n\nwhen flag clicked\nhide\nforever\n    if <(LEVEL) = [18]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset size to (70) %\ngo to x: (0) y: (-70)\nforever\n    repeat (30)\n        change x by (3)\n    end\n    repeat (60)\n        change x by (-3)\n    end\n    repeat (30)\n        change x by (3)\n    end\nend\n\n@alien2\n\nwhen flag clicked\nhide\nforever\n    if <(LEVEL) = [18]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nset size to (70) %\ngo to x: (0) y: (-70)\nforever\n    repeat (30)\n        change x by (5)\n    end\n    repeat (60)\n        change x by (-3)\n    end\n    repeat (30)\n        change x by (3)\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    if <(LEVEL) = [21]> then\n        show\n        if <touching (player v)?> then\n            hide\n            broadcast (intro de la fin v)\n        end\n    end\nend\n\nwhen I receive [fin intro mars v]\nforever\n    hide\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen I receive [intro jet pack v]\nshow\n\nwhen I receive [trouve jet pack 1 v]\nbroadcast (trouve jet pack v)\n\nwhen I receive [intro jet pack v]\nrepeat (49)\n    wait (0.08) seconds\n    next costume\nend\nhide\nbroadcast (trouve jet pack 1 v)\n\nwhen flag clicked\nswitch costume to (costume3 v)\n\n@Sprite4\n\nwhen I receive [intro de la fin v]\nshow\nrepeat (79)\n    wait (0.1) seconds\n    next costume\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@téléchargement (91)\n\nwhen flag clicked\nhide\n\n
*English*    Welcome To Mars ! \n    \nPlease ❤️⭐️ & follow me !\n\nControls : w or up arrow  to jump (or fly with your jet pack) - left & right arrows or a & d to move. \n\nThis game combines adventure, animation and surprises. Beware of aliens!\n21 levels.\n100% possible.\nCan you complete your next mission to Mars?\n\n*Français*    Bienvenue Vers Mars - un Platformer!\nMerci d'❤️⭐️ & de me suivre!\nContrôle : w ou flèche haut pour sauter (or voler avec votre jet pack) - flèches gauche & droite ou a & d pour avancer et reculer. \n\nCe jeu combine l'aventure, l'animation et des surprises. Gare aux aliens!\n21 niveaux.\n100% possible.\nSaurez-vous terminer votre prochaine mission sur Mars?