Grasslands - Mobile Friendly Platformer

Instructions: Move your cursor to tilt the level and make the ball roll.\n\n ---Space Key to Jump---      Added New Levels, and they are HARD\n                                                             (They are all possible)\n\nHow many of you will copy and paste this url? \nhttps://www.youtube.com/watch?v=8_r_68TMjEA&t=87s\n (Experiment with random video I found that had no views)\n            \n WAIT WHAT?!?! I got on Scratch, and it said 206 new notifications. THANK YOU GUYS SO MUCH! A sequel or more levels will for sure be coming soon.\n\nLoved by Will_Wam , kevin_eleven_1234 , and snow-cannon! XD!!!\n#1 On trending!?!?!? Never happened before!!! THANK YOU GUYS!!!

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop11 v)\nhide variable [dragon: v]\nhide variable [dragon keys v]\n\nwhen flag clicked\n\nwhen backdrop switches to [backdrop5 v]\nforever\n    \nend\n\nwhen I receive [boooom v]\nswitch backdrop to (backdrop13 v)\nwait (0.7) seconds\nrepeat (6)\n    next backdrop\n    wait (0) seconds\nend\nwait (0.6) seconds\nswitch backdrop to (backdrop13 v)\nrepeat (6)\n    wait (0) seconds\n    next backdrop\nend\nswitch backdrop to (backdrop13 v)\nwait (0.8) seconds\nswitch backdrop to (out1 v)\nrepeat (18)\n    wait (0) seconds\n    next backdrop\nend\nrepeat (32)\n    wait (0.15) seconds\n    next backdrop\nend\nwait (0.8) seconds\nnext backdrop\nwait (0.4) seconds\nnext backdrop\nforever\n    if <key (space v) pressed?> then\n        broadcast (spoilers v)\n    end\nend\n\nswitch backdrop to (backdrop11 v)\n\n@lvl\n\nwhen flag clicked\nhide\nswitch backdrop to (backdrop11 v)\n\nswitch costume to (costume1 v)\n\nbroadcast (show v) and wait\nstop [all v]\n\nwhen I receive [go to background 3 v]\nswitch costume to (costume3 v)\nswitch backdrop to (backdrop3 v)\n\ngo to x: (32) y: (9)\n\nwhen I receive [go to back ground 7 v]\nshow\nswitch backdrop to (backdrop7 v)\nswitch costume to (costume6 v)\n\nwhen I receive [get out v]\nswitch costume to (costume2 v)\nswitch backdrop to (backdrop2 v)\nshow\n\nwhen I receive [go to background 4 v]\nshow\nswitch costume to (costume4 v)\nswitch backdrop to (backdrop4 v)\nwait (0.2) seconds\ngo to [front v] layer\n\nwhen I receive [go to 5 v]\nswitch backdrop to (backdrop5 v)\nswitch costume to (costume5 v)\ngo to [back v] layer\n\nwhen I receive [go to 6 v]\nswitch costume to (costume5-2 v)\nswitch backdrop to (backdrop6 v)\n\nwhen I receive [go to 8 v]\nswitch costume to (costume7 v)\nswitch backdrop to (backdrop8 v)\n\nwhen I receive [go to 9 v]\nswitch backdrop to (backdrop9 v)\nswitch costume to (costume8 v)\n\nwhen I receive [go to 10 v]\nswitch backdrop to (backdrop10 v)\nswitch costume to (costume9 v)\n\nwhen I receive [the game is on v]\nshow\nswitch costume to (costume1 v)\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [burning... v]\nswitch costume to (costume5-2 v)\nbroadcast (good burn v)\nwait (0.7) seconds\nswitch costume to (costume6 v)\nwait (0.7) seconds\nswitch costume to (costume5-4 v)\nwait (0.7) seconds\nswitch costume to (costume5-5 v)\n\nwhen I receive [go to 11 v]\nswitch backdrop to (backdrop12 v)\nswitch costume to (costume10 v)\n\nwhen flag clicked\nset volume to (100) %\nforever\n    play sound [Wings of Fire - Starflight the NightWing's Theme v] until done\nend\n\nwhen I receive [fates v]\nif <<<key (z v) pressed?> and <(dragon:) = [Fatespeaker]>> and <(costume [number v]) = [5]>> then\n    switch costume to (fates v)\nelse\n    switch costume to (costume5 v)\nend\n\nwhen I receive [boooom v]\nforever\n    hide\nend\n\n@player\n\nwhen flag clicked\nhide\ngo to x: (-208) y: (-111)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    platform gravity: [-1] jump height: [15] side movement speed: [3] friction: [.7] slope: [8]\nend\n\nshow\n\ndefine platform gravity: (gravity) jump height: (jump height) side movement speed: (side movement speed) friction: (friction) slope: (slope)\nchange [y velocity v] by (gravity)\nchange y by (y velocity)\nif <touching (lvl v)?> then\n    repeat until <not <touching (lvl v)?>>\n        change y by ((([abs v] of (y velocity) ) / (y velocity)) * (-1))\n    end\n    set [y velocity v] to [0]\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        set [y velocity v] to (jump height)\n    end\nend\nset [x velocity v] to (((x velocity) + ((<<key (left arrow v) pressed?> or <key (a v) pressed?>> * ((side movement speed) * (-1))) + (<<key (right arrow v) pressed?> or <key (d v) pressed?>> * (side movement speed)))) * (friction))\nchange x by (x velocity)\nset [slope v] to [0]\nrepeat until <<(slope) = ((slope) * (-1))> or <not <touching (lvl v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (lvl v)?> then\n    change y by (slope)\n    repeat until <not <touching (lvl v)?>>\n        change x by ((([abs v] of (x velocity) ) / (x velocity)) * (-1))\n    end\nend\n\n\n\nchange y by (1)\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen backdrop switches to [backdrop2 v]\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen I receive [go to background 3 v]\ngo to x: (-199) y: (25)\n\ngo to x: (130) y: (15)\n\nshow\n\nwhen flag clicked\nset [dragon: v] to [Clay]\nset size to (250) %\nswitch costume to (costume11 v)\nrepeat until <<key (6 v) pressed?> or <<key (2 v) pressed?> or <<key (3 v) pressed?> or <<key (4 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (costume11 v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [go to back ground 7 v]\n\nwhen backdrop switches to [backdrop7 v]\ngo to x: (-211) y: (57)\n\nwait (0.2) seconds\ngo to [front v] layer\n\nwhen backdrop switches to [backdrop5 v]\n\nwhen [4 v] key pressed\nset [dragon: v] to [Glory]\nset size to (250) %\nswitch costume to (costume41 v)\nrepeat until <<key (1 v) pressed?> or <<key (2 v) pressed?> or <<key (3 v) pressed?> or <<key (6 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (costume41 v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (costume4 v)\n    end\nend\n\nwhen [3 v] key pressed\nset [dragon: v] to [Sunny]\nset size to (250) %\nswitch costume to (costume31 v)\nrepeat until <<key (1 v) pressed?> or <<key (2 v) pressed?> or <<key (6 v) pressed?> or <<key (4 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (costume31 v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (costume3 v)\n    end\n    if <key (z v) pressed?> then\n        set size to (150) %\n    else\n        set size to (250) %\n    end\nend\n\nwhen [2 v] key pressed\nset [dragon: v] to [Tsunami]\nset size to (250) %\nswitch costume to (costume21 v)\nrepeat until <<key (1 v) pressed?> or <<key (6 v) pressed?> or <<key (3 v) pressed?> or <<key (4 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <key (z v) pressed?> then\n        switch costume to (costume21 light v)\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            switch costume to (costume21 light v)\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            switch costume to (costume2 light v)\n        end\n    else\n        switch costume to (costume21 v)\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            switch costume to (costume21 v)\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            switch costume to (costume2 v)\n        end\n    end\nend\n\nwhen [1 v] key pressed\nset [dragon: v] to [Clay]\nset size to (250) %\nswitch costume to (costume11 v)\nrepeat until <<key (6 v) pressed?> or <<key (2 v) pressed?> or <<key (3 v) pressed?> or <<key (4 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (costume11 v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (costume1 v)\n    end\nend\n\nswitch costume to (costume31 v)\n\nwhen flag clicked\nforever\n    if <<touching (sprite5 v)?> and <<(dragon:) = [Sunny]> or <<(dragon:) = [Starflight]> or <<(dragon:) = [Tsunami]> or <<(dragon:) = [Fatespeaker]> or <(dragon:) = [Glory]>>>>>> then\n        go to x: (-196) y: (131)\n        say [>.< too hot for me!] for (0.2) seconds\n    else\n        if <<touching (sprite5 v)?> and <(dragon:) = [Clay]>> then\n            wait (1.5) seconds\n            go to x: (-196) y: (131)\n            say [Cant stay in lava for that long...] for (0.6) seconds\n        else\n            if <not <touching (sprite5 v)?>> then\n        end\n    end\nend\n\nbroadcast (go to background 4 v)\n\n\n\ngo to x: (-185) y: (96)\n\nwhen I receive [get out v]\ngo to x: (-211) y: (-108)\n\nbroadcast (go to back ground 7 v)\n\nforever\n    if <touching color (#60cfff)?> then\n        broadcast (go to background 4 v)\n        go to x: (-211) y: (-108)\n    end\nend\n\nwait (0.1) seconds\n\nforever\n    if <touching color (#00b3ff)?> then\n        broadcast (message1 v)\n    end\nend\n\nforever\n    if <touching color (#43c7ff)?> then\n        broadcast (go to background 3 v)\n        go to x: (-199) y: (25)\n    end\nend\n\ngo to x: (-183) y: (-106)\ngo to x: (-199) y: (25)\n\nforever\n    if <touching (sprite5 v)?> then\n        go to x: (-130) y: (54)\n    end\nend\n\ngo to x: (-214) y: (-104)\n\nwhen I receive [go to background 4 v]\ngo to x: (-199) y: (25)\n\nwhen I receive [go to 5 v]\ngo to x: (-211) y: (-108)\n\nwhen I receive [go to 6 v]\ngo to x: (-211) y: (-68)\n\nwhen [r v] key pressed\ngo to x: (-186) y: (-89)\n\nwhen flag clicked\n\ngo to [front v] layer\n\nwhen I receive [go to 8 v]\ngo to x: (-206) y: (-66)\n\ngo to [front v] layer\n\nwhen I receive [go to 9 v]\ngo to x: (-234) y: (-101)\n\nwhen I receive [i found u v]\ngo to x: (-199) y: (-68)\n\nwhen I receive [go to 10 v]\ngo to x: (-234) y: (-101)\n\nwhen I receive [the game is on v]\nshow\n\nwhen [5 v] key pressed\nset [dragon: v] to [Fatespeaker]\nset size to (250) %\nswitch costume to (costume6 v)\nrepeat until <<key (1 v) pressed?> or >\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (costume6 v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (costume61 v)\n    end\n    if <key (z v) pressed?> then\n        broadcast (fates flash v)\n    end\nend\n\nwhen I receive [go to 11 v]\ngo to x: (-197) y: (-81)\n\nwhen [4 v] key pressed\nwait (0.5) seconds\nrepeat until <<key (1 v) pressed?> or <<key (2 v) pressed?> or <<key (3 v) pressed?> or <key (5 v) pressed?>>>>\n    if <key (z v) pressed?> then\n        if <(costume [number v]) = [10]> then\n            broadcast (Spit v)\n            wait (3) seconds\n        else\n            broadcast (Spit G v)\n            wait (3) seconds\n        end\n    end\nend\n\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    switch costume to (costume21 v)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    switch costume to (costume2 v)\nend\n\nwhen [2 v] key pressed\nrepeat until <<key (1 v) pressed?> or <<key (6 v) pressed?> or <<key (3 v) pressed?> or <<key (4 v) pressed?> or <key (5 v) pressed?>>>>>\n    if <key (z v) pressed?> then\n        broadcast (tsunami v)\n    end\nend\n\nwhen backdrop switches to [backdrop6 v]\n\nwhen backdrop switches to [backdrop5 v]\nforever\n    if <<key (z v) pressed?> and <(dragon:) = [Fatespeaker]>> then\n        broadcast (fates v)\n        stop [this script v]\n    end\nend\n\nswitch costume to (costume61 v)\n\nstop [this script v]\n\nstop [this script v]\n\nforever\n\nrepeat until <not <touching (sprite5 v)?>>\n\nwhen I receive [lavaaaaa v]\ngo to x: (-196) y: (-55)\nsay [>.< too hot for me!] for (0.2) seconds\n\nwhen I receive [boooom v]\nforever\n    hide\nend\n\n@Sprite1\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (get out v)\n        stop [this script v]\n    end\nend\n\nsay [Hello!] for (2) seconds\n\nwhen backdrop switches to [backdrop2 v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to background 3 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\n\nhide\n\nwhen backdrop switches to [backdrop3 v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to background 4 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [backdrop4 v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 5 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [backdrop5 v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 6 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [backdrop6 v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to back ground 7 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [backdrop7 v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 8 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [backdrop8 v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 9 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [backdrop9 v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 10 v)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [backdrop10 v]\nhide\n\nwhen backdrop switches to [backdrop10 v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        broadcast (go to 11 v)\n        stop [this script v]\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop2 v]\n\nshow\n\nwhen backdrop switches to [backdrop3 v]\n\nhide\n\nwhen backdrop switches to [backdrop10 v]\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop3 v]\n\nshow\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\nrepeat until <<key (1 v) pressed?> or <<key (2 v) pressed?> or <<key (3 v) pressed?> or <<key (4 v) pressed?> or <key (5 v) pressed?>>>>>\n\nwhen backdrop switches to [backdrop10 v]\nhide\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop6 v]\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\n\nwhen backdrop switches to [backdrop5 v]\n\nwhen backdrop switches to [backdrop5 v]\n\nhide\nswitch costume to (costume3 v)\n\nwhen backdrop switches to [backdrop7 v]\nhide\n\nswitch costume to (costume2 v)\nshow\n\nwhen backdrop switches to [backdrop8 v]\nhide\n\nshow\n\nif <touching (player v)?> then\n    switch costume to (costume4 v)\n    wait (0.5) seconds\n    switch costume to (costume3 v)\n    forever\n        wait (5) seconds\n    end\nend\n\nwhen backdrop switches to [backdrop10 v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nset [dragon keys v] to [0]\nhide\nforever\n    change y by (3)\n    wait (0.3) seconds\n    change y by (-3)\n    wait (0.3) seconds\nend\n\nwhen I start as a clone\n\nwhen backdrop switches to [backdrop3 v]\ngo to x: (92) y: (-100)\nshow\nforever\n    if <touching (player v)?> then\n        hide\n        change [dragon keys v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\n\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop4 v]\ngo to [back v] layer\ngo to x: (49) y: (-157)\nshow\nforever\n    if <touching (player v)?> then\n        hide\n        change [dragon keys v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [backdrop5 v]\ngo to x: (173) y: (90)\nshow\ngo to [back v] layer\nforever\n    if <touching (player v)?> then\n        hide\n        change [dragon keys v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (185) y: (-100)\nshow\ngo to [front v] layer\nforever\n    if <touching (player v)?> then\n        hide\n        change [dragon keys v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [backdrop7 v]\ngo to x: (15) y: (50)\nshow\ngo to [back v] layer\nforever\n    if <touching (player v)?> then\n        hide\n        change [dragon keys v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [backdrop8 v]\ngo to x: (-81) y: (2)\nshow\ngo to [front v] layer\nforever\n    if <touching (player v)?> then\n        hide\n        change [dragon keys v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (171) y: (-18)\nshow\ngo to [front v] layer\nforever\n    if <touching (player v)?> then\n        hide\n        change [dragon keys v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen I receive [boooom v]\nhide\n\n@Guards\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop7 v]\nswitch costume to (2 v)\nshow\ngo to [back v] layer\nforever\n    if <touching (player v)?> then\n        broadcast (I FOUND U v)\n        say [INTRUDERS!] for (0.4) seconds\n    end\nend\n\nwhen flag clicked\n\nwhen backdrop switches to [backdrop8 v]\nhide\n\nwhen backdrop switches to [backdrop10 v]\nhide\n\nwhen backdrop switches to [backdrop8 v]\nstop [other scripts in sprite v]\n\nwhen backdrop switches to [backdrop7 v]\nforever\n    if <touching (sprite14 v)?> then\n        next costume\n    end\nend\n\nbroadcast (I FOUND U v)\nsay [INTRUDERS!] for (0.4) seconds\n\nif <key (z v) pressed?> then\n\n@Sprite11\n\nwhen flag clicked\ngo to x: (-238) y: (-55)\nshow\n\nwhen this sprite clicked\nhide\nbroadcast (the game is on v)\nshow variable [dragon: v]\nshow variable [dragon keys v]\n\n@Sprite13\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop4 v]\nshow\nforever\n    if <touching (player v)?> then\n        hide\n    end\nend\n\nbroadcast (water v)\n\nwhen backdrop switches to [backdrop5 v]\nhide\n\n@Sprite14\n\nwhen I receive [spit v]\nswitch costume to (costume1 v)\nshow\ngo to (player v)\nchange y by (13)\nchange x by (31)\nrepeat until <<touching (_edge_ v)?> or <touching (lvl v)?>>\n    move (17) steps\nend\nswitch costume to (costume2 d v)\nwait (0.02) seconds\nswitch costume to (costume3 d v)\nwait (0.02) seconds\nswitch costume to (costume4 d v)\nwait (0.02) seconds\nhide\n\nwhen flag clicked\nhide\nforever\n    if <touching (guards v)?> then\n        wait (0.3) seconds\n        hide\n    end\nend\n\nwhen I receive [spit g v]\nswitch costume to (costume1 v)\nshow\ngo to (player v)\nchange y by (13)\nchange x by (-31)\nrepeat until <<touching (_edge_ v)?> or <touching (lvl v)?>>\n    move (-17) steps\nend\nswitch costume to (costume2 g v)\nwait (0.02) seconds\nswitch costume to (costume3 g v)\nwait (0.02) seconds\nswitch costume to (costume4 g v)\nwait (0.02) seconds\nhide\n\nwhen I receive [boooom v]\nhide\n\n@Sprite15\n\nwhen flag clicked\nhide\nforever\n    wait (0.18) seconds\n    next costume\nend\n\nwhen flag clicked\nhide\nforever\n    go to (player v)\nend\n\nwhen I receive [tsunami v]\nrepeat until <not <key (z v) pressed?>>\n    show\nend\nhide\n\nwhen I receive [boooom v]\nhide\n\n@Sprite12\n\nwhen flag clicked\nhide\n\nwhen I receive [fates flash v]\nrepeat until <not <key (z v) pressed?>>\n    show\nend\nhide\n\nwhen flag clicked\nforever\n    go to (player v)\nend\n\nwhen I receive [boooom v]\nhide\n\n@Sprite16\n\nwhen backdrop switches to [backdrop1 v]\nforever\n    go to x: (-400) y: (pick random (142) to (12))\n    wait (pick random (0.5) to (3)) seconds\n    show\n    switch costume to (pick random (1) to (3))\n    repeat (132)\n        move (5) steps\n    end\n    hide\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop6 v]\nforever\n    hide\nend\n\n@Sprite9\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop8 v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        if <(Dragon Keys) = [6]> then\n            broadcast (opencage:D v)\n            stop [this script v]\n        else\n            say [You need 6 Dragon Keys to open this cage!]\n        end\n    end\nend\n\nwhen I receive [opencage:d v]\nrepeat (11)\n    next costume\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [backdrop9 v]\nhide\n\n@Sprite6\n\nwhen flag clicked\nhide\ngo to x: (-42) y: (29)\n\nwhen backdrop switches to [backdrop9 v]\nwait (0.6) seconds\nshow\nglide (8.5) secs to x: (593) y: (29)\n\nwhen backdrop switches to [backdrop9 v]\nforever\n    if <touching (player v)?> then\n        stop [other scripts in sprite v]\n        hide\n        broadcast (LAVAAAAA v)\n        go to x: (-42) y: (29)\n    end\nend\n\nwhen I receive [lavaaaaa v]\nwait (0.6) seconds\nshow\nglide (8.5) secs to x: (593) y: (29)\n\nwhen I receive [boooom v]\ngo to x: (-42) y: (29)\nforever\n    hide\nend\n\n@Spriteee\n\nwhen backdrop switches to [backdrop12 v]\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (BOOOOM v)\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [boooom v]\nhide\n\nstop [all v]\n\n@Key\n\nwhen I receive [spoilers v]\nshow\ngo to [front v] layer\nforever\n    go to [front v] layer\n    next costume\n    wait (0.5) seconds\nend\n\nwhen flag clicked\nhide\n\n@Sprite7\n\nwhen I receive [spoilers v]\nshow\ngo to [front v] layer\nhide variable [dragon keys v]\nhide variable [dragon: v]\n\nwhen flag clicked\nhide\n\n@3 queens\n\nwhen flag clicked\nhide\n\nwhen I receive [spoilers v]\nshow\ngo to [front v] layer\nforever\n    go to [front v] layer\n    next costume\n    wait (0.5) seconds\nend\n\n