Avatar platformer #fun #games #minigames

Instructions: STORY below (please read!) (arrow keys)\n(second game trailer: https://scratch.mit.edu/projects/806660836)\nSTORY BEGIN\nwelcome Avatar! after being in a iceberg for 100 years (not kidding), you find that the once peaceful world you lived in is destroyed because the FIRE LORD has attacked the air, water, and earth kingdoms. you must stop his reign of terror and capture him! but its not so simple as his soldiers will be trying to stop you at all costs. only you, the Avatar can stop him and restore peace! you are the last airbender which means only you can use air bending fire bending and earth bending! yes indeed you are the LAST AIRBENDER.\nthanks for playing! 

@Stage\n\nwhen I receive [message1 v]\nask [will you help to defeat the fire lord \(yes/no\)] and wait\nif <(answer) = [yes]> then\nif <(answer) = [no]> then\n    say [well your gunna have to lol.] for (2) seconds\nend\n\nwhen I receive [aang catch v]\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [you failed catch v]\nswitch backdrop to (minigames v)\n\nwhen I receive [avatar staring contest v]\nswitch backdrop to (stare v)\n\nwhen I receive [you blinked v]\nswitch backdrop to (minigames v)\n\n@aang\n\nwhen flag clicked\nshow\nset [ir v] to [0]\ngo to x: (-205) y: (-97)\nswitch costume to (costume1 v)\nswitch backdrop to (backdropstart v)\nset [gravity v] to [-1]\nset [y  v v] to [0]\nset [jump v v] to [14]\nset rotation style [left-right v]\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        move (10) steps\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        move (10) steps\n    end\n    if <touching (floor v)?> then\n        set [y  v v] to [0]\n        if <key (up arrow v) pressed?> then\n            set [y  v v] to (jump v)\n        end\n    else\n        set [y  v v] to ((y  v) + (gravity))\n    end\n    change y by (y  v)\nend\n\nwhen I receive [get back aang v]\ngo to x: (-205) y: (-97)\n\nwhen flag clicked\nforever\n    if <<touching (fire spike v)?> or <touching (sprite6 v)?>> then\n        go to x: (-205) y: (-97)\n        change [hit spike v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        set [ir v] to [1]\n        repeat (5)\n            wait (0.01) seconds\n            move (-8) steps\n            next costume\n        end\n        set [ir v] to [0]\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (c v) pressed?> then\n        set [ir v] to [1]\n        switch costume to (costume7 v)\n        repeat (8)\n            wait (0.01) seconds\n            next costume\n        end\n        set [ir v] to [0]\n        switch costume to (costume1 v)\n    end\nend\n\nwhen backdrop switches to [9 v]\nplay sound [Thunder Storm v] until done\n\nwhen backdrop switches to [10 v]\nplay sound [Thunder Storm v] until done\n\nwhen backdrop switches to [11 v]\nplay sound [Thunder Storm v] until done\n\nwhen backdrop switches to [8 v]\nplay sound [8 v] until done\n\nwhen backdrop switches to [7 v]\nplay sound [7 v] until done\n\nwhen flag clicked\nset [hit spike v] to [0]\nset [name 2 v] to (username)\n\nwhen flag clicked\nforever\n    if <touching (fire lord v)?> then\n        set [touched fire lord v] to [1]\n    end\nend\n\nwhen flag clicked\nclear graphic effects\nforever\n    play sound [recording1 v] until done\nend\n\nwhen I receive [mini game time!! v]\nswitch backdrop to (minigames v)\nhide\n\nwhen flag clicked\nforever\n    if <(LOVED__) = [1]> then\n        if <(FAVED___) = [1]> then\n            forever\n                change [color v] effect by (5)\n            end\n        end\n    end\nend\n\n@fire spike\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [backdropstart v]\nrepeat (3)\n    show\n    go to x: (-22) y: (-132)\n    stop [this script v]\nend\n\nwhen backdrop switches to [2 v]\nrepeat (3)\n    show\n    switch costume to (costume2 v)\n    go to x: (-22) y: (-132)\n    stop [this script v]\nend\n\nwhen backdrop switches to [3 v]\nrepeat (3)\n    show\n    switch costume to (costume3 v)\n    go to x: (45) y: (-137)\n    stop [this script v]\nend\n\nwhen backdrop switches to [4 v]\nrepeat (3)\n    show\n    switch costume to (costume4 v)\n    go to x: (45) y: (-137)\n    stop [this script v]\nend\n\nwhen backdrop switches to [5 v]\ngo to [back v] layer\nrepeat (3)\n    hide\n    go to x: (45) y: (-137)\n    stop [this script v]\nend\n\nwhen backdrop switches to [5 v]\nrepeat (3)\n    hide\n    go to x: (45) y: (-137)\n    stop [this script v]\nend\n\nwhen backdrop switches to [6 v]\nrepeat (3)\n    show\n    go to x: (-33) y: (-133)\n    switch costume to (costume5 v)\n    stop [this script v]\nend\n\nwhen backdrop switches to [7 v]\nrepeat (3)\n    hide\nend\n\nwhen backdrop switches to [8 v]\nrepeat (3)\n    show\n    go to x: (-22) y: (-132)\n    switch costume to (costume6 v)\nend\n\nwhen backdrop switches to [9 v]\nrepeat (3)\n    hide\nend\n\nwhen backdrop switches to [11 v]\nrepeat (3)\n    switch costume to (costume7 v)\n    show\nend\n\nwhen backdrop switches to [bossfight!!! v]\nrepeat (3)\n    hide\nend\n\n@finish\n\nwhen backdrop switches to [backdropstart v]\nwait (0.50) seconds\nrepeat (4)\n    forever\n        if <touching (aang v)?> then\n            switch backdrop to (2 v)\n            broadcast (get back aang v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen backdrop switches to [2 v]\nwait (0.50) seconds\nrepeat (4)\n    forever\n        if <touching (aang v)?> then\n            switch backdrop to (3 v)\n            broadcast (get back aang v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen backdrop switches to [2 v]\nbroadcast (message1 v)\n\nwhen backdrop switches to [3 v]\nwait (0.50) seconds\nrepeat (4)\n    forever\n        if <touching (aang v)?> then\n            switch backdrop to (4 v)\n            broadcast (get back aang v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen backdrop switches to [4 v]\nwait (0.50) seconds\nrepeat (4)\n    forever\n        if <touching (aang v)?> then\n            switch backdrop to (5 v)\n            broadcast (get back aang v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen backdrop switches to [5 v]\nwait (0.50) seconds\nrepeat (4)\n    forever\n        if <touching (aang v)?> then\n            broadcast (new stage! v)\n            switch backdrop to (6 v)\n            broadcast (get back aang v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen backdrop switches to [6 v]\nwait (0.50) seconds\nrepeat (4)\n    forever\n        if <touching (aang v)?> then\n            switch backdrop to (7 v)\n            broadcast (get back aang v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen backdrop switches to [7 v]\nwait (0.50) seconds\nrepeat (4)\n    forever\n        if <touching (aang v)?> then\n            switch backdrop to (8 v)\n            broadcast (get back aang v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen backdrop switches to [8 v]\nwait (0.50) seconds\nrepeat (4)\n    forever\n        if <touching (aang v)?> then\n            switch backdrop to (9 v)\n            broadcast (get back aang v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen backdrop switches to [9 v]\nwait (0.50) seconds\nrepeat (4)\n    forever\n        if <touching (aang v)?> then\n            switch backdrop to (10 v)\n            broadcast (get back aang v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen backdrop switches to [10 v]\nwait (0.50) seconds\nrepeat (4)\n    forever\n        if <touching (aang v)?> then\n            switch backdrop to (11 v)\n            broadcast (get back aang v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen backdrop switches to [11 v]\nwait (0.50) seconds\nrepeat (4)\n    forever\n        if <touching (aang v)?> then\n            switch backdrop to (bossfight!!! v)\n            hide\n            broadcast (get back aang v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nshow\n\n@Floor\n\nwhen flag clicked\nshow\n\nwhen I receive [mini game time!! v]\nhide\n\n@Sprite1\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo to x: (-290) y: (142)\nforever\n    wait (3) seconds\n    set [cloud random v] to (pick random (1) to (6))\n    if <(cloud random) = [1]> then\n        show\n        wait (0.01) seconds\n        go to x: (-290) y: (142)\n        switch costume to (costume1 v)\n        glide (6) secs to x: (284) y: (139)\n        hide\n    end\n    if <(cloud random) = [2]> then\n        wait (0.001) seconds\n        show\n        go to x: (-148) y: (62)\n        switch costume to (costume2 v)\n        glide (5) secs to x: (344) y: (40)\n        hide\n    end\n    if <(cloud random) = [3]> then\n        wait (0.01) seconds\n        show\n        switch costume to (costume3 v)\n        go to x: (-176) y: (8)\n        glide (7) secs to x: (341) y: (12)\n        hide\n    end\n    if <(cloud random) = [4]> then\n        wait (0.01) seconds\n        go to x: (-226) y: (-63)\n        show\n        switch costume to (costume4 v)\n        glide (8) secs to x: (344) y: (-68)\n        hide\n    end\n    if <(cloud random) = [5]> then\n        wait (0.01) seconds\n        go to x: (-301) y: (-1)\n        show\n        switch costume to (costume5 v)\n        glide (5) secs to x: (327) y: (-1)\n        hide\n    end\n    if <(cloud random) = [6]> then\n        wait (0.01) seconds\n        go to x: (-454) y: (-62)\n        show\n        switch costume to (costume6 v)\n        glide (9) secs to x: (387) y: (-42)\n        hide\n    end\nend\n\ngo to x: (-290) y: (142)\n\ngo to x: (-290) y: (142)\n\nchange [color v] effect by (25)\n\nwhen I receive [mini game time!! v]\nhide\n\nwhen backdrop switches to [minigames v]\nforever\n    hide\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Sprite\n\nwhen flag clicked\nhide\nset [fire gravity v] to [-1]\nset [fire y v] to [0]\nset [fire jump v] to [14]\nset rotation style [left-right v]\nforever\n    set [fire y v] to (fire jump)\n    if <touching (floor v)?> then\n        set [fire y v] to [0]\n    else\n        set [fire y v] to ((fire y) + (fire gravity))\n    end\n    change y by (y  v)\nend\n\nif <key (up arrow v) pressed?> then\nend\n\nwhen backdrop switches to [5 v]\nshow\ngo to x: (172) y: (-32)\nforever\n    set rotation style [don't rotate v]\n    point towards (aang v)\n    move (3) steps\nend\n\nwhen backdrop switches to [5 v]\nforever\n    if <<touching (aang v)?> and <(IR) = [1]>> then\n        go to x: (172) y: (-32)\n        hide\n    end\nend\n\nwhen backdrop switches to [5 v]\nforever\n    if <<touching (aang v)?> and <not <(IR) = [1]>>> then\n        go to x: (172) y: (-32)\n        broadcast (get back aang v)\n    end\nend\n\nwhen backdrop switches to [7 v]\nforever\n    if <<touching (aang v)?> and <not <(IR) = [1]>>> then\n        go to x: (172) y: (-32)\n        broadcast (get back aang v)\n    end\nend\n\nwhen backdrop switches to [7 v]\nforever\n    if <<touching (aang v)?> and <(IR) = [1]>> then\n        go to x: (172) y: (-32)\n        hide\n    end\nend\n\nwhen backdrop switches to [7 v]\nshow\ncreate clone of (_myself_ v)\nwait (0.50) seconds\ncreate clone of (_myself_ v)\ngo to x: (172) y: (-32)\nforever\n    set rotation style [don't rotate v]\n    point towards (aang v)\n    move (3) steps\nend\n\nwhen I start as a clone\nforever\n    if <<touching (aang v)?> and <(IR) = [1]>> then\n        go to x: (172) y: (-32)\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<touching (aang v)?> and <not <(IR) = [1]>>> then\n        go to x: (172) y: (-32)\n        broadcast (get back aang v)\n    end\nend\n\nwhen I start as a clone\nforever\n    set rotation style [don't rotate v]\n    point towards (aang v)\n    move (3) steps\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (-575) y: (-51)\nhide\n\nwhen I receive [new stage! v]\nshow\nglide (2) secs to x: (2) y: (-11)\nwait (4) seconds\nglide (2) secs to x: (-575) y: (-51)\nhide\n\n@fast gaurd\n\nwhen flag clicked\nhide\nset [fire gravity v] to [-1]\nset [fire y v] to [0]\nset [fire jump v] to [14]\nset rotation style [left-right v]\nforever\n    set [fire y v] to (fire jump)\n    if <touching (floor v)?> then\n        set [fire y v] to [0]\n    else\n        set [fire y v] to ((fire y) + (fire gravity))\n    end\n    change y by (y  v)\nend\n\nwhen backdrop switches to [10 v]\nshow\ngo to x: (172) y: (-32)\nforever\n    set rotation style [don't rotate v]\n    point towards (aang v)\n    move (10) steps\nend\n\nwhen backdrop switches to [10 v]\nforever\n    if <<touching (aang v)?> and <(IR) = [1]>> then\n        go to x: (172) y: (-32)\n        hide\n    end\nend\n\nwhen backdrop switches to [10 v]\nforever\n    if <<touching (aang v)?> and <not <(IR) = [1]>>> then\n        go to x: (172) y: (-32)\n        broadcast (get back aang v)\n    end\nend\n\n@Sprite3\n\nwhen backdrop switches to [backdropstart v]\nshow variable [name v]\nset [name v] to (username)\n\nwhen backdrop switches to [2 v]\nhide variable [name v]\n\nwhen flag clicked\nset [time v] to [0]\nset [end v] to [0]\nrepeat until <(end) = [1]>\n    wait (1) seconds\n    change [time v] by (1)\nend\n\n@Sprite4\n\nwhen backdrop switches to [10 v]\nshow\nrepeat until <(touched fire lord) = [1]>\n    wait (2) seconds\n    show\n    repeat (6)\n        wait (0.001) seconds\n        next costume\n    end\n    switch costume to (costume1 v)\n    hide\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [bossfight!!! v]\nhide\n\nwhen I receive [mini game time!! v]\nhide\n\n@fire lord\n\nwhen backdrop switches to [backdropstart v]\nswitch costume to (costume1 v)\ngo to x: (210) y: (-142)\nhide\n\nwhen backdrop switches to [bossfight!!! v]\ngo to x: (210) y: (-142)\nshow\n\nwhen flag clicked\nforever\n    if <(touched fire lord) = [1]> then\n        switch costume to (costume2 v)\n        glide (0.45) secs to x: (147) y: (262)\n        hide\n    end\nend\n\n@Sprite5\n\nwhen backdrop switches to [bossfight!!! v]\ngo to x: (-527) y: (-34)\nshow\nglide (2) secs to x: (0) y: (-9)\nwait (4) seconds\nhide\n\nwhen flag clicked\nforever\n    change x by (-3)\n    wait (0.01) seconds\n    change x by (3)\nend\n\nwhen flag clicked\nhide\n\n@Sprite6\n\nwhen flag clicked\nset [bossfight stop v] to [0]\nhide\nset rotation style [all around v]\nrepeat until <(bossfight stop) = [1]>\n    turn left (40) degrees\nend\n\nwhen backdrop switches to [bossfight!!! v]\ngo to x: (136) y: (-130)\nswitch costume to (costume1 v)\nshow\nwait (7) seconds\nrepeat until <(touched fire lord) = [1]>\n    switch costume to (costume1 v)\n    go to x: (136) y: (-130)\n    show\n    glide (1) secs to x: (-260) y: (-129)\n    set [bossfight stop v] to [1]\n    if <(touched fire lord) = [0]> then\n        show\n        point in direction (90)\n        switch costume to (costume2 v)\n        go to x: (168) y: (-4)\n        glide (2) secs to x: (24) y: (-2)\n        switch costume to (costume3 v)\n        go to x: (-50) y: (11)\n        glide (1) secs to x: (-115) y: (10)\n        glide (1) secs to x: (-193) y: (11)\n        glide (1) secs to x: (-54) y: (11)\n        glide (1) secs to x: (-58) y: (121)\n        glide (0.50) secs to x: (-107) y: (5)\n        repeat (4)\n            turn right (15) degrees\n        end\n        glide (1) secs to x: (-223) y: (-6)\n        wait (2) seconds\n        repeat (4)\n            turn left (15) degrees\n        end\n        switch costume to (costume1 v)\n        go to x: (142) y: (-131)\n        glide (0.50) secs to x: (33) y: (-4)\n        glide (1) secs to x: (-30) y: (-132)\n        glide (0.40) secs to x: (-104) y: (-22)\n        glide (1) secs to x: (19) y: (-106)\n        glide (1) secs to x: (-63) y: (31)\n        glide (0.50) secs to x: (-107) y: (-132)\n    end\nend\n\nhide\n\nwhen flag clicked\nset [touched fire lord v] to [0]\nforever\n    if <(touched fire lord) = [1]> then\n        hide\n    end\nend\n\n@Sprite7\n\nwhen flag clicked\nforever\n    if <(touched fire lord) = [1]> then\n        if <(time) < (☁ high score)> then\n            set [☁ high score v] to (time)\n            say [new high!] for (5) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(touched fire lord) = [1]> then\n        show variable [☁ high score v]\n        show variable [name 2 v]\n        show variable [time v]\n        show variable [hit spike v]\n        set [end v] to [1]\n        show\n        wait (1) seconds\n        switch costume to (costume2 v)\n        wait (0.50) seconds\n        switch costume to (costume2 v)\n        switch costume to (costume2 v)\n        wait (0.50) seconds\n        switch costume to (costume2 v)\n        switch costume to (costume2 v)\n        wait (0.50) seconds\n        switch costume to (costume2 v)\n        switch costume to (costume2 v)\n        wait (0.50) seconds\n        switch costume to (costume2 v)\n        wait (7) seconds\n        hide\n        broadcast (mini game time!! v)\n        set [touched fire lord v] to [0]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide variable [☁ high score v]\nset [end v] to [0]\nhide variable [name 2 v]\nhide variable [time v]\nhide variable [hit spike v]\nhide\n\nwhen flag clicked\nforever\n    if <(touched fire lord) = [0]> then\n        hide variable [☁ high score v]\n        set [end v] to [0]\n        hide variable [name 2 v]\n        hide variable [time v]\n        hide variable [hit spike v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(touched fire lord) = [1]> then\n        broadcast (shake v)\n        stop [this script v]\n    end\nend\n\n@Sprite8\n\nwhen flag clicked\nrepeat (10)\n    hide\nend\n\nwhen backdrop switches to [minigames v]\nhide\ngo to x: (415) y: (-154)\nshow\nglide (1) secs to x: (-41) y: (-13)\nstop [this script v]\n\nwhen this sprite clicked\nhide\nbroadcast (appa dodge v)\n\nwhen I receive [aang catch v]\nhide\n\nforever\n    if <(appa fall) = [1]> then\n        go to x: (419) y: (9)\n        show\n        glide (1) secs to x: (-46) y: (-8)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [avatar staring contest v]\nhide\n\nwhen backdrop switches to [minigames v]\n\nshow\n\n@mini game aang catch\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [minigames v]\nhide\nwait (1) seconds\ngo to x: (419) y: (9)\nrepeat (5)\n    show\nend\nglide (1) secs to x: (111) y: (-10)\nstop [this script v]\n\nwhen this sprite clicked\nhide\nbroadcast (aang catch v)\n\nwhen I receive [appa dodge v]\nhide\n\nwhen I receive [avatar staring contest v]\nhide\n\nwhen backdrop switches to [minigames v]\n\nshow\nrepeat (10)\nend\n\n@Sprite9\n\nwhen flag clicked\ngo to x: (-17) y: (80)\nhide\n\nshow\n\nwhen flag clicked\nforever\n    if <(touched fire lord) = [1]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    change y by (3)\n    wait (0.1) seconds\n    change y by (-3)\nend\n\nwhen I receive [shake v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\nforever\n    if <(touched fire lord) = [0]> then\n        hide\n    end\nend\n\n@Sprite10\n\nwhen I receive [aang catch v]\npoint in direction (90)\nset rotation style [left-right v]\ngo to x: (-54) y: (-72)\nshow\nswitch costume to (costume2 v)\nwait (3) seconds\nswitch costume to (costume1 v)\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        move (10) steps\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        move (10) steps\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [you failed catch v]\nhide\n\n@Sprite11\n\nwhen flag clicked\ngo to x: (-160) y: (-124)\nhide\n\nwhen I receive [aang catch v]\nset [catch time v] to [0]\nshow\nwait (3.50) seconds\nrepeat until <(failed catch) = [1]>\n    wait (1) seconds\n    show\n    go to (random position v)\n    repeat (9)\n        set y to (189)\n    end\n    glide (catch time) secs to x: (x position) y: (-193)\nend\n\nforever\n    if <not <touching (sprite10 v)?>> then\n    end\nend\n\nwhen I receive [aang catch v]\nrepeat (20)\n    set [failed catch v] to [0]\nend\nset [catch time v] to [7]\n\nwhen I receive [aang catch v]\nforever\n    wait (1) seconds\n    change [catch time v] by (-0.1)\nend\n\nwhen flag clicked\nforever\n    if <touching (line v)?> then\n        set [failed catch v] to [1]\n        broadcast (you failed catch v)\n    end\nend\n\nwhen I receive [you failed catch v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (sprite10 v)?> then\n        hide\n    end\nend\n\nwhen I receive [aang catch v]\nrepeat (10)\n    set y to (189)\nend\n\n@line\n\nwhen flag clicked\nhide\n\nwhen I receive [aang catch v]\nshow\n\nwhen I receive [you failed catch v]\nhide\n\n@appa\n\nwhen flag clicked\nhide\n\nwhen I receive [appa dodge v]\nshow\ngo to x: (2) y: (-129)\nswitch costume to (appa2 v)\nwait (2) seconds\nswitch costume to (appa v)\n\nwhen I receive [appa dodge v]\nset rotation style [don't rotate v]\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        move (6) steps\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        move (6) steps\n    end\nend\n\nwhen flag clicked\nset [appa fall v] to [0]\n\nwhen flag clicked\nforever\n    if <(appa fall) = [1]> then\n        switch backdrop to (minigames v)\n        hide\n        stop [this script v]\n    end\nend\n\n@enemy appa\n\nwhen flag clicked\nhide\n\nwhen I receive [appa dodge v]\nwait (2) seconds\nrepeat until <(appa fall) = [1]>\n    set [reply v] to (pick random (1) to (3))\n    wait (1) seconds\n    if <(reply) = [1]> then\n        if <(appa fall) = [0]> then\n            go to x: (13) y: (146)\n            show\n            glide (random bird) secs to x: (14) y: (-186)\n            hide\n        end\n    end\n    if <(reply) = [2]> then\n        if <(appa fall) = [0]> then\n            go to x: (-154) y: (172)\n            show\n            glide (random bird) secs to x: (-150) y: (-186)\n            hide\n        end\n    end\n    if <(reply) = [3]> then\n        if <(appa fall) = [0]> then\n            go to x: (170) y: (186)\n            show\n            glide (random bird) secs to x: (175) y: (-186)\n            hide\n        end\n    end\nend\n\nwhen I receive [appa dodge v]\nforever\n    wait (2) seconds\n    change [random bird v] by (-0.35)\nend\n\nwhen I receive [appa dodge v]\nrepeat (3)\n    set [appa fall v] to [0]\n    set [random bird v] to [6.50]\nend\n\nwhen flag clicked\nforever\n    if <touching (appa v)?> then\n        repeat (4)\n            repeat (10)\n                set [appa fall v] to [1]\n            end\n            repeat (10)\n                hide\n            end\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(appa fall) = [1]> then\n        hide\n    end\nend\n\nwhen I receive [appa dodge v]\nswitch backdrop to (appa v)\n\n@mini game aang catch2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [minigames v]\nhide\nwait (2) seconds\ngo to x: (419) y: (9)\nrepeat (5)\n    show\nend\nglide (1) secs to x: (275) y: (-5)\nstop [this script v]\n\nwhen this sprite clicked\nhide\nbroadcast (avatar staring contest v)\n\nwhen I receive [appa dodge v]\nhide\n\nwhen I receive [aang catch v]\nhide\n\nwhen backdrop switches to [minigames v]\n\nshow\n\n@Sprite12\n\nwhen flag clicked\nhide\n\nhide\n\nwhen I receive [avatar staring contest v]\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [you blinked v]\nhide\n\nwhen flag clicked\n\nwhen I receive [avatar staring contest v]\nrepeat (8)\n    wait (5) seconds\n    next costume\nend\n\nwhen I receive [avatar staring contest v]\nforever\n    if <(costume [number v]) = [9]> then\n        wait (2) seconds\n        broadcast (you blinked v)\n        stop [this script v]\n    end\nend\n\n@Sprite13\n\nwhen I receive [avatar staring contest v]\nshow\n\nwhen I receive [you blinked v]\nhide\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (you blinked v)\nhide\n\n@detector\n\nwhen flag clicked\npoint in direction (90)\nhide\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (0.5) seconds\nshow\ngo to x: (0) y: (-100)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\ngo [forward v] (2000) layers\nstart sound [1up v]\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            wait (0.2) seconds\n            if <touching (mouse-pointer v)?> then\n                set [loved__ v] to [1]\n            end\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            wait (0.2) seconds\n            if <touching (mouse-pointer v)?> then\n                set [faved___ v] to [1]\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [faved___ v] to [0]\nset [loved__ v] to [0]\n\n@Sprite14\n\nwhen flag clicked\nhide\nwait (3) seconds\nshow\ngo to x: (-138) y: (-46)\nwait (4.50) seconds\nhide\nforever\n    wait (12) seconds\n    show\n    go to x: (-138) y: (-46)\n    wait (4) seconds\n    hide\nend\n\nwhen I receive [mini game time!! v]\nforever\n    hide\nend\n\nwhen flag clicked\nforever\n    if <(FAVED___) = [1]> then\n        if <(LOVED__) = [1]> then\n            forever\n                hide\n            end\n        end\n    end\nend\n\n