-Platformer 2 - _ The space war .
@Stage\n\nwhen flag clicked\nswitch backdrop to ( v)\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        switch backdrop to (entrer dans la cave v)\n    end\n    if <(Level) = [7]> then\n        switch backdrop to (space v)\n    end\n    if <(Level) = [8]> then\n        switch backdrop to (space2 v)\n    end\nend\n\n@I\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    show\n    go to x: (0) y: (0)\nend\n\n@Fusééééééééééééée !!\n\nwhen flag clicked\nforever\n    hide\n    forever\n        if <(Level) = [8]> then\n            forever\n                switch costume to (costume2 v)\n                show\n                forever\n                    go to x: (19) y: (100)\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\nforever\n    go to x: (19) y: (100)\n    if <(Level) = [8]> then\n        show\n    end\nend\n\nwhen I receive [fusees v]\nforever\n    wait (0.8) seconds\n    switch costume to (costume5 v)\n    wait (0.8) seconds\n    switch costume to (costume4 v)\nend\n\nwhen I receive [fusees v]\nforever\n    wait (2) seconds\n    glide (2) secs to x: (800) y: (122)\n    hide\n    broadcast (Win ! v)\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nhide\n\n@Terre\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    play sound [Elektronomia - Sky High \[NCS Release\] v] until done\nend\n\n@SPACE REXOU\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nreset timer\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nset [deaths v] to [0]\n\nwhen flag clicked\ngo to x: (-200) y: (-45)\nset size to (100) %\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nhide variable [level v]\nhide variable [xv v]\nhide variable [yv v]\nforever\n    change [yv v] by (-1)\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <<mouse down?> and <(mouse x) > (x position)>>>> then\n        change [xv v] by (0.9)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <<mouse down?> and <(mouse x) > (x position)>>>> then\n        change [xv v] by (-0.9)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (terre v)?> then\n        change y by (1)\n    end\n    if <touching (terre v)?> then\n        change y by (1)\n    end\n    if <touching (terre v)?> then\n        change y by (1)\n    end\n    if <touching (terre v)?> then\n        change y by (1)\n    end\n    if <touching (terre v)?> then\n        change y by (-4)\n        change x by ((Xv) * (-1))\n        if <<mouse down?> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n            set [yv v] to [14]\n            if <(Xv) > [0]> then\n                set [xv v] to [-10]\n            else\n                set [xv v] to [10]\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching (terre v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (w v) pressed?> or <mouse down?>> or <key (up arrow v) pressed?>> and <touching (terre v)?>> then\n        change [yv v] by (14)\n    end\n    change y by (1)\n    if <(x position) > [240]> then\n        change [level v] by (1)\n        go to x: (-200) y: (-45)\n    end\n    if <<<touching ( red spike/pics v)?> or <<touching (scie v)?> or <touching (lave v)?>>> or <(y position) < [-165]>> then\n        go to x: (-200) y: (-45)\n        start sound [2 v]\n        change [deaths v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (droite/right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (gauche/left v)\n    end\n    if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n        switch costume to (accroupie/crouch v)\n        wait (1) seconds\n        switch costume to (droite/right v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (fusééééééééééééée !! v)?> then\n        hide\n        broadcast (FUSEES v) and wait\n    end\nend\n\ngo to x: (19) y: (-95)\n\n@ red spike/pics\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        show\n        point in direction (90)\n        go to x: (168) y: (-96)\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        show\n        point in direction (-90)\n        go to [back v] layer\n        go to x: (159) y: (40)\n    end\n    if <(Level) = [6]> then\n        go to x: (-25) y: (-55)\n        show\n        point in direction (-90)\n        go to [back v] layer\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nwhen I start as a clone\n\n@scie\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        go to x: (57) y: (-54)\n        show\n        forever\n            turn right (10) degrees\n            go to [back v] layer\n        end\n    end\n    if <(Level) = [3]> then\n        forever\n            hide\n        end\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        show\n        go to x: (-20) y: (-145)\n        forever\n            turn right (10) degrees\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        forever\n            go to [back v] layer\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\nshow\nforever\n    turn right (10) degrees\nend\n\ngo to x: (89) y: (-75)\n\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        show\n        go to [back v] layer\n        go to x: (131) y: (-59)\n        forever\n            turn right (10) degrees\n        end\n    end\nend\n\n@notif\n\nwhen I receive [alert v]\nstop [other scripts in sprite v]\n\nwhen I receive [tick v]\ngo to [front v] layer\nforever\n    if <(Level) = [13]> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to x: (0) y: (50)\ngo to [front v] layer\nhide\nwait (pick random (5) to (10)) seconds\nshow\nrepeat until <(y position) < [6]>\n    change y by (((5) - (y position)) / (6))\nend\nwait (3.5) seconds\nrepeat until <(y position) > [49.5]>\n    change y by (((y position) + (5)) / (5))\nend\nhide\nforever\n    wait (pick random (15) to (20)) seconds\n    show\n    repeat until <(y position) < [6]>\n        change y by (((5) - (y position)) / (6))\n    end\n    wait (3.5) seconds\n    repeat until <(y position) > [49.5]>\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [win ! v]\nwait (1) seconds\nshow\nforever\n    forever\n        wait (0.9) seconds\n        next costume\n    end\nend\n\n
_____________.-Instruction EN-.______________\nArrow keys to move or touch W,A,D and S\n-In mobil you can just jump, I will find a solution!\n-Go to the spacecraft !\n-and have fun !\n15 likes for part 3 \nX NO PUB X\n