Avatar-platformer
@Stage\n\n@Aang\n\nwhen flag clicked\nshow\nswitch costume to (aang-bend  v)\ngo to x: (-206) y: (-16)\ngo to [front v] layer\ngo [forward v] (1) layers\ngo [forward v] (1) layers\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n        switch costume to (aang-desert3 v)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        switch costume to (aang-bend  v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    if <touching color (#000000)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> 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    change y by (y)\n    if <touching color (#000000)?> 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?> and <touching color (#000000)?>> then\n        set [y v] to [15]\n        switch costume to (aang-bend  v)\n    end\n    change y by (1)\n    if <key (space v) pressed?> then\n        broadcast (Air Bend v)\n    end\n    if <<touching (fire nation soldier v)?> or <touching color (#ff2727)?>> then\n        go to x: (-206) y: (-16)\n    end\n    if <touching (end if level v)?> then\n        broadcast (next level v)\n    end\n    if <[4] < ([costume # v] of [level floors v])> then\n        if <key (w v) pressed?> then\n            broadcast (water bend v)\n        end\n    end\n    if <[6] < ([costume # v] of [level floors v])> then\n        if <key (r v) pressed?> then\n            broadcast (Earth bend v)\n        end\n    end\n    if <([costume # v] of [level floors v]) = [10]> then\n        if <key (f v) pressed?> then\n            broadcast (Fire bend v)\n        end\n    end\n    if <([costume # v] of [level floors v]) = [11]> then\n        hide\n        stop [all v]\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-206) y: (-16)\n\n@fire nation soldier\n\nwhen flag clicked\nshow\nswitch costume to (firebender flame left v)\nforever\n    if <touching color (#000000)?> then\n        wait (2) seconds\n        switch costume to (firebender flame left2 v)\n        wait (2) seconds\n        switch costume to (firebender flame left v)\n    end\nend\n\nwhen I receive [damage v]\nhide\nwait (4) seconds\nshow\n\nwhen flag clicked\nforever\n    if <([costume # v] of [level floors v]) = [1]> then\n        go to x: (45) y: (-10)\n    end\n    if <([costume # v] of [level floors v]) = [2]> then\n        go to x: (164) y: (-10)\n    end\n    if <([costume # v] of [level floors v]) = [3]> then\n        go to x: (65) y: (-7)\n    end\n    if <([costume # v] of [level floors v]) = [4]> then\n        hide\n    end\n    if <([costume # v] of [level floors v]) = [5]> then\n        hide\n    end\n    if <([costume # v] of [level floors v]) = [6]> then\n        hide\n    end\n    if <([costume # v] of [level floors v]) = [7]> then\n        hide\n    end\n    if <([costume # v] of [level floors v]) = [8]> then\n        show\n        wait (4) seconds\n        go to x: (19) y: (9)\n    end\n    if <([costume # v] of [level floors v]) = [9]> then\n        hide\n    end\n    if <([costume # v] of [level floors v]) = [10]> then\n        hide\n    end\n    if <([costume # v] of [level floors v]) = [11]> then\n        hide\n    end\nend\n\nwhen I receive [next level v]\nshow\n\n@Level floors\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\n\n@All bends\n\nwhen flag clicked\nhide\nforever\n    if <touching (fire nation soldier v)?> then\n        hide\n    end\nend\n\nwhen I receive [air bend v]\nswitch costume to (air v)\nshow\nif <([costume # v] of [level floors v]) < [11]> then\n    go to (aang v)\n    glide (1) secs to (fire nation soldier v)\n    broadcast (damage v)\n    change [whirl v] effect by (522)\n    hide\nelse\n    go to (avatar state aang v)\n    glide (1) secs to (ozi v)\n    broadcast (damage v)\n    change [whirl v] effect by (522)\n    hide\nend\n\nwhen I receive [water bend v]\nshow\nswitch costume to (water v)\nif <([costume # v] of [level floors v]) < [11]> then\n    go to (aang v)\n    glide (1) secs to (fire nation soldier v)\n    broadcast (damage v)\n    hide\nelse\n    go to (avatar state aang v)\n    glide (1) secs to (ozi v)\n    broadcast (damage v)\n    hide\nend\n\nwhen I receive [earth bend v]\nset [whirl v] effect to (0)\nswitch costume to (earth v)\nshow\nif <([costume # v] of [level floors v]) < [11]> then\n    go to (aang v)\n    glide (1) secs to (fire nation soldier v)\n    broadcast (damage v)\n    hide\nelse\n    go to (avatar state aang v)\n    glide (1) secs to (ozi v)\n    broadcast (damage v)\n    hide\nend\n\nwhen I receive [fire bend v]\nswitch costume to (fire v)\nshow\nif <([costume # v] of [level floors v]) < [11]> then\n    go to (aang v)\n    glide (0.5) secs to (fire nation soldier v)\n    broadcast (damage v)\n    hide\nelse\n    go to (avatar state aang v)\n    glide (0.5) secs to (ozi v)\n    broadcast (damage v)\n    hide\nend\n\n@End if level\n\nwhen flag clicked\nshow\ngo to [front v] layer\nforever\n    if <([costume # v] of [level floors v]) = [1]> then\n        go to x: (175) y: (70)\n    end\n    if <([costume # v] of [level floors v]) = [2]> then\n        go to x: (182) y: (-27)\n    end\n    if <([costume # v] of [level floors v]) = [3]> then\n        go to x: (182) y: (-27)\n    end\n    if <([costume # v] of [level floors v]) = [4]> then\n        go to x: (188) y: (-10)\n    end\n    if <([costume # v] of [level floors v]) = [5]> then\n        go to x: (155) y: (-15)\n    end\n    if <([costume # v] of [level floors v]) = [6]> then\n        go to x: (172) y: (-28)\n    end\n    if <([costume # v] of [level floors v]) = [7]> then\n        go to x: (81) y: (120)\n    end\n    if <([costume # v] of [level floors v]) = [8]> then\n        go to x: (177) y: (-21)\n    end\n    if <([costume # v] of [level floors v]) = [9]> then\n        go to x: (-179) y: (98)\n    end\n    if <([costume # v] of [level floors v]) = [10]> then\n        go to x: (130) y: (-86)\n    end\n    if <([costume # v] of [level floors v]) = [11]> then\n        hide\n    end\nend\n\n@Ozi\n\nwhen flag clicked\nhide variable [ozi's lifes v]\nhide\nforever\n    if <([costume # v] of [level floors v]) = [11]> then\n        show\n        broadcast (OZI TIME! v)\n    end\nend\n\nwhen I receive [ozi time! v]\nshow variable [ozi's lifes v]\nset [ozi's lifes v] to [10]\nswitch costume to (ozai v)\ngo to x: (59) y: (153)\nwait (1) seconds\nswitch costume to (ozai fly v)\nglide (1) secs to x: (-31) y: (-103)\nswitch costume to (ozai v)\nsay [WHERE DID YOU GO AVATAR?!] for (2) seconds\nwait (1) seconds\nswitch costume to (ozai flame v)\nwait (1) seconds\nswitch costume to (ozai flame2 v)\nwait (0.4) seconds\nswitch costume to (ozai flame3 v)\nwait (0.4) seconds\nswitch costume to (ozai flame4 v)\nwait (0.4) seconds\nswitch costume to (ozai fly v)\nglide (1) secs to x: (-28) y: (73)\nsay [Show your self!] for (2) seconds\nbroadcast (show your self v)\nwait (7) seconds\nforever\n    wait (3) seconds\n    glide (1) secs to (random position v)\n    switch costume to (ozai flame3 v)\n    wait (1) seconds\n    switch costume to (ozai flame5 v)\n    wait (5) seconds\n    switch costume to (ozai fly v)\nend\n\nwhen I receive [ozi time! v]\nforever\n    if <touching (all bends v)?> then\n        change [ozi's lifes v] by (-1)\n        say [Argh!] for (2) seconds\n    end\n    if <(Ozi's Lifes) < [0]> then\n        hide\n        broadcast (WIN! v)\n        stop [this script v]\n    end\nend\n\n@Avatar state aang\n\nwhen flag clicked\nhide variable [aang's lifes v]\ngo to [front v] layer\nhide\n\nwhen I receive [show your self v]\nswitch costume to (avatar state aang v)\ngo to x: (-202) y: (-94)\nset [brightness v] effect to (100)\nshow\nwait (0.5) seconds\nrepeat (4)\n    wait (1) seconds\n    change [brightness v] effect by (-25)\nend\nsay [Prepare to be destroyed Fire Lord!] for (2) seconds\nset [x v] to [0]\nset [y v] to [0]\nshow variable [aang's lifes v]\nset [aang's lifes v] to [3]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (level floors v)?> then\n        change y by (1)\n    end\n    if <touching (level floors v)?> then\n        change y by (1)\n    end\n    if <touching (level floors v)?> then\n        change y by (1)\n    end\n    if <touching (level floors v)?> then\n        change y by (1)\n    end\n    if <touching (level floors v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> 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    change y by (y)\n    if <touching (level floors 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?> and <touching (level floors v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <key (space v) pressed?> then\n        say [You will fight no longer, Fire Lord!] for (2) seconds\n        switch costume to (hype avatar state v)\n    end\n    if <(costume [name v]) = [Hype Avatar state]> then\n        if <key (space v) pressed?> then\n            broadcast (Air Bend v)\n        end\n        if <key (r v) pressed?> then\n            broadcast (Earth bend v)\n        end\n        if <key (f v) pressed?> then\n            broadcast (Fire bend v)\n        end\n        if <key (w v) pressed?> then\n            broadcast (water bend v)\n        end\n    end\n    if <touching (ozi v)?> then\n        go to x: (-195) y: (-92)\n        change [aang's lifes v] by (-1)\n    end\n    if <[0] > (Aang's Lifes)> then\n        switch costume to (r.i.p v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [win! v]\nswitch costume to (avatar state aang v)\nsay [We won! You did it!] for (2) seconds\n\n
(Click green flag multiple times before playing!)\nYou are the Avatar, you must complete levels of this platformer to collect new bending skills! Fight fire benders along the way to bring peace! ☮✌ Unlock amazing power to make your path easier and get help from friends along the way!---------->⭐?✅\n___________________\nPress green flag twice\nArrow keys to move \nSpace to airbend\nW to water bend\nF to fire bend\nR to earth bend\nWatch out, fire benders don't stay down forever!\n(At the final battle, press space to go into the HYPER AVATAR STATE!)\n___________________