Avengers || A Platformer - Marvel

Instructions: Avengers || A Platformer \n\nPLEASE READ ALL THE INSTRUCTIONS BEFORE PLAYING THE GAME!!!\n\nYour assistant in the game is J.A.R.V.I.S.\n\nYou have 5 characters :\n\n- Captain America - (can throw and jump on a shield)\n- Iron Man - (can fly)\n- Scarlet Witch (Wanda Maximoff) - (can move red pads ( WASD (moves) - QE (direction))\n- Thor - (can throw the Stormbreaker)\n- Captain Marvel - (flying, shockwave)\n\nYou will have to fight Thanos once you've done all the levels.\n\nControls :\n\n- Arrows to move\n- Scarlet Witch :\n      - Can move grey pads with WASD. QE to change              direction.\n- Iron Man and Captain Marvel (Captain Marvel in the shockwave): \n      - Flight mode : right and left arrows = change                         direction, up and down = move forward, backward\n\n- Use the blue button (down at the left) to restart a level\n- Use the blue button (down at the right) to skip a level\n\nWARNING :\n- Try : https://turbowarp.org/397697916 to make the project work faster\n- Please wait a little bit before starting a new character, it may takes time to load....\n- There are some littles bugs that I'm trying to fix. \n- If there are some big bugs, press the green flag     again\n- If it doesn't work post a comment on the project and I'll try to fix it\n- If you want to improve the project, remix it, and post the link in the comments...\n- Try : https://turbowarp.org/397697916 to make the work faster\n

@Stage\n\nwhen flag clicked\nhide variable [boss hp v]\nset [boss hp v] to [100]\nset [player \(your\) lives v] to [10]\nswitch backdrop to (arrière plan1 v)\nforever\n    play sound [The Avengers v] until done\n    play sound [Endgame start final battle v] until done\nend\n\nwhen I receive [start b v]\nswitch backdrop to (fondphome v)\n\nwhen I receive [characters v]\nwait (1) seconds\nswitch backdrop to (fondpcharacters v)\n\nwhen I receive [home v]\nswitch backdrop to (fondphome v)\n\nset [cm v] to [o]\nset [cpa v] to [o]\nset [im v] to [o]\nset [sw v] to [o]\nset [th v] to [o]\n\nset [character 1 : captain a v] to [p]\nset [character 2 : iron man v] to [p]\nset [character 3 : scarlet witch v] to [p]\nset [character 4 : thor v] to [p]\nset [character 5 : captain marvel v] to [p]\n\nchange [boss hp v] by (-70)\n\nset [cpa v] to [o]\nset [im v] to [o]\nset [sw v] to [o]\nset [th v] to [o]\n\nset [character 1 : captain a v] to [p]\nset [character 2 : iron man v] to [p]\nset [character 3 : scarlet witch v] to [p]\nset [character 4 : thor v] to [p]\n\n@Marvel\n\nwhen flag clicked\nshow\nswitch costume to (marvel8 v)\nrepeat (60)\n    next costume\n    wait (0.05) seconds\nend\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nhide\nclear graphic effects\n\n@Title image\n\nwhen I receive [end gif v]\nset [whirl v] effect to (2000)\nwait (1) seconds\nswitch backdrop to (fomestart v)\nshow\nrepeat (20)\n    change [whirl v] effect by (-100)\nend\nclear graphic effects\ngo to x: (0) y: (0)\npoint in direction (90)\nwait (5) seconds\nrepeat (50)\n    change [pixelate v] effect by (2)\n    change [ghost v] effect by (2)\nend\nhide\nclear graphic effects\nbroadcast (message1 v)\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\nset [boss hp v] to [10]\n\n@Main Logo\n\nwhen I receive [message1 v]\npoint in direction (90)\nswitch costume to (avengerslogo1 v)\ngo to x: (0) y: (-273)\nset size to (1) %\nshow\nset [ghost v] effect to (0)\nset [logo rotation v] to [0]\nset [logo yv v] to [25]\nrepeat (35)\n    change y by (logo yv)\n    change [logo yv v] by (-1)\nend\nreset timer\nrepeat (10)\n    change size by (logo rotation)\n    change x by (logo rotation)\n    change [logo rotation v] by (0.125)\n    point in direction ((([sin v] of ((timer) * (100)) ) * (25)) + (90))\nend\nforever\n    repeat (20)\n        change size by (logo rotation)\n        change x by ((logo rotation) * (2))\n        change [logo rotation v] by (-0.125)\n        point in direction ((([sin v] of ((timer) * (100)) ) * (25)) + (90))\n    end\n    repeat (20)\n        change size by (logo rotation)\n        change x by ((logo rotation) * (2))\n        change [logo rotation v] by (0.125)\n        point in direction ((([sin v] of ((timer) * (100)) ) * (25)) + (90))\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nrepeat (35)\n    change size by (1.5)\nend\nforever\n    set [ghost v] effect to (50)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat ((size) / (2))\n    change size by (-2)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\npoint in direction ((([sin v] of ((timer) * (100)) ) * (25)) + (90))\n\nwhen I receive [message1 v]\nrepeat (10)\n    show\nend\n\nwhen I receive [start b v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@characters\n\nwhen flag clicked\nset [next level reset v] to [0]\nset [levels ok v] to [0]\nset rotation style [left-right v]\nset [character v] to [0]\nset [clonecharacter v] to [0]\nhide\n\nwhen I receive [levels v]\nif <not <(Character) = [2]>> then\n    switch costume to (Character)\n    point in direction (90)\n    show\n    point in direction (90)\n    go to [front v] layer\n    set [yv v] to [0]\n    go to x: (-198) y: (-45)\n    set size to (30) %\n    forever\n        Physics\n    end\nend\n\nwhen I receive [levels v]\nforever\n    wait (0.03) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (Clonecharacter)\nset size to (25) %\nset [ghost v] effect to (0)\npoint in direction (Direction)\nrepeat (25)\n    change [ghost v] effect by (4)\n    change size by (-0.5)\nend\ndelete this clone\n\ndefine Physics\nif <(Character) = [1]> then\n    if <key (right arrow v) pressed?> then\n        change [xmovement v] by (2)\n        point in direction (90)\n    else\n        if <key (left arrow v) pressed?> then\n            change [xmovement v] by (-2)\n            point in direction (-90)\n        end\n    end\n    set [xmovement v] to ((Xmovement) * ((0.78) - (Friction)))\n    change x by (Xmovement)\n    change [yv v] by (-1.2)\n    if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching (captain america shield v)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching (captain america shield v)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching (captain america shield v)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching (captain america shield v)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching (captain america shield v)?>> then\n        change x by ((Xmovement) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n            if <(Xmovement) > [0]> then\n                set [xmovement v] to [-7]\n            else\n                set [xmovement v] to [7]\n            end\n        else\n            set [xmovement v] to [0]\n        end\n    end\n    change y by (Yv)\n    if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching (captain america shield v)?>> then\n        change y by ((Yv) - ((Yv) * (2)))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<touching color (#2ce600)?> or <touching (captain america shield v)?>> and <key (up arrow v) pressed?>> then\n        set [yv v] to [15]\n    end\n    if <(y position) < [-179]> then\n        go to x: (-198) y: (-45)\n    end\n    if <touching color (#fcff00)?> then\n        set [yv v] to [26]\n    end\n    if <touching color (#e60000)?> then\n        hide\n        go to x: (-198) y: (-45)\n        show\n        set [ghost v] effect to (100)\n        repeat (25)\n            change [ghost v] effect by (-4)\n        end\n    end\n    if <(x position) > [239]> then\n        hide\n        broadcast (next level v)\n        set [next? v] to [1]\n        wait (0.1) seconds\n        set [next? v] to [0]\n        stop [this script v]\n    end\nelse\n    if <<(Character) = [5]> and <(Shockwave???) = [1]>> then\n        set rotation style [all around v]\n        if <<key (down arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n            move (-5) steps\n        end\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n            move (5) steps\n        end\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n            turn right (5) degrees\n        end\n        if <<key (left arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n            turn left (5) degrees\n        end\n        if <(y position) < [-90]> then\n            go to x: (x position) y: (-90)\n        end\n        if <(x position) > [239]> then\n            go to x: (-198) y: (-45)\n            hide\n            broadcast (next level v)\n            set [next? v] to [1]\n            wait (0.1) seconds\n            set [next? v] to [0]\n        end\n        if <touching color (#ff00fc)?> then\n            hide\n            go to x: (-198) y: (-45)\n            show\n            set [ghost v] effect to (100)\n            repeat (25)\n                change [ghost v] effect by (-4)\n            end\n        end\n    else\n        set rotation style [left-right v]\n        if <key (right arrow v) pressed?> then\n            change [xmovement v] by (2)\n            point in direction (90)\n        else\n            if <key (left arrow v) pressed?> then\n                change [xmovement v] by (-2)\n                point in direction (-90)\n            end\n        end\n        set [xmovement v] to ((Xmovement) * ((0.78) - (Friction)))\n        change x by (Xmovement)\n        change [yv v] by (-1.2)\n        if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching color (#b01414)?>> then\n            change y by (1)\n        end\n        if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching color (#b01414)?>> then\n            change y by (1)\n        end\n        if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching color (#b01414)?>> then\n            change y by (1)\n        end\n        if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching color (#b01414)?>> then\n            change y by (1)\n        end\n        if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching color (#b01414)?>> then\n            change x by ((Xmovement) * (-1))\n            if <key (up arrow v) pressed?> then\n                set [yv v] to [15]\n                if <(Xmovement) > [0]> then\n                    set [xmovement v] to [-7]\n                else\n                    set [xmovement v] to [7]\n                end\n            else\n                set [xmovement v] to [0]\n            end\n        end\n        change y by (Yv)\n        if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching color (#b01414)?>> then\n            change y by ((Yv) - ((Yv) * (2)))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        if <<<touching color (#2ce600)?> and <key (up arrow v) pressed?>> or <touching color (#b01414)?>> then\n            set [yv v] to [15]\n        end\n        if <(y position) < [-179]> then\n            go to x: (-198) y: (-45)\n        end\n        if <(x position) > [239]> then\n            hide\n            broadcast (next level v)\n            set [next? v] to [1]\n            wait (0.1) seconds\n            set [next? v] to [0]\n            stop [this script v]\n        end\n        if <touching color (#e60000)?> then\n            hide\n            go to x: (-198) y: (-45)\n            show\n            set [ghost v] effect to (100)\n            repeat (25)\n                change [ghost v] effect by (-4)\n            end\n        end\n    end\nend\nif <(Characters) = [6]> then\n    set [clonecharacter v] to [9]\n    switch costume to (thor v)\n    if <key (right arrow v) pressed?> then\n        change [xmovement v] by (2)\n        point in direction (90)\n    else\n        if <key (left arrow v) pressed?> then\n            change [xmovement v] by (-2)\n            point in direction (-90)\n        end\n    end\n    set [xmovement v] to ((Xmovement) * ((0.78) - (Friction)))\n    change x by (Xmovement)\n    change [yv v] by (-1.2)\n    if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching (captain america shield v)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching (captain america shield v)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching (captain america shield v)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching (captain america shield v)?>> then\n        change y by (1)\n    end\n    if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching (captain america shield v)?>> then\n        change x by ((Xmovement) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n            if <(Xmovement) > [0]> then\n                set [xmovement v] to [-7]\n            else\n                set [xmovement v] to [7]\n            end\n        else\n            set [xmovement v] to [0]\n        end\n    end\n    change y by (Yv)\n    if <<<touching color (#2ce600)?> or <touching color (#49ff1a)?>> or <touching (captain america shield v)?>> then\n        change y by ((Yv) - ((Yv) * (2)))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<touching color (#2ce600)?> or <touching (captain america shield v)?>> and <key (up arrow v) pressed?>> then\n        set [yv v] to [15]\n    end\n    if <(y position) < [-179]> then\n        go to x: (-198) y: (-45)\n    end\n    if <touching color (#fcff00)?> then\n        set [yv v] to [26]\n    end\n    if <touching color (#e60000)?> then\n        hide\n        go to x: (-198) y: (-45)\n        show\n        set [ghost v] effect to (100)\n        repeat (25)\n            change [ghost v] effect by (-4)\n        end\n    end\nend\n\nwhen I receive [next level v]\nif <not <(Character) = [2]>> then\n    set [yv v] to [0]\n    go to x: (-198) y: (-45)\n    show\n    set [ghost v] effect to (100)\n    repeat (25)\n        change [ghost v] effect by (-4)\n    end\nelse\n    hide\nend\n\nwhen I receive [restart v]\nset [yv v] to [0]\ngo to x: (-198) y: (-45)\n\nwhen I receive [levels v]\nforever\n    set [direction v] to (direction)\nend\n\nwhen I receive [next level v]\nchange [levels ok v] by (1)\n\nwhen I receive [start b v]\nhide\n\nwhen I receive [lost v]\nhide\n\n\n\nwhen flag clicked\nforever\n    if <touching color (#e62500)?> then\n        go to x: (-198) y: (-45)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<not <(Shockwave???) = [1]>> and <(Character) = [5]>> or <(Character) = [4]>> then\n        if <<<<<<touching color (#ff00ea)?> or <touching color (#00feff)?>> or <touching color (#009293)?>> or <touching color (#4a0000)?>> or <touching color (#ff00fc)?>> or <touching (couteaux v)?>> then\n            hide\n            go to x: (-198) y: (-45)\n            show\n            set [ghost v] effect to (100)\n            repeat (25)\n                change [ghost v] effect by (-4)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nrepeat until <(cstm) = [1]>\n    set [ghost v] effect to (100)\nend\nset [ghost v] effect to (0)\n\nwhen I receive [gost v]\nset [ghost v] effect to (0)\n\nwhen I receive [hidecharacter v]\nrepeat until <(cstm) = [1]>\n    set [ghost v] effect to (100)\n    go to x: (-142) y: (-130)\n    go to [back v] layer\nend\nset [ghost v] effect to (0)\ngo to [front v] layer\n\ngo to x: (-142) y: (-55)\n\nwhen flag clicked\nforever\n    if <<<touching (sprite9 v)?> or <touching (sprite1 v)?>> or <touching (thanos v)?>> then\n        hide\n        go to x: (-198) y: (-45)\n        show\n        set [ghost v] effect to (100)\n        repeat (25)\n            change [ghost v] effect by (-4)\n        end\n    end\nend\n\nbroadcast (levels v)\n\nwhen I receive [you won v]\nstop [other scripts in sprite v]\nwait (1) seconds\npoint in direction (90)\nshow\nswitch costume to (thor v)\ngo to x: (-244) y: (-89)\nglide (1) secs to x: (-189) y: (-89)\nbroadcast (jump v)\nglide (1) secs to x: (-137) y: (14)\nglide (1) secs to x: (-107) y: (88)\n\nwhen I receive [you won v]\n\nwhen I receive [jump v]\nset rotation style [all around v]\nrepeat (40)\n    turn right (20) degrees\nend\npoint in direction (115)\nbroadcast (cuthead v)\n\nwhen flag clicked\npoint in direction (90)\n\nwhen I receive [hidecharacter v]\nhide\n\nshow\n\nwhen I receive [levels v]\n\nwhen flag clicked\nforever\n    if <<touching (sprite10 v)?> or <touching (thanos2 v)?>> then\n        change [player \(your\) lives v] by (-1)\n        hide\n        go to x: (-198) y: (-45)\n        show\n        set [ghost v] effect to (100)\n        repeat (25)\n            change [ghost v] effect by (-4)\n        end\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\ngo to [front v] layer\nwait (1) seconds\nshow\ngo to x: (-317) y: (173)\nswitch costume to (costume1 v)\nglide (1.6) secs to x: (-83) y: (173)\nglide (0.5) secs to x: (-83) y: (147)\ncreate clone of (_myself_ v)\n\nswitch costume to (costume1 v)\n\nswitch costume to (costume2 v)\n\nwhen I start as a clone\nswitch costume to (costume2 v)\ngo to x: (330) y: (-182)\nglide (1.6) secs to x: (90) y: (-182)\nglide (0.5) secs to x: (90) y: (-141)\nwait (1) seconds\nbroadcast (end gif v)\ndelete this clone\n\nwhen I receive [end gif v]\nhide\n\n@thanos\n\nwhen flag clicked\nhide\nset size to (40) %\n\nwhen I receive [loki v]\nset rotation style [left-right v]\nswitch costume to (loki v)\nshow\nwait (1) seconds\ngo to (random position v)\nrepeat until <(loki) = [1]>\n    wait (1) seconds\n    show\n    glide (1.5) secs to (random position v)\n    broadcast (knife... v)\n    glide (1.5) secs to (random position v)\n    broadcast (knife... v)\n    glide (1.5) secs to (random position v)\n    broadcast (knife... v)\n    glide (1.5) secs to x: (255) y: (pick random (-185) to (90))\n    go to x: (-260) y: (y position)\n    hide\nend\nhide\n\nwhen I receive [rim v]\nswitch costume to (reverse iron man v)\nshow\nset [up v] to [o]\nset [down v] to [o]\nset rotation style [left-right v]\nset size to (40) %\ngo to x: (pick random (-100) to (190)) y: (5)\npoint in direction (90)\nglide (1) secs to x: (200) y: (5)\nrepeat until <(rim) = [1]>\n    point in direction (-90)\n    glide (6) secs to x: (-100) y: (5)\n    point in direction (90)\n    glide (6) secs to x: (200) y: (5)\nend\nhide\n\nwhen I start as a clone\nswitch costume to (reverse iron man v)\nshow\nif <(up) = [o]> then\n    show\n    set [up v] to [n]\n    set rotation style [left-right v]\n    set size to (40) %\n    go to x: (pick random (-100) to (190)) y: (95)\n    point in direction (90)\n    glide (1) secs to x: (200) y: (95)\n    repeat until <(rim) = [1]>\n        point in direction (-90)\n        glide (6) secs to x: (-100) y: (95)\n        point in direction (90)\n        glide (6) secs to x: (200) y: (95)\n    end\n    hide\nelse\n    if <(down) = [o]> then\n        show\n        set [down v] to [n]\n        set rotation style [left-right v]\n        set size to (40) %\n        go to x: (pick random (-100) to (190)) y: (-80)\n        point in direction (90)\n        glide (1) secs to x: (200) y: (-80)\n        repeat until <(rim) = [1]>\n            point in direction (-90)\n            glide (6) secs to x: (-100) y: (-80)\n            point in direction (90)\n            glide (6) secs to x: (200) y: (-80)\n        end\n        hide\n    end\nend\n\nwhen I receive [rim v]\nwait (1) seconds\ncreate clone of (_myself_ v)\nwait (1) seconds\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [1.x v] to [-157]\nset [1.y v] to [-80]\nset [2.x v] to [57]\nset [2.y v] to [-80]\nset [3.x v] to [190]\nset [3.y v] to [-15]\nset [4.x v] to [90]\nset [4.y v] to [68]\nset [5.x v] to [-162]\nset [5.y v] to [67]\nset [6.x v] to [-50]\nset [6.y v] to [-10]\nset [7.x v] to [-204]\nset [7.y v] to [169]\nset [8.x v] to [77]\nset [8.y v] to [182]\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <(rim) = [1]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [rim v]\nif <(rim) = [1]> then\n    stop [other scripts in sprite v]\n    hide\nend\n\n@J.A.R.V.I.S\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nset size to (100) %\nswitch costume to (hi v)\nwait (1) seconds\ngo to x: (-303) y: (111)\nshow\nglide (1) secs to x: (-155) y: (111)\nwait (1) seconds\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nhide\nclear graphic effects\nswitch costume to (i am v)\nshow\ngo to x: (0) y: (196)\nglide (1) secs to x: (0) y: (-100)\nwait (3) seconds\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nhide\nclear graphic effects\nbroadcast (start b v)\nwait (1) seconds\nswitch costume to (click v)\nshow\ngo to x: (-450) y: (60)\nglide (1) secs to x: (-150) y: (60)\nbroadcast (hide v)\n\nwhen I receive [hide v]\nrepeat until <(clkh) = [1]>\n    repeat (25)\n        change [fisheye v] effect by (4)\n    end\n    repeat (25)\n        change [fisheye v] effect by (-4)\n    end\nend\nhide\n\nwhen I receive [levels v]\nif <(Character) = [3]> then\n    broadcast (clicktothrow v)\n    stop [this script v]\nend\n\nwhen I receive [characters v]\nif <not <<<(Sw) = [o]> and <(Im) = [o]>> and <<<(Cm) = [o]> and <(Cpa) = [o]>> and <(Th) = [o]>>>> then\n    wait (2) seconds\n    clear graphic effects\n    switch costume to (choose v)\n    go to x: (-4) y: (-14)\n    set size to (0) %\n    wait (1) seconds\n    hide\n    clear graphic effects\n    show\n    repeat (20)\n        change size by (5)\n    end\n    wait until <mouse down?>\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\n    set size to (100) %\nend\n\nwhen I receive [next level v]\nrepeat (24)\n    change [ghost v] effect by (4)\nend\nhide\nclear graphic effects\nhide\n\nwhen I receive [wall jump v]\nif <not <(Character) = [5]>> then\n    show\n    switch costume to (costume1 v)\n    go to x: (36) y: (100)\n    glide (1) secs to x: (36) y: (30)\nelse\n    show\n    switch costume to (costume6 v)\n    go to x: (0) y: (188)\n    glide (1) secs to x: (0) y: (155)\nend\n\nwhen I receive [clicktothrow v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Character) = [1]> then\n    clear graphic effects\n    show\n    go to [front v] layer\n    switch costume to (costume2 v)\n    go to x: (0) y: (-190)\n    glide (1) secs to x: (0) y: (-155)\n    wait (5) seconds\n    delete this clone\nend\nif <(Character) = [4]> then\n    clear graphic effects\n    show\n    switch costume to (costume3 v)\n    go to [front v] layer\n    go to x: (0) y: (-210)\n    glide (1) secs to x: (0) y: (-147)\n    wait (5) seconds\n    delete this clone\nend\nif <<(Character) = [5]> and <not <(Characters) = [6]>>> then\n    clear graphic effects\n    show\n    go to [front v] layer\n    switch costume to (costume5 v)\n    go to x: (0) y: (-210)\n    glide (1) secs to x: (0) y: (-130)\n    wait (5) seconds\n    delete this clone\nend\n\nwhen I receive [block11\(1\) v]\n\nwhen I receive [storm v]\n\nwhen I receive [time v]\n\nrepeat (5)\n    change [time v] by (-1)\n    wait (1) seconds\nend\n\nwhen I receive [andtwo v]\n\nwhen I receive [levels v]\nif <(Characters) = [6]> then\n    stop [other scripts in sprite v]\n    forever\n        hide\n    end\nend\n\nbroadcast (characters v)\n\nshow\nswitch costume to (costume3 v)\ngo to x: (0) y: (180)\nglide (1) secs to x: (0) y: (144)\n\nforever\n\nwhen I receive [levels v]\nif <(Character) = [2]> then\n    clear graphic effects\n    switch costume to (flechesironman v)\n    go to x: (0) y: (191)\n    hide\n    switch costume to (flechesironman v)\n    wait (0.5) seconds\n    show\n    glide (1.5) secs to x: (0) y: (25)\nelse\n    if <(Character) = [3]> then\n        clear graphic effects\n        show\n        switch costume to (costume4 v)\n        go to x: (0) y: (259)\n        glide (1) secs to x: (0) y: (120)\n        wait (8) seconds\n        repeat (25)\n            change [ghost v] effect by (4)\n        end\n        hide\n        clear graphic effects\n    else\n        broadcast (clicktothrow v)\n        clear graphic effects\n        go to x: (0) y: (70)\n        hide\n        switch costume to (fleches v)\n        wait (0.5) seconds\n        show\n        glide (1) secs to x: (0) y: (0)\n    end\nend\n\nif  then\n\nshow\n\nwhen I receive [lost v]\nstop [other scripts in sprite v]\ngo to x: (0) y: (0)\ngo to [front v] layer\nset size to (0) %\nswitch costume to (costume7 v)\nclear graphic effects\nshow\nrepeat (20)\n    change size by (5)\nend\nwait (0.5) seconds\nhide\n\n@Sprite3\n\nwhen flag clicked\nset [yon v] to [1]\nhide\n\nwhen this sprite clicked\nif <(YoN) = [1]> then\n    broadcast (nein v)\nend\nif <(YoN) = [2]> then\n    repeat (25)\n        change [pixelate v] effect by (4)\n    end\n    hide\n    clear graphic effects\n    broadcast (levels v)\n    set [yon v] to [1]\nend\n\nwhen I receive [start b v]\nset [pixelate v] effect to (100)\nwait (1) seconds\nshow\nrepeat (25)\n    change [pixelate v] effect by (-4)\nend\n\nwhen I receive [characters v]\nrepeat (25)\n    change [pixelate v] effect by (4)\nend\nhide\nclear graphic effects\n\nwhen I receive [home v]\nset [pixelate v] effect to (100)\nwait (1) seconds\nshow\nrepeat (25)\n    change [pixelate v] effect by (-4)\nend\n\n@Sprite2\n\nwhen flag clicked\nset [clkh v] to [0]\nhide\n\nwhen I receive [start b v]\nset [pixelate v] effect to (100)\nwait (1) seconds\nshow\nrepeat (25)\n    change [pixelate v] effect by (-4)\nend\n\nwhen this sprite clicked\nset [clkh v] to [1]\nbroadcast (characters v)\nset [yon v] to [2]\nrepeat (25)\n    change [pixelate v] effect by (4)\nend\nhide\nclear graphic effects\n\nwhen I receive [okstart v]\nrepeat (25)\n    change [pixelate v] effect by (4)\nend\nhide\nclear graphic effects\n\n@character 1\n\nwhen flag clicked\nset [characters v] to [0]\nset [character 1 : captain a v] to [pp]\nhide\nswitch costume to (captain america v)\n\nwhen I receive [characters v]\nif <(Character 1 : Captain A) = [pp]> then\n    go to x: (0) y: (0)\n    wait (1.5) seconds\n    show\n    set size to (0) %\n    set [pixelate v] effect to (100)\n    repeat (50)\n        change [pixelate v] effect by (-2)\n        change size by (2)\n    end\n    clear graphic effects\nend\nif <(Character 1 : Captain A) = [p]> then\n    hide\nend\n\nwhen this sprite clicked\nset [next level reset v] to [0]\nif <(Characters) = [0]> then\n    set [character 1 : captain a v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (captain america2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [1]\nend\n\nwhen I receive [levels v]\nhide\n\nwhen this sprite clicked\nif <(Characters) = [1]> then\n    set [character 1 : captain a v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (captain america2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [2]\nend\n\nwhen this sprite clicked\nif <(Characters) = [2]> then\n    set [character 1 : captain a v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (captain america2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [3]\nend\n\nwhen this sprite clicked\nif <(Characters) = [3]> then\n    set [character 1 : captain a v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (captain america2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [4]\nend\n\nwhen this sprite clicked\nif <(Characters) = [4]> then\n    set [character 1 : captain a v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (captain america2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [5]\nend\n\nwhen this sprite clicked\nset [character v] to [1]\nset [clonecharacter v] to [6]\n\nwhen I receive [home v]\nhide\n\nset [character 1 : captain a v] to [p]\n\n@character 2\n\nwhen flag clicked\nset [characters v] to [0]\nset [captain a v] to [0]\nset [character 2 : iron man v] to [pp]\nhide\nswitch costume to (iron man v)\n\nwhen I receive [characters v]\nif <(Character 2 : Iron Man) = [pp]> then\n    go to x: (0) y: (0)\n    wait (1.5) seconds\n    show\n    set size to (0) %\n    set [pixelate v] effect to (100)\n    repeat (50)\n        change [pixelate v] effect by (-2)\n        change size by (2)\n    end\n    clear graphic effects\nend\nif <(Character 2 : Iron Man) = [p]> then\n    hide\nend\n\nrepeat (50)\n    change [pixelate v] effect by (2)\nend\nhide\nclear graphic effects\nswitch costume to (iron man2 v)\n\nwhen I receive [levels v]\nhide\n\nwhen this sprite clicked\nif <(Characters) = [0]> then\n    set [character 2 : iron man v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (iron man2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [1]\nend\n\nwhen this sprite clicked\nif <(Characters) = [1]> then\n    set [character 2 : iron man v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (iron man2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [2]\nend\n\nwhen this sprite clicked\nset [next level reset v] to [0]\nif <(Characters) = [2]> then\n    set [character 2 : iron man v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (iron man2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [3]\nend\n\nwhen this sprite clicked\nif <(Characters) = [3]> then\n    set [character 2 : iron man v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (iron man2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [4]\nend\n\nwhen this sprite clicked\nif <(Characters) = [4]> then\n    set [character 2 : iron man v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (iron man2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [5]\nend\n\nwhen this sprite clicked\nset [character v] to [2]\nset [clonecharacter v] to [7]\n\nwhen I receive [home v]\nhide\n\nset [character 2 : iron man v] to [p]\n\n@character 3\n\nwhen flag clicked\nset [character 3 : scarlet witch v] to [pp]\nset [characters v] to [0]\nset [captain a v] to [0]\nhide\nswitch costume to (scarlet witch v)\n\nwhen I receive [characters v]\nif <(Character 3 : Scarlet Witch) = [pp]> then\n    go to x: (0) y: (0)\n    wait (1.5) seconds\n    show\n    set size to (0) %\n    set [pixelate v] effect to (100)\n    repeat (50)\n        change [pixelate v] effect by (-2)\n        change size by (2)\n    end\n    clear graphic effects\nend\nif <(Character 3 : Scarlet Witch) = [p]> then\n    hide\nend\n\nrepeat (50)\n    change [pixelate v] effect by (2)\nend\nhide\nclear graphic effects\nswitch costume to (scarlet witch2 v)\n\nwhen I receive [levels v]\nhide\n\nwhen this sprite clicked\nset [next level reset v] to [0]\nif <(Characters) = [0]> then\n    set [character 3 : scarlet witch v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (scarlet witch2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [1]\nend\n\nwhen this sprite clicked\nif <(Characters) = [1]> then\n    set [character 3 : scarlet witch v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (scarlet witch2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [2]\nend\n\nwhen this sprite clicked\nif <(Characters) = [2]> then\n    set [character 3 : scarlet witch v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (scarlet witch2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [3]\nend\n\nwhen this sprite clicked\nif <(Characters) = [3]> then\n    set [character 3 : scarlet witch v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (scarlet witch2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [4]\nend\n\nwhen this sprite clicked\nif <(Characters) = [4]> then\n    set [character 3 : scarlet witch v] to [p]\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (scarlet witch2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [5]\nend\n\nwhen this sprite clicked\nset [character v] to [3]\nset [clonecharacter v] to [8]\n\nwhen I receive [home v]\nhide\n\nset [character 4 : thor v] to [p]\n\nwait (2) seconds\n\n@character 4\n\nwhen flag clicked\nset [character 4 : thor v] to [pp]\nset [characters v] to [0]\nset [captain a v] to [0]\nhide\nswitch costume to (thor v)\n\nwhen I receive [characters v]\nif <(Character 4 : Thor) = [pp]> then\n    go to x: (0) y: (0)\n    wait (1.5) seconds\n    show\n    set size to (0) %\n    set [pixelate v] effect to (100)\n    repeat (50)\n        change [pixelate v] effect by (-2)\n        change size by (2)\n    end\n    clear graphic effects\nend\nif <(Character 4 : Thor) = [p]> then\n    hide\nend\n\nrepeat (50)\n    change [pixelate v] effect by (2)\nend\nhide\nclear graphic effects\nswitch costume to (thor2 v)\n\nwhen I receive [levels v]\nhide\n\nwhen this sprite clicked\nset [next level reset v] to [0]\nif <(Characters) = [0]> then\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (thor2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [1]\nend\n\nwhen this sprite clicked\nif <(Characters) = [1]> then\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (thor2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [2]\nend\n\nwhen this sprite clicked\nset [character 4 : thor v] to [p]\nif <(Characters) = [2]> then\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (thor2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [3]\nend\n\nwhen this sprite clicked\nif <(Characters) = [3]> then\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (thor2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [4]\nend\n\nwhen this sprite clicked\nif <(Characters) = [4]> then\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (thor2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [5]\nend\n\nwhen this sprite clicked\nset [character v] to [4]\nset [clonecharacter v] to [9]\n\nwhen I receive [home v]\nhide\n\nset [character 4 : thor v] to [p]\n\n@character 5\n\nwhen flag clicked\nset [character 5 : captain marvel v] to [pp]\nset [levels acc v] to [0]\nset [characters v] to [0]\nset [captain a v] to [0]\nhide\nswitch costume to (captain marvel v)\n\nwhen I receive [characters v]\nif <(Character 5 : Captain Marvel) = [pp]> then\n    go to x: (0) y: (0)\n    wait (1.5) seconds\n    show\n    set size to (0) %\n    set [pixelate v] effect to (100)\n    repeat (50)\n        change [pixelate v] effect by (-2)\n        change size by (2)\n    end\n    clear graphic effects\nend\nif <(Character 5 : Captain Marvel) = [p]> then\n    hide\nend\n\nwhen I receive [levels v]\nhide\n\nwhen this sprite clicked\nset [next level reset v] to [0]\nif <(Characters) = [0]> then\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (captain marvel2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [1]\nend\n\nwhen this sprite clicked\nif <(Characters) = [1]> then\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (captain marvel2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [2]\nend\n\nwhen this sprite clicked\nif <(Characters) = [2]> then\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (captain marvel2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [3]\nend\n\nwhen this sprite clicked\nset [character 5 : captain marvel v] to [p]\nif <(Characters) = [3]> then\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (captain marvel2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [4]\nend\n\nwhen this sprite clicked\nif <(Characters) = [4]> then\n    repeat (50)\n        change [pixelate v] effect by (2)\n    end\n    hide\n    clear graphic effects\n    switch costume to (captain marvel2 v)\n    broadcast (home v)\n    wait (1) seconds\n    set [characters v] to [5]\nend\n\nwhen this sprite clicked\nset [character v] to [5]\nset [clonecharacter v] to [10]\nset [shockwave v] to [0]\nset [shockwave??? v] to [0]\n\nwhen I receive [home v]\nhide\n\nset [character 5 : captain marvel v] to [p]\n\n@platforme\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [levels v]\nset [cstm v] to [1]\nswitch backdrop to (fondpjeu v)\nif <(Character) = [1]> then\n    broadcast (skipshowr v)\n    switch costume to (costume1 v)\n    show\nend\nif <(Character) = [2]> then\n    broadcast (skipshowr v)\n    switch costume to (costume6 v)\n    show\nend\nif <(Character) = [3]> then\n    broadcast (skipshowr v)\n    switch costume to (costume11 v)\n    show\nend\nif <(Character) = [4]> then\n    broadcast (skipshowr v)\n    switch costume to (costume16 v)\n    show\nend\nif <(Character) = [5]> then\n    broadcast (skipshowr v)\n    switch costume to (costume21 v)\n    show\nend\nif <(Characters) = [6]> then\n    show\n    broadcast (skiphider v)\n    forever\n        switch costume to (costume27 v)\n    end\nend\n\nwhen flag clicked\nset [ok??? v] to [0]\ngo to x: (36) y: (28)\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (wall jump v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <<(costume [number v]) = [11]> and <(Character) = [3]>> then\n        broadcast (block11\(1\) v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [12]> then\n        broadcast (block12\(2\) v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [13]> then\n        broadcast (block13\(3\) v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [14]> then\n        broadcast (block14\(4\) v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [1]> then\n        broadcast (clicktothrow v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [16]> then\n        broadcast (storm v)\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [2]> then\n        set [ok??? v] to [1]\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [5]> then\n        set [next level reset v] to [1]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [10]> then\n        set [next level reset v] to [200]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [15]> then\n        set [next level reset v] to [400]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [20]> then\n        set [next level reset v] to [600]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [25]> then\n        set [next level reset v] to [800]\n    end\nend\n\nwhen flag clicked\nset [next level reset v] to [0]\n\nset [next level reset v] to [1]\n\nwhen I receive [levels v]\nforever\n    if <not <<<<(costume [number v]) = [5]> or <<(costume [number v]) = [10]> or <(costume [number v]) = [15]>>> or <<(costume [number v]) = [20]> or <(costume [number v]) = [25]>>> or <(costume [number v]) = [27]>>> then\n        if <<<<(Next level reset) > [1]> and <(Next level reset) < [100]>> or <<(Next level reset) > [200]> and <(Next level reset) < [300]>>> or <<<<(Next level reset) > [400]> and <(Next level reset) < [500]>> or <<(Next level reset) > [600]> and <(Next level reset) < [700]>>> or <<(Next level reset) > [800]> and <(Next level reset) < [900]>>>> then\n            broadcast (start b v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [next level v]\nwait (0.5) seconds\nchange [next level reset v] by (1)\n\nwhen I receive [levels v]\nforever\n    if <not <<<<(costume [number v]) = [5]> or <<(costume [number v]) = [10]> or <(costume [number v]) = [15]>>> or <<(costume [number v]) = [20]> or <(costume [number v]) = [25]>>> or <<<(costume [number v]) = [6]> or <<(costume [number v]) = [11]> or <(costume [number v]) = [16]>>> or <<(costume [number v]) = [21]> or <(costume [number v]) = [26]>>>>> then\n        set [next level reset v] to [0]\n    end\nend\n\nwhen I receive [start b v]\nhide\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [17]> then\n        broadcast (showbreak v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [18]> then\n        broadcast (showbreak2 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [19]> then\n        broadcast (stopknifes v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        broadcast (gost v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [cstm v] to [0]\n\nforever\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (hidecharacter v)\n        set [cstm v] to [0]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        set [cstm v] to [1]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [19]> then\n        broadcast (showb3 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [20]> then\n        broadcast (ciblesknifes v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [19]> then\n        broadcast (loki v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [23]> then\n        broadcast (fire! v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [24]> then\n        set [fire v] to [1]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [24]> then\n        broadcast (cmend v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [24]> then\n        broadcast (fire2 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nset [end v] to [0]\nforever\n    if <(costume [number v]) = [26]> then\n        set [end v] to [1]\n    end\nend\n\nwhen I receive [levels v]\nset [loki v] to [0]\nforever\n    if <(costume [number v]) = [20]> then\n        set [loki v] to [1]\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (fire1 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nset [fire1 v] to [0]\nforever\n    if <(costume [number v]) = [3]> then\n        set [fire1 v] to [1]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (fire3 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nset [fire3 v] to [0]\nforever\n    if <(costume [number v]) = [6]> then\n        set [fire3 v] to [1]\n    end\nend\n\nwhen I receive [levels v]\nset [fire 4 v] to [0]\nforever\n    if <(costume [number v]) = [4]> then\n        set [fire 4 v] to [1]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [3]> then\n        broadcast (fire4 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nset [rim v] to [0]\nforever\n    if <(costume [number v]) = [11]> then\n        set [rim v] to [1]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (rim v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [5]> then\n        set [cpa v] to [o]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [10]> then\n        set [im v] to [o]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [15]> then\n        set [sw v] to [o]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [20]> then\n        set [th v] to [o]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [25]> then\n        set [cm v] to [o]\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(costume [number v]) = [25]> then\n        set [fire2 v] to [1]\n        hide variable [shockwave v]\n        broadcast (cmend2 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [levels v]\nif <(Characters) = [6]> then\n    repeat until <(Boss HP) = [0]>\n        wait (10) seconds\n        clear graphic effects\n        repeat (20)\n            change [whirl v] effect by (10)\n        end\n        wait (5) seconds\n        repeat (20)\n            change [whirl v] effect by (-10)\n        end\n        wait (10) seconds\n        repeat (20)\n            change [whirl v] effect by (-10)\n        end\n        wait (5) seconds\n        repeat (20)\n            change [fisheye v] effect by (5)\n        end\n        wait (5) seconds\n        repeat (20)\n            change [fisheye v] effect by (-6)\n        end\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(Boss HP) = [0]> then\n        clear graphic effects\n        stop [other scripts in sprite v]\n        broadcast (you won v)\n        next costume\n        stop [this script v]\n    end\n    if <(Player \(your\) lives) = [0]> then\n        clear graphic effects\n        broadcast (lost v)\n        wait (1) seconds\n        broadcast (start b v)\n        hide\n        stop [this script v]\n    end\nend\n\nclear graphic effects\n\nwhen I receive [home v]\nbroadcast (skiphider v)\n\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Sprite9\n\nwhen flag clicked\nhide\nforever\n    point towards (characters v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (costume2 v)\nset size to (15) %\nglide (2) secs to (characters v)\nhide\n\nwhen I receive [fire1 v]\nset size to (40) %\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\ngo to x: (92) y: (167)\nwait (1) seconds\nrepeat until <(fire1) = [1]>\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\nhide\n\nwhen I start as a clone\nforever\n    if <touching (captain america shield v)?> then\n        hide\n    end\nend\n\nwhen I receive [fire4 v]\nset size to (40) %\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\ngo to x: (92) y: (167)\nrepeat until <(fire 4) = [1]>\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\nhide\n\nwhen I receive [fire3 v]\nset size to (40) %\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\ngo to x: (203) y: (160)\nwait (1) seconds\nrepeat until <(fire1) = [1]>\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\nhide\n\n@Sprite4\n\nwhen flag clicked\npoint in direction (0)\nhide\n\nwhen I receive [block11\(1\) v]\nif <<(Character) = [3]> and <(backdrop [number v]) = [5]>> then\n    switch costume to (costume1 v)\n    go to [front v] layer\n    show\n    go to x: (91) y: (1)\nend\n\nwhen I receive [next level v]\nhide\n\nwhen flag clicked\nforever\n    if <key (w v) pressed?> then\n        change y by (5)\n    end\n    if <key (s v) pressed?> then\n        change y by (-5)\n    end\n    if <key (a v) pressed?> then\n        change x by (-5)\n    end\n    if <key (d v) pressed?> then\n        change x by (5)\n    end\n    if <key (q v) pressed?> then\n        turn left (3) degrees\n    end\n    if <key (e v) pressed?> then\n        turn right (3) degrees\n    end\nend\n\nwhen I receive [block12\(2\) v]\ngo to [front v] layer\nshow\ngo to x: (194) y: (146)\npoint in direction (90)\n\nwhen I receive [block13\(3\) v]\ngo to [front v] layer\nshow\ngo to x: (194) y: (146)\npoint in direction (90)\n\nwhen I receive [block14\(4\) v]\nswitch costume to (costume2 v)\ngo to [front v] layer\nshow\ngo to x: (194) y: (146)\npoint in direction (0)\n\nwhen flag clicked\nforever\n    if <<<<key (a v) pressed?> or <key (d v) pressed?>> or <<key (w v) pressed?> or <key (s v) pressed?>>> or <<key (e v) pressed?> or <key (q v) pressed?>>> then\n        set size to (100) %\n        go to [front v] layer\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n    end\nend\n\nwhen I start as a clone\nset size to (100) %\ngo to [back v] layer\nswitch costume to (costume [number v])\nrepeat (25)\n    change size by (2)\n    change [ghost v] effect by (4)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    go to x: (x position) y: (y position)\nend\n\n@Stormbreaker\n\ndefine remove right\n\ndefine throw right\nshow\nset rotation style [left-right v]\nset size to (100) %\nswitch costume to (costume3 v)\npoint in direction (-90)\ngo to (characters v)\nchange y by (20)\nrepeat until <<<<touching (platforme v)?> or <touching (_edge_ v)?>> or <touching (sprite6 v)?>> or <touching (cible v)?>>\n    switch costume to (costume2 v)\n    change x by (20)\n    turn right (87) degrees\nend\nswitch costume to (costume1 v)\nset size to (135) %\n\nremove right\n\ndefine throw left\nshow\npoint in direction (90)\nset rotation style [left-right v]\nset size to (100) %\nswitch costume to (costume1 v)\ngo to (characters v)\nchange y by (20)\nrepeat until <<<<touching (platforme v)?> or <touching (_edge_ v)?>> or <touching (sprite6 v)?>> or <touching (cible v)?>>\n    switch costume to (costume2 v)\n    change x by (-20)\n    turn right (-87) degrees\nend\nswitch costume to (costume3 v)\nset size to (135) %\npoint in direction (45)\n\nremove left\n\nwhen flag clicked\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [level setup v]\nif <not <<(selected lvl) = [5]> or <<(selected ch) = [7]> and <(selected lvl) = [1]>>>> then\n    hide\n    stop [other scripts in sprite v]\n    delete this clone\nend\n\nwhen I receive [next level v]\nhide\ngo to (characters v)\n\nwhen [space v] key pressed\nif <<(Character) = [4]> or <(Characters) = [6]>> then\n    set rotation style [all around v]\n    show\n    stop [other scripts in sprite v]\n    erase all\n    if <([direction v] of [characters v]) = [90]> then\n        throw right\n    else\n        throw left\n    end\n    wait (1) seconds\n    broadcast (return hammer v)\n    stop [this script v]\nend\n\nwhen I receive [return hammer v]\nset rotation style [don't rotate v]\nset [hammer speed v] to [3]\nrepeat until <touching (characters v)?>\n    point towards (characters v)\n    move (Hammer speed) steps\n    if <(Hammer speed) < [15]> then\n        change [hammer speed v] by (1)\n    end\nend\nhide\nstop [this script v]\n\ndefine remove left\n\nwhen I receive [hide stormbreaker v]\nchange [boss hp v] by (-10)\nhide\nwait (1) seconds\n\nif <(Characters) = [6]> then\n    forever\n        if <touching (thanos v)?> then\n    end\nend\n\nwhen I receive [you won v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [cuthead v]\nstop [other scripts in sprite v]\nset rotation style [all around v]\nshow\ngo to (characters v)\nswitch costume to (costume2 v)\nbroadcast (cut v)\nglide (1) secs to x: (-34) y: (16)\npoint in direction (-50)\nswitch costume to (costume5 v)\nbroadcast (cutthehead v)\n\nwhen I receive [cut v]\nrepeat (10)\n    turn right (20) degrees\nend\n\nwhen I receive [will grow v]\nhide\n\n@Captain Marvel Shockwave\n\nwhen I start as a clone\ngo to (characters v)\nshow\nrepeat (15)\n    change size by (20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I receive [levels v]\nforever\n    if <(Character) = [5]> then\n        show variable [shockwave v]\n        if <(Shockwave) = [100]> then\n            if <key (space v) pressed?> then\n                repeat until <(Shockwave) = [0]>\n                    set [shockwave??? v] to [1]\n                    create clone of (_myself_ v)\n                    wait (0.5) seconds\n                end\n                set [shockwave??? v] to [0]\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [clonecm v] to [0]\nhide variable [shockwave v]\nhide\n\nwhen flag clicked\nforever\n    if <not <(Shockwave???) = [1]>> then\n        repeat until <(Shockwave) = [100]>\n            change [shockwave v] by (1)\n            wait (0.15) seconds\n        end\n    end\nend\n\nwhen I receive [levels v]\nforever\n    if <(Character) = [5]> then\n        if <(Shockwave) = [100]> then\n            if <key (space v) pressed?> then\n                broadcast (shockwave v)\n                stop [this script v]\n            end\n        end\n    end\nend\n\nwhen I receive [shockwave v]\nrepeat until <(Shockwave) = [0]>\n    change [shockwave v] by (-1)\n    wait (0.1) seconds\nend\n\nwhen I receive [start b v]\nhide variable [shockwave v]\n\nwhen I receive [cmend v]\nset [clonecm v] to [1]\nwait (0.00000000000000000000000000001) seconds\nforever\n    stop [other scripts in sprite v]\n    forever\n        set [shockwave v] to [0]\n        set [shockwave??? v] to [0]\n        hide variable [shockwave v]\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(clonecm) = [1]> then\n        hide\n        delete this clone\n    end\nend\n\n@Sprite6\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    if <touching (stormbreaker v)?> then\n        if <(direction) = [150]> then\n            switch costume to (costume2 v)\n            wait (1) seconds\n            repeat (50)\n                change [ghost v] effect by (2)\n            end\n            hide\n            set [ghost v] effect to (0)\n        else\n            switch costume to (costume2 v)\n            wait (1) seconds\n            repeat (50)\n                change [ghost v] effect by (2)\n            end\n            hide\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (stormbreaker v)?> then\n        if <(direction) = [150]> then\n            wait (1) seconds\n            glide (3) secs to x: (54) y: (-350)\n        else\n            wait (1) seconds\n            glide (2) secs to x: (x position) y: (-350)\n        end\n    end\nend\n\nwhen I receive [showbreak v]\ngo to [back v] layer\npoint in direction (90)\nshow\ngo to x: (8) y: (2)\nstop [this script v]\n\nset [ghost v] effect to (0)\n\nwhen I receive [showbreak2 v]\nswitch costume to (costume1 v)\ngo to [back v] layer\nshow\npoint in direction (150)\ngo to x: (54) y: (63)\nstop [this script v]\n\nclear graphic effects\n\nswitch costume to (costume1 v)\n\nwhen I receive [showb3 v]\nswitch costume to (costume1 v)\ngo to [back v] layer\nshow\npoint in direction (-90)\ngo to x: (-85) y: (-5)\ncreate clone of (_myself_ v)\nstop [this script v]\n\nwhen I start as a clone\nswitch costume to (costume1 v)\ngo to [back v] layer\nshow\npoint in direction (-90)\ngo to x: (44) y: (-5)\nstop [this script v]\n\nwhen I start as a clone\nforever\n    if <touching (stormbreaker v)?> then\n        wait (1) seconds\n        glide (2) secs to x: (x position) y: (-300)\n    end\nend\n\n@Sprite8\n\nwhen flag clicked\nhide\n\nwhen I receive [cmend2 v]\nshow\ngo to [back v] layer\nset size to (80) %\ngo to x: (-50) y: (-220)\ncreate clone of (_myself_ v)\nrepeat until <(end) = [1]>\n    repeat (11)\n        change y by (20)\n    end\n    wait (1) seconds\n    repeat (11)\n        change y by (-20)\n    end\n    wait (1.5) seconds\nend\nhide\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset size to (80) %\ngo to x: (255) y: (-220)\ncreate clone of (_myself_ v)\nrepeat until <(end) = [1]>\n    repeat (11)\n        change y by (20)\n    end\n    wait (1) seconds\n    repeat (11)\n        change y by (-20)\n    end\n    wait (1.5) seconds\nend\nhide\n\n@Iron Man \n\nwhen flag clicked\nset rotation style [all around v]\nset [character v] to [0]\nset [clonecharacter v] to [0]\nhide\n\nwhen I receive [levels v]\nif <(Character) = [2]> then\n    switch costume to (iron man v)\n    point in direction (90)\n    show\n    point in direction (90)\n    go to [front v] layer\n    set [yv v] to [0]\n    go to x: (-198) y: (-45)\n    set size to (30) %\n    forever\n        Iron Man\n    end\nend\n\nwhen I receive [levels v]\nforever\n    wait (0.03) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (Clonecharacter)\nset size to (25) %\nset [ghost v] effect to (0)\npoint in direction (Direction)\nrepeat (25)\n    change [ghost v] effect by (4)\n    change size by (-0.5)\nend\ndelete this clone\n\nwhen I receive [next level v]\nif <(Character) = [2]> then\n    set [yv v] to [0]\n    go to x: (-198) y: (-45)\n    show\n    set [ghost v] effect to (100)\n    repeat (25)\n        change [ghost v] effect by (-4)\n    end\nend\n\nwhen I receive [restart v]\nset [yv v] to [0]\ngo to x: (-198) y: (-45)\n\nwhen I receive [levels v]\nforever\n    set [direction v] to (direction)\nend\n\ndefine Iron Man\nif <<key (down arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    move (-5) steps\nend\nif <<key (up arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    move (5) steps\nend\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n    turn right (5) degrees\nend\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n    turn left (5) degrees\nend\nif <(y position) < [-90]> then\n    go to x: (x position) y: (-90)\nend\nif <<touching (platforme v)?> and <(y position) > [-85]>> then\n    go to x: ((x position) - (40)) y: (y position)\nend\nif <touching color (#fcff00)?> then\n    set [yv v] to [26]\nend\nif <<touching color (#2ce600)?> and <(y position) > [-87]>> then\nif <<touching color (#008f90)?> or <touching color (#e62500)?>> then\n    hide\n    go to x: (-198) y: (-45)\n    show\n    set [ghost v] effect to (100)\n    repeat (25)\n        change [ghost v] effect by (-4)\n    end\nend\nif <(x position) > [239]> then\n    go to x: (-198) y: (-45)\n    hide\n    broadcast (next level v)\n    set [next? v] to [1]\n    wait (0.1) seconds\n    set [next? v] to [0]\nend\n\nif <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n    change y by (5)\nend\nif <<key (down arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n    change y by (-5)\nend\n\nwhen flag clicked\n\ndefine Physics\n\nwhen flag clicked\n\nstop [this script v]\n\nwhen I receive [start b v]\nhide\n\nwhen flag clicked\nforever\n    if <<touching (thanos v)?> or <touching (sprite11 v)?>> then\n        hide\n        go to x: (-198) y: (-45)\n        show\n        set [ghost v] effect to (100)\n        repeat (25)\n            change [ghost v] effect by (-4)\n        end\n    end\nend\n\n@thanos2\n\nwhen I receive [levels v]\nhide\nif <(Characters) = [6]> then\n    set [boss hp v] to [100]\n    set [player \(your\) lives v] to [10]\n    set [character v] to [6]\n    hide variable [shockwave v]\n    show variable [boss hp v]\n    show variable [player \(your\) lives v]\n    switch costume to (thanos v)\n    set size to (45) %\n    wait (1) seconds\n    go to x: (194) y: (-15)\n    show\n    repeat until <<(Boss HP) = [0]> or <(Player \(your\) lives) = [0]>>\n        set [calc v] to (pick random (1) to (8))\n        if <(Calc) = [1]> then\n            go to x: (1.x) y: (1.y)\n        end\n        if <(Calc) = [2]> then\n            go to x: (2.x) y: (2.y)\n        end\n        if <(Calc) = [3]> then\n            go to x: (3.x) y: (3.y)\n        end\n        if <(Calc) = [4]> then\n            go to x: (4.x) y: (4.y)\n        end\n        if <(Calc) = [5]> then\n            go to x: (5.x) y: (5.y)\n        end\n        if <(Calc) = [6]> then\n            go to x: (6.x) y: (6.y)\n        end\n        if <(Calc) = [7]> then\n            go to x: (7.x) y: (7.y)\n        end\n        if <(Calc) = [8]> then\n            go to x: (8.x) y: (8.y)\n        end\n        broadcast (throw gantlet v)\n        wait (6) seconds\n    end\n    hide\n    hide variable [boss hp v]\n    hide variable [player \(your\) lives v]\nend\n\nwhen I receive [levels v]\nif <(Characters) = [6]> then\n    forever\n        if <touching (stormbreaker v)?> then\n            broadcast (hide stormbreaker v)\n        end\n    end\nend\n\nwhen I receive [you won v]\nforever\n    hide\n    set [ghost v] effect to (100)\nend\n\nwhen I receive [start b v]\nhide\n\nwhen flag clicked\nhide\n\n@captain america shield\n\nwhen flag clicked\nset [levels v] to [0]\nhide\n\ndefine move/detect\nif <not <<touching (ground v)?> or <<touching (spikes/lava/whatever v)?> or <touching (_edge_ v)?>>>> then\n    repeat (7)\n        move (1) steps\n    end\nend\nif <(direction) > [0]> then\n    switch costume to (shield v)\nelse\n    switch costume to (shield2 v)\nend\n\nwhen I receive [levels v]\nif <(Character) = [1]> then\n    set size to (10) %\n    repeat until <(Levels) > [5]>\n        if <mouse down?> then\n            show\n            go to (characters v)\n            point towards (mouse-pointer v)\n            move (20) steps\n            repeat until <<touching (platforme v)?> or <<touching color (#2ce600)?> or <touching (_edge_ v)?>>>\n                move/detect\n                if <<touching (platforme v)?> or <<touching color (#2ce600)?> or <touching (_edge_ v)?>>> then\n                    go to [back v] layer\n                end\n            end\n            move (10) steps\n            if <touching (hero v)?> then\n                hide\n            end\n        end\n    end\nend\n\nwhen I receive [start b v]\nif <(Ok???) = [1]> then\n    stop [other scripts in sprite v]\n    hide\n    stop [this script v]\nend\n\n@cible\n\nwhen flag clicked\nset [cibles v] to [2]\nset size to (120) %\nhide\nclear graphic effects\n\nwhen I receive [ciblesknifes v]\nset [cibles v] to [2]\ngo to x: (212) y: (122)\nshow\ncreate clone of (_myself_ v)\nforever\n    if <touching (stormbreaker v)?> then\n        change [cibles v] by (-1)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        hide\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I start as a clone\ngo to x: (-230) y: (89)\nforever\n    if <touching (stormbreaker v)?> then\n        change [cibles v] by (-1)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        hide\n        set [ghost v] effect to (0)\n    end\nend\n\n@Sprite7\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nset [ghost v] effect to (0)\n\nwhen I receive [ciblesknifes v]\nshow\ngo to [back v] layer\ngo to x: (231) y: (17)\nforever\n    if <(cibles) = [0]> then\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        hide\n        clear graphic effects\n    end\nend\n\nset [cibles v] to [0]\n\n@couteaux\n\nwhen flag clicked\nhide\n\nwhen I receive [showbreak2 v]\nset size to (40) %\ngo to x: (202) y: (210)\nshow\nforever\n    show\n    go to x: (202) y: (210)\n    glide (2) secs to x: (202) y: (-69)\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    clear graphic effects\n    hide\nend\n\nwhen I receive [stopknifes v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [knife... v]\nshow\ngo to (thanos v)\nglide (1) secs to x: (x position) y: (-75)\nhide\n\n@Sprite1\n\nwhen flag clicked\nset [fire2 v] to [0]\nset [fire v] to [0]\nhide\nforever\n    point towards (characters v)\nend\n\nwhen I receive [fire2 v]\nset size to (40) %\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\ngo to x: (-156) y: (174)\nrepeat until <(fire2) = [1]>\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\nhide\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (costume2 v)\nset size to (15) %\nglide (2) secs to (characters v)\nhide\n\nwhen I receive [fire! v]\nset size to (40) %\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\ngo to x: (194) y: (-141)\nrepeat until <(fire) = [1]>\n    create clone of (_myself_ v)\n    wait (3) seconds\nend\nhide\n\nwhen I receive [fire1 v]\nset size to (40) %\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\ngo to x: (-194) y: (144)\nrepeat until <(fire1) = [1]>\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\nhide\n\nwhen I start as a clone\nforever\n    if <touching (captain america shield v)?> then\n        hide\n    end\nend\n\nwhen I receive [fire3 v]\nset size to (40) %\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\ngo to x: (-194) y: (144)\nrepeat until <(fire3) = [1]>\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\nhide\n\n@character 6\n\nwhen flag clicked\nset [sw v] to [n]\nset [th v] to [n]\nset [im v] to [n]\nset [cm v] to [n]\nset [cpa v] to [n]\nset [thanos v] to [p]\nhide\nswitch costume to (thanos v)\n\nwhen I receive [characters v]\nif <(thanos) = [pp]> then\n    go to x: (0) y: (0)\n    wait (1.5) seconds\n    show\n    set size to (0) %\n    set [pixelate v] effect to (100)\n    repeat (50)\n        change [pixelate v] effect by (-2)\n        change size by (3)\n    end\n    clear graphic effects\nend\nif <(thanos) = [p]> then\n    hide\nend\n\nwhen I receive [levels v]\nhide\n\nwhen this sprite clicked\nset [thanos v] to [p]\n\nwhen this sprite clicked\nrepeat (50)\n    change [pixelate v] effect by (2)\nend\nhide\nclear graphic effects\nswitch costume to (captain marvel2 v)\nbroadcast (home v)\nwait (1) seconds\nset [characters v] to [6]\n\nwhen I receive [home v]\nhide\n\nset [character 5 : captain marvel v] to [p]\n\nwhen flag clicked\nforever\n    if <<<(Sw) = [o]> and <(Im) = [o]>> and <<<(Cm) = [o]> and <(Cpa) = [o]>> and <(Th) = [o]>>> then\n        set [thanos v] to [pp]\n    end\nend\n\n@Sprite10\n\nwhen flag clicked\nhide\nset size to (60) %\n\nwhen I receive [throw gantlet v]\nshow\ngo to (thanos2 v)\npoint towards (characters v)\nrepeat (2)\n    go to (thanos2 v)\n    show\n    point towards (characters v)\n    glide (1) secs to (characters v)\n    hide\n    wait (1) seconds\nend\n\n@restart button\n\nwhen this sprite clicked\nbroadcast (restart v)\n\nwhen flag clicked\n\nwhen I receive [skipshowr v]\ngo to x: (-215) y: (-158)\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [skiphider v]\nhide\n\nwhen I receive [characters v]\nhide\n\nwhen I receive [start b v]\nhide\n\n@Sauter\n\nwhen this sprite clicked\nbroadcast (next level v)\nwait (0.5) seconds\n\nwhen I receive [skipshowr v]\nshow\ngo to x: (-170) y: (-158)\nwait (0.1) seconds\n\nwhen flag clicked\nhide\n\nwhen I receive [skiphider v]\nhide\n\nwhen I receive [characters v]\nhide\n\nwhen I receive [start b v]\nhide\n\n@Sprite11\n\nwhen flag clicked\nhide\nforever\n    go to [back v] layer\nend\n\nwhen I receive [rim v]\nwait (5) seconds\nrepeat until <(rim) = [1]>\n    show\n    go to (thanos v)\n    point towards (iron man  v)\n    glide (1.5) secs to (iron man  v)\n    hide\n    wait (1) seconds\nend\n\n@Sprite12\n\nwhen flag clicked\nhide\n\nwhen I receive [you won v]\nshow\nset size to (90) %\nswitch costume to (costume1 v)\ngo to x: (290) y: (-51)\nglide (3) secs to x: (17) y: (-51)\n\nwhen I receive [cutthehead v]\nswitch costume to (costume2 v)\nwait (0.5) seconds\nbroadcast (andtwo v)\nswitch costume to (costume3 v)\n\nwhen I receive [will grow v]\nrepeat (14)\n    change y by (-11)\n    change [ghost v] effect by (7.2)\nend\nhide\nclear graphic effects\nwait (1) seconds\nbroadcast (real end v)\n\nbroadcast (you won v)\n\n@Sprite13\n\nwhen flag clicked\nhide\n\nwhen I receive [andtwo v]\nshow\npoint in direction (90)\ngo to x: (16) y: (-49)\nrepeat (30)\n    turn right (4) degrees\n    change x by (3.3)\nend\nrepeat (25)\n    change y by (-5.4)\n    change [ghost v] effect by (4)\nend\nbroadcast (will grow v)\nhide\nclear graphic effects\n\ngo to x: (16) y: (-49)\n\n@Sprite14\n\nwhen flag clicked\nhide\n\nwhen I receive [real end v]\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nstop [all v]\n\n