Mario: A platformer

Instructions: ----------------------------Instructions--------------------------\n-Arrow keys to move\n-Avoid enemies (you cannot stomp them)\n-Touch the flag to proceed to the next level\n---------------------------------------------------------------------\nMIssion: win without dying 

@Stage\n\nwhen flag clicked\nforever\n    play sound [01-birabuto-king v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (scene #1 v)\n\n@Blank\n\n@Sprite33\n\ndefine Platform Gravity (gravity) Jump Height (jump height) Side Movement Speed (movement speed) Friction (friction) Slope (slope)\nchange [gravity y v] by (gravity)\nchange y by (GRAVITY Y)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (GRAVITY Y) ) / (GRAVITY Y)) * (-1))\n    end\n    set [gravity y v] to (<<key (up arrow v) pressed?> and <(([abs v] of (GRAVITY Y) ) / (GRAVITY Y)) = [-1]>> * (jump height))\nend\nset [gravity x v] to ((((GRAVITY X) + (<key (left arrow v) pressed?> * ((movement speed) * (-1)))) + (<key (right arrow v) pressed?> * (movement speed))) * (friction))\nchange x by (GRAVITY X)\nif <touching (level v)?> then\n    change y by (SLOPE)\n    repeat until <not <touching (level v)?>>\n        change x by ((([abs v] of (GRAVITY X) ) / (GRAVITY X)) * (-1))\n    end\nend\nset [slope v] to [0]\nrepeat until <<(SLOPE) = ((slope) * (-1))> or <not <touching (level v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\n\nwhen flag clicked\nshow\nforever\n    Platform Gravity [-1] Jump Height [13] Side Movement Speed [0.7] Friction [0.9] Slope [8]\n    if <touching (flag v)?> then\n        next backdrop\n        go to x: (-171) y: (-111)\n    end\nend\n\nwhen flag clicked\ngo to x: (-171) y: (-111)\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        next costume\n        wait (0) seconds\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        next costume\n        wait (0) seconds\n    end\n    if <not <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>> then\n        switch costume to (mario_walk\[1\]3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bug fix v)?> then\n        go to x: (-171) y: (-111)\n        Platform Gravity [-1] Jump Height [13] Side Movement Speed [0.7] Friction [0.9] Slope [8]\n    end\nend\n\nwhen backdrop switches to [victory v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (goomba v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (goomba 2 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (goomba 3 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (goomba 4 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (goomba 5 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (rocket v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (goomba 6 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (goomba 7 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (bomb man v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (shy guy v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (shy guy 2 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (flying shy guy v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (smb3goomba 9 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (goomba 10 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (underworld goomba v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (underworld goomba2 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (underworld goomba3 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (underworld goomba4 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (underworld goomba5 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (underworld goomba6 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (underworld goomba7 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (underworld goomba8 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (underworld goomba9 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (underworld goomba10 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (chompa v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (chompa v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (sprite2 v)?> then\n        go to x: (-77) y: (-114)\n    end\n    if <touching (lava v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (spike v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (spike2 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (spike3 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (grey goomba v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (grey goomba 2 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (grey goomba 3 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (grey goomba 4 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (grey goomba 6 v)?> then\n        go to x: (-171) y: (-111)\n    end\n    if <touching (grey goomba 7 v)?> then\n        go to x: (-171) y: (-111)\n    end\nend\n\nwhen backdrop switches to [scene #6 v]\ngo to x: (-171) y: (-109)\n\n@level\n\nwhen flag clicked\nshow\ngo to x: (36) y: (28)\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [scene #2 v]\nswitch costume to (costume2 v)\n\nwhen backdrop switches to [scene #3 v]\nswitch costume to (costume3 v)\n\nwhen backdrop switches to [scene #4 v]\nswitch costume to (costume4 v)\n\nwhen backdrop switches to [scene #5 v]\nswitch costume to (costume5 v)\n\nwhen backdrop switches to [scene #6 v]\nswitch costume to (costume6 v)\n\nwhen backdrop switches to [scene #7 v]\nswitch costume to (costume7 v)\n\nwhen backdrop switches to [scene #8 v]\nswitch costume to (costume8 v)\n\nwhen backdrop switches to [scene #9 v]\nswitch costume to (costume9 v)\n\nwhen backdrop switches to [scene #10 v]\nswitch costume to (costume10 v)\n\nwhen backdrop switches to [scene #11 v]\nswitch costume to (costume11 v)\n\nwhen backdrop switches to [scene #12 v]\nswitch costume to (costume12 v)\n\nwhen backdrop switches to [scene #13 v]\nswitch costume to (costume13 v)\n\nwhen backdrop switches to [scene #14 v]\nswitch costume to (costume14 v)\n\nwhen backdrop switches to [scene #15 v]\nswitch costume to (costume15 v)\n\nwhen backdrop switches to [scene #16 v]\nswitch costume to (costume16 v)\n\nwhen backdrop switches to [scene #17 v]\nswitch costume to (costume17 v)\n\nwhen backdrop switches to [scene #18 v]\nswitch costume to (costume18 v)\n\nwhen backdrop switches to [scene #19 v]\nswitch costume to (costume19 v)\n\nwhen backdrop switches to [scene #20 v]\nswitch costume to (costume20 v)\n\nwhen backdrop switches to [scene #21 v]\nswitch costume to (costume21 v)\n\nwhen backdrop switches to [scene #22 v]\nswitch costume to (costume22 v)\n\nwhen backdrop switches to [scene #23 v]\nswitch costume to (costume23 v)\n\nwhen backdrop switches to [victory v]\nhide\n\n@flag\n\nwhen flag clicked\nset size to (140) %\nswitch costume to (costume1 v)\nshow\ngo to x: (218) y: (-127)\n\nwhen backdrop switches to [scene #5 v]\ngo to x: (229) y: (-71)\n\nwhen backdrop switches to [scene #6 v]\ngo to x: (223) y: (9)\n\nwhen backdrop switches to [scene #7 v]\ngo to x: (-108) y: (86)\n\nwhen backdrop switches to [scene #8 v]\nhide\ngo to x: (218) y: (-127)\nwait (14) seconds\nshow\n\nwhen backdrop switches to [scene #9 v]\ngo to x: (228) y: (13)\n\nwhen backdrop switches to [scene #10 v]\nshow\nset size to (70) %\ngo to x: (198) y: (-105)\nswitch costume to (tube1 v)\n\nwhen backdrop switches to [scene #11 v]\nset size to (140) %\nswitch costume to (costume2 v)\ngo to x: (206) y: (50)\n\nwhen backdrop switches to [scene #12 v]\ngo to x: (-208) y: (121)\n\nwhen backdrop switches to [scene #13 v]\ngo to x: (227) y: (24)\n\nwhen backdrop switches to [scene #14 v]\nset size to (50) %\ngo to x: (222) y: (-105)\nswitch costume to (costume3 v)\n\nwhen backdrop switches to [scene #15 v]\nset size to (140) %\nswitch costume to (costume1 v)\ngo to x: (229) y: (7)\n\nwhen backdrop switches to [scene #16 v]\nset size to (70) %\ngo to x: (198) y: (-105)\nswitch costume to (tube1 v)\n\nwhen backdrop switches to [scene #17 v]\nswitch costume to (costume4 v)\nset size to (140) %\ngo to x: (210) y: (106)\n\nwhen backdrop switches to [scene #18 v]\ngo to x: (-188) y: (112)\n\nwhen backdrop switches to [scene #19 v]\ngo to x: (224) y: (-82)\n\nwhen backdrop switches to [scene #20 v]\ngo to x: (225) y: (-127)\n\nwhen backdrop switches to [scene #21 v]\ngo to x: (225) y: (10)\n\nwhen backdrop switches to [scene #22 v]\ngo to x: (213) y: (-130)\nswitch costume to (costume5 v)\n\nwhen backdrop switches to [scene #23 v]\nswitch costume to (costume1 v)\ngo to x: (224) y: (-124)\n\nwhen backdrop switches to [victory v]\nhide\n\n@Goomba\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #2 v]\nshow\ngo to x: (142) y: (-111)\nforever\n    change x by (-3)\n    if <touching (_edge_ v)?> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #3 v]\nhide\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to x: (93) y: (22)\n\nwhen backdrop switches to [scene #2 v]\nhide\n\n@Goomba 2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #3 v]\nshow\ngo to x: (142) y: (-111)\nforever\n    change x by (-3)\n    if <touching (_edge_ v)?> then\n        hide\n    end\nend\n\nwhen backdrop switches to [scene #4 v]\nhide\n\n@Goomba 3\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #3 v]\nshow\ngo to x: (12) y: (-35)\n\nwhen backdrop switches to [scene #4 v]\nhide\n\n@Goomba 4\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #3 v]\nshow\ngo to x: (12) y: (-35)\n\nwhen backdrop switches to [scene #4 v]\n\nwhen backdrop switches to [scene #4 v]\nshow\ngo to x: (49) y: (-113)\nforever\n    if <touching (level v)?> then\n        repeat (10)\n            change y by (3)\n        end\n    end\n    if <(y position) = [-83]> then\n        repeat (10)\n            change y by (-3)\n        end\n    end\nend\n\nwhen backdrop switches to [scene #5 v]\nhide\n\n@Goomba 5\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #4 v]\nshow\ngo to x: (91) y: (-114)\nforever\n    if <touching (level v)?> then\n        repeat (10)\n            change y by (5)\n        end\n    end\n    if <(y position) = [-64]> then\n        repeat (10)\n            change y by (-5)\n        end\n    end\nend\n\nwhen backdrop switches to [scene #5 v]\nhide\n\n@Rocket\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #5 v]\nshow\ngo to x: (165) y: (-79)\nforever\n    change x by (-1)\n    if <(x position) = [-25]> then\n        hide\n    end\nend\n\nwhen backdrop switches to [scene #6 v]\nhide\n\n@goomba 6\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #6 v]\nshow\ngo to x: (159) y: (-115)\nforever\n    change x by (-3)\n    if <touching (_edge_ v)?> then\n        hide\n    end\nend\n\nwhen backdrop switches to [scene #7 v]\nhide\n\n@Goomba 7\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #6 v]\nshow\ngo to x: (101) y: (-113)\nforever\n    change x by (-3)\n    if <touching (_edge_ v)?> then\n        hide\n    end\nend\n\nwhen backdrop switches to [scene #7 v]\nhide\n\n@Bomb man\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #6 v]\nshow\ngo to x: (115) y: (24)\nswitch costume to (costume17 v)\nwait (2) seconds\nswitch costume to (costume18 v)\nwait (0.05) seconds\nswitch costume to (costume19 v)\nwait (0.05) seconds\nswitch costume to (costume20 v)\nwait (0.05) seconds\nswitch costume to (costume21 v)\nwait (0.05) seconds\nswitch costume to (costume22 v)\nwait (0.05) seconds\nswitch costume to (costume23 v)\nwait (0.05) seconds\nswitch costume to (costume24 v)\nwait (0.05) seconds\nhide\n\nwhen backdrop switches to [scene #7 v]\nhide\n\n@Shy guy\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #7 v]\nshow\ngo to x: (199) y: (-102)\nforever\n    change x by (-4)\n    if <touching (_edge_ v)?> then\n        go to x: (199) y: (-102)\n    end\nend\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.04) seconds\nend\n\nwhen backdrop switches to [scene #8 v]\nhide\n\n@Shy Guy 2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #7 v]\nshow\ngo to x: (217) y: (-103)\nforever\n    change x by (-3)\n    if <touching (_edge_ v)?> then\n        go to x: (217) y: (-103)\n    end\nend\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.04) seconds\nend\n\nwhen backdrop switches to [scene #8 v]\nhide\n\n@Flying Shy Guy\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #7 v]\nshow\ngo to x: (35) y: (102)\nforever\n    if <touching (level v)?> then\n        repeat (120)\n            change y by (.5)\n        end\n    end\n    if <(y position) = [162]> then\n        repeat (120)\n            change y by (-.5)\n        end\n    end\nend\n\nset y to (162)\n\nwhen backdrop switches to [scene #7 v]\nforever\n    next costume\n    wait (0.03) seconds\nend\n\nwhen backdrop switches to [scene #8 v]\nhide\n\n@Yoshi\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #8 v]\nshow\nSay [uh hey Mario!] with duration [0.05] in between\nwait (1) seconds\nSay [You um headin somewhere?] with duration [0.05] in between\nwait (1) seconds\nSay [Well if you are, make sure to get me a cookie] with duration [0.05] in between\nwait (1) seconds\nSay [haven't had one in a while.] with duration [0.05] in between\nwait (1) seconds\nSay [good luck] with duration [0.05] in between\n\ndefine Say (text) with duration (duration) in between\nset [number v] to [0]\nset [text v] to []\nrepeat (length of (text))\n    change [number v] by (1)\n    say (join (text) (letter (number) of (text)))\n    set [text v] to (join (text) (letter (number) of (text)))\n    start sound [intro v]\n    wait (duration) seconds\nend\nsay []\n\nwhen backdrop switches to [scene #9 v]\nhide\n\n@bug fix\n\nwhen flag clicked\nshow\ngo to x: (72) y: (-444)\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [scene #11 v]\nswitch costume to (costume2 v)\n\nwhen backdrop switches to [scene #15 v]\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [scene #17 v]\nswitch costume to (costume3 v)\n\nwhen backdrop switches to [scene #23 v]\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [victory v]\nhide\n\n@SMB3Goomba 9\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #9 v]\nshow\ngo to x: (-72) y: (-109)\nforever\n    if <(x position) = [-72]> then\n        repeat (10)\n            change x by (4)\n        end\n    end\n    if <(x position) = [-32]> then\n        repeat (10)\n            change x by (-4)\n        end\n    end\nend\n\nwhen backdrop switches to [scene #10 v]\nhide\n\n@Goomba 10\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #9 v]\nshow\ngo to x: (33) y: (-111)\nforever\n    if <(x position) = [63]> then\n        repeat (10)\n            change x by (-3)\n        end\n    end\n    if <(x position) = [33]> then\n        repeat (10)\n            change x by (3)\n        end\n    end\nend\n\nwhen backdrop switches to [scene #10 v]\nhide\n\n@Underworld Goomba\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #10 v]\nhide\n\nwhen backdrop switches to [scene #11 v]\nshow\ngo to x: (212) y: (-114)\nforever\n    change x by (-4)\n    if <touching (_edge_ v)?> then\n        hide\n    end\nend\n\nwhen backdrop switches to [scene #12 v]\nhide\n\n@Underworld Goomba2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #10 v]\nhide\n\nwhen backdrop switches to [scene #11 v]\nshow\ngo to x: (129) y: (-115)\nforever\n    change x by (-3)\n    if <touching (_edge_ v)?> then\n        hide\n    end\nend\n\nwhen backdrop switches to [scene #12 v]\nhide\n\n@Underworld Goomba3\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #10 v]\nhide\n\nwhen backdrop switches to [scene #11 v]\nshow\ngo to x: (-23) y: (-116)\nforever\n    change x by (-2)\n    if <touching (_edge_ v)?> then\n        hide\n    end\nend\n\nwhen backdrop switches to [scene #12 v]\nhide\n\n@Underworld Goomba4\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #10 v]\nhide\n\nwhen backdrop switches to [scene #11 v]\nshow\ngo to x: (215) y: (-113)\nforever\n    change x by (-1)\n    if <touching (_edge_ v)?> then\n        hide\n    end\nend\n\nwhen backdrop switches to [scene #12 v]\nhide\n\n@Underworld Goomba5\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #10 v]\nhide\n\nwhen backdrop switches to [scene #11 v]\nshow\ngo to x: (34) y: (-30)\n\nwhen backdrop switches to [scene #12 v]\nhide\n\n@Underworld Goomba6\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #12 v]\nshow\ngo to x: (87) y: (-24)\n\nwhen backdrop switches to [scene #13 v]\nhide\n\n@Underworld Goomba7\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #12 v]\nshow\ngo to x: (41) y: (94)\n\nwhen backdrop switches to [scene #13 v]\nhide\n\nwhen backdrop switches to [scene #13 v]\nhide\n\n@Underworld Goomba8\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #12 v]\nshow\ngo to x: (195) y: (-115)\nforever\n    change x by (-4)\n    if <touching (_edge_ v)?> then\n        hide\n    end\nend\n\n@Underworld Goomba9\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #13 v]\nshow\ngo to x: (56) y: (-115)\nforever\n    if <(x position) = [56]> then\n        repeat (15)\n            change x by (2)\n        end\n    end\n    if <(x position) = [86]> then\n        repeat (15)\n            change x by (-2)\n        end\n    end\nend\n\nif <(x position) = [-33]> then\n    repeat (20)\n        change x by (-2)\n    end\nend\n\nwhen backdrop switches to [scene #14 v]\nhide\n\n@Underworld Goomba10\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #13 v]\nshow\ngo to x: (-73) y: (-116)\nforever\n    if <(x position) = [-73]> then\n        repeat (20)\n            change x by (2)\n        end\n    end\n    if <(x position) = [-33]> then\n        repeat (20)\n            change x by (-2)\n        end\n    end\nend\n\nwhen backdrop switches to [scene #14 v]\nhide\n\n@CHOMPA\n\nwhen flag clicked\nforever\n    if <(y position) = [-104]> then\n        next costume\n        wait (0.5) seconds\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #15 v]\nshow\ngo to [back v] layer\ngo to x: (-117) y: (-149)\nforever\n    if <(y position) = [-149]> then\n        wait (2) seconds\n        repeat (15)\n            change y by (3)\n        end\n    end\n    if <(y position) = [-104]> then\n        wait (1) seconds\n        repeat (15)\n            change y by (-3)\n        end\n    end\nend\n\nwait (1) seconds\nchange y by (-5)\n\nwhen backdrop switches to [scene #16 v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #15 v]\nshow\ngo to x: (213) y: (-92)\nforever\n    if <(x position) = [213]> then\n        repeat (10)\n            change x by (-5)\n        end\n    end\n    if <(x position) = [163]> then\n        glide (1) secs to x: (-69) y: (158)\n    end\n    if <(y position) = [158]> then\n        repeat (50)\n            change y by (-5)\n        end\n    end\n    if <(x position) = [-69]> then\n        repeat (30)\n            change x by (-5)\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nforever\nend\n\nwhen backdrop switches to [scene #16 v]\nhide\n\n@Luigi\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #23 v]\nshow\nSay [Well done, brother] with duration [0.05] in between\n\ndefine Say (text) with duration (duration) in between\nset [number v] to [0]\nset [text v] to []\nrepeat (length of (text))\n    change [number v] by (1)\n    say (join (text) (letter (number) of (text)))\n    set [text v] to (join (text) (letter (number) of (text)))\n    start sound [intro v]\n    wait (duration) seconds\nend\nsay []\n\nwhen backdrop switches to [scene #9 v]\nhide\n\nwhen backdrop switches to [victory v]\nhide\n\n@lava\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #17 v]\nshow\ngo to x: (154) y: (-124)\n\nwhen backdrop switches to [scene #18 v]\ngo to x: (89) y: (-124)\n\nwhen backdrop switches to [scene #20 v]\nhide\n\n@Spike\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #18 v]\nshow\ngo to x: (174) y: (-90)\n\nwhen backdrop switches to [scene #19 v]\nhide\n\n@Spike2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #18 v]\nshow\ngo to x: (154) y: (4)\n\nwhen backdrop switches to [scene #19 v]\nhide\n\n@Spike3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [scene #18 v]\nshow\ngo to x: (144) y: (96)\n\nwhen backdrop switches to [scene #19 v]\nhide\n\n@Grey Goomba\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #20 v]\nshow\ngo to x: (153) y: (-114)\nforever\n    change x by (-5)\n    if <touching (_edge_ v)?> then\n        hide\n    end\nend\n\nwhen backdrop switches to [scene #21 v]\nhide\n\n@Grey Goomba 2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #20 v]\nshow\ngo to x: (-73) y: (-115)\nforever\n    if <(y position) = [-115]> then\n        repeat (10)\n            change y by (6)\n        end\n    end\n    if <(y position) = [-55]> then\n        repeat (10)\n            change y by (-6)\n        end\n    end\nend\n\nwhen backdrop switches to [scene #21 v]\nhide\n\n@Grey Goomba 3\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #20 v]\nshow\ngo to x: (51) y: (-112)\nforever\n    change x by (-3)\n    if <touching (_edge_ v)?> then\n        hide\n    end\nend\n\nwhen backdrop switches to [scene #21 v]\nhide\n\n@Grey goomba 4\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #20 v]\nshow\ngo to x: (98) y: (-110)\nforever\n    if <(y position) = [-110]> then\n        repeat (10)\n            change y by (6)\n        end\n    end\n    if <(y position) = [-50]> then\n        repeat (10)\n            change y by (-6)\n        end\n    end\nend\n\nwhen backdrop switches to [scene #21 v]\nhide\n\n@Grey goomba 6\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #21 v]\nshow\ngo to x: (-73) y: (-115)\nforever\n    if <(x position) = [-73]> then\n        repeat (14)\n            change x by (3)\n        end\n    end\n    if <(x position) = [-31]> then\n        repeat (14)\n            change x by (-3)\n        end\n    end\nend\n\nwhen backdrop switches to [scene #22 v]\nhide\n\n@Grey Goomba 7\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [scene #21 v]\nshow\ngo to x: (52) y: (-115)\nforever\n    if <(x position) = [52]> then\n        repeat (14)\n            change x by (3)\n        end\n    end\n    if <(x position) = [94]> then\n        repeat (14)\n            change x by (-3)\n        end\n    end\nend\n\nwhen backdrop switches to [scene #22 v]\nhide\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (36) y: (28)\nset [ghost v] effect to (100)\ngo to [front v] layer\nshow\n\n