The 75 Level Challenge! (Platformer)

Instructions: Welcome to The 75 Level Challenge!\nUse WASD or the arrow keys to move\nObjective is to get to the yellow dot\nBlue will bounce the player high\nRed will kill the player\nLight Blue reduces friction to the player\nThe moon reduces gravity\nUse the S or Down Arrow key to unstick from the top of blue platforms

@Stage\n\nwhen flag clicked\nset [got the mario mushroom v] to [0]\nswitch backdrop to (sarting backdrop v)\nforever\n    if <(Got the Mario Mushroom) = [0]> then\n        play sound (pick random (1) to (4)) until done\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nwait (7) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nswitch backdrop to (backdrop1 v)\nset [ghost v] effect to (0)\n\nwhen I receive [level 26 v]\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [level 28 v]\nswitch backdrop to (backdrop3 v)\n\nwhen I receive [level 29 v]\nswitch backdrop to (backdrop4 v)\n\nwhen I receive [level 32 v]\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [level 35 \(2\) v]\nswitch backdrop to (backdrop5 v)\n\nwhen I receive [level 37 v]\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [level 40 v]\nswitch backdrop to (backdrop6 v)\n\nwhen I receive [level 41 v]\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [blast off v]\nwait (4) seconds\nswitch backdrop to (backdrop7 v)\n\nwhen I receive [level 61 v]\nswitch backdrop to (backdrop8 v)\n\nwhen I receive [level 68 v]\nswitch backdrop to (backdrop7 v)\n\nwhen I receive [level 67 v]\nswitch backdrop to (backdrop9 v)\n\nwhen I receive [level 62 v]\nswitch backdrop to (backdrop7 v)\n\nwhen I receive [prepare for landing pt. 2 v]\nswitch backdrop to (backdrop10 v)\n\nwhen I receive [level 71 v]\nswitch backdrop to (backdrop11 v)\n\nwhen I receive [level 72 v]\nswitch backdrop to (backdrop12 v)\n\nwhen I receive [level 75 v]\nswitch backdrop to (backdrop15 v)\n\nwhen I receive [level 74 v]\nswitch backdrop to (backdrop14 v)\n\nwhen I receive [level 73 v]\nswitch backdrop to (backdrop13 v)\n\nwhen I receive [rocket explosion v]\nset [got the mario mushroom v] to [1]\n\nwhen I receive [end game cutscene v]\nset [got the mario mushroom v] to [2]\nstop all sounds\nplay sound [Super Mario Bros Last Boss \[NES\].mp3 v] until done\nforever\n    play sound [Super Mario Bros. Music - Ending.mp3 v] until done\nend\n\nwhen I receive [rocket retry v]\nstop all sounds\nforever\n    if <(Got the Mario Mushroom) = [1]> then\n        play sound [Super Mario Bros. Theme \(techno remix\).mp3 v] until done\n    end\nend\n\n@A Secret??\n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\ngo to x: (0) y: (0)\nforever\n\nswitch costume to (costume1 v)\ngo to [front v] layer\nshow\nstop [all v]\n\n@Player\n\nwhen I receive [fade in & out v]\nhide\nset [on the moon v] to [1]\nwait (8) seconds\ngo to x: (-172) y: (-70)\nshow\n\nwhen I receive [level 40 v]\nset [level 32 v] to [1]\n\nwhen I receive [level 37 v]\nset [level 9 & 36 v] to [0]\n\nwhen I receive [level 36 v]\nset [level 9 & 36 v] to [1]\n\nwhen I receive [level 34 v]\nset [level 32 v] to [1]\n\nwhen I receive [level 32 v]\nset [level 32 v] to [1]\n\nwhen I receive [level 10 v]\nset [level 9 & 36 v] to [0]\n\nwhen I receive [level 9 v]\nset [level 9 & 36 v] to [1]\n\nwhen I receive [purple v]\nswitch costume to (costume10 v)\n\nwhen I receive [pink v]\nswitch costume to (costume9 v)\n\nwhen I receive [blue v]\nswitch costume to (costume8 v)\n\nwhen I receive [light blue v]\nswitch costume to (costume7 v)\n\nwhen I receive [dark green v]\nswitch costume to (costume6 v)\n\nwhen I receive [green v]\nswitch costume to (costume5 v)\n\nwhen I receive [yellow v]\nswitch costume to (costume4 v)\n\nwhen I receive [orange v]\nswitch costume to (costume3 v)\n\nwhen I receive [red v]\nswitch costume to (costume2 v)\n\nwhen I receive [black v]\nswitch costume to (costume1 v)\n\nwhen I receive [home v]\ngo to x: (-210) y: (-130)\n\nwhen I receive [color selection v]\ngo to x: (-233) y: (-130)\nset [pause v] to [1]\nwait (2) seconds\nset [pause v] to [0]\n\nwhen I receive [next level v]\nset [y vel v] to [0]\nset [touching blue v] to [0]\nif <(Level 9 & 36) = [0]> then\n    set [y vel v] to [0]\n    go to x: (-210) y: (-130)\nelse\n    set [y vel v] to [0]\n    go to x: (-220) y: (128)\nend\n\nwhen flag clicked\nforever\n    if <(Level 9 & 36) = [1]> then\n        go to x: (-220) y: (128)\n        go to x: (-220) y: (128)\n        broadcast (36, __, __ v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [final smoke/show player v]\nset [on the moon v] to [0]\nwait (0.1) seconds\ngo to x: (-172) y: (-70)\nshow\n\nwhen flag clicked\ngo to x: (-210) y: (-130)\nbroadcast (light blue v)\ngo to [front v] layer\nset [level 9 & 36 v] to [0]\nset [level 32 v] to [0]\nset [touching blue v] to [0]\nset [touching ice v] to [0]\nset [y vel v] to [0]\nset [x vel v] to [0]\nset [pause v] to [0]\nset [on the moon v] to [0]\nhide\nwait (7) seconds\nshow\nforever\n    if <(Pause) = [1]> then\n        platform physics (0) (-1) (0) (0) (0) (0)\n    else\n        if <(On the Moon) = [1]> then\n            platform physics (12) (-0.5) (0.9) (1) (10) (8)\n        else\n            platform physics (12) (-1) (0.9) (1) (10) (8)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (r v) pressed?> or <(y position) < [-185]>> then\n        if <(Level 9 & 36) = [0]> then\n            set [y vel v] to [0]\n            go to x: (-210) y: (-130)\n        else\n            set [y vel v] to [0]\n            go to x: (-220) y: (128)\n        end\n    end\nend\n\ndefine platform physics (jump height) (gravity) (friction) (movement speed) (wall jump vertical movement) (wall jump horizontal movement)\nchange y by (y vel)\nif <touching color (#003fff)?> then\n    set [touching blue v] to [1]\nend\nif <not <touching color (#003fff)?>> then\n    set [touching blue v] to [0]\nend\nif <touching color (#ccffff)?> then\n    set [touching ice v] to [1]\nend\nif <not <touching color (#ccffff)?>> then\n    set [touching ice v] to [0]\nend\nif <touching color (#ff0000)?> then\n    if <(Level 9 & 36) = [0]> then\n        set [y vel v] to [0]\n        go to x: (-210) y: (-130)\n    else\n        set [y vel v] to [0]\n        go to x: (-220) y: (128)\n    end\nend\nif <<touching (ground v)?> or <<touching (switchig block v)?> or <touching (moving block v)?>>> then\n    repeat ([abs v] of (y vel) )\n        if <<touching (ground v)?> or <<touching (switchig block v)?> or <touching (moving block v)?>>> then\n            change y by ((([abs v] of (y vel) ) / (y vel)) * (-1))\n        end\n    end\n    if <(Touching Blue) = [1]> then\n        set [y vel v] to [0]\n        change [y vel v] by (20)\n    end\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <not <(y vel) > [ 0 ]>>> then\n        set [y vel v] to (jump height)\n    else\n        if <(Touching Blue) = [0]> then\n            set [y vel v] to [0]\n        end\n    end\nelse\n    change [y vel v] by (gravity)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    if <<(Touching Ice) = [1]> and <(x vel) < [0]>> then\n        change [x vel v] by ((movement speed) * (-0.5))\n    else\n        change [x vel v] by (movement speed)\n    end\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    if <<(Touching Ice) = [1]> and <(x vel) > [0]>> then\n        change [x vel v] by ((-1) * ((movement speed) * (-0.5)))\n    else\n        change [x vel v] by ((-1) * (movement speed))\n    end\nend\nif <<<<key (down arrow v) pressed?> or <key (s v) pressed?>> and <(Touching Blue) = [1]>> and <(Level 32) = [1]>> then\n    change [y vel v] by (-20)\n    set [touching blue v] to [0]\nend\nchange x by (x vel)\nif <<touching (ground v)?> or <<touching (switchig block v)?> or <touching (moving block v)?>>> then\n    set [old y v] to (y position)\n    repeat (([abs v] of (x vel) ) + (1))\n        if <<touching (ground v)?> or <<touching (switchig block v)?> or <touching (moving block v)?>>> then\n            change y by (1)\n        end\n    end\nend\nif <<touching (ground v)?> or <<touching (switchig block v)?> or <touching (moving block v)?>>> then\n    set y to (old y)\n    repeat ([ceiling v] of ([abs v] of (x vel) ) )\n        if <<<touching (ground v)?> or <<touching (switchig block v)?> or <touching (moving block v)?>>> and <not <touching color (#ff0000)?>>> then\n            change x by ((([abs v] of (x vel) ) / (x vel)) * (-1))\n        else\n            if <touching color (#ff0000)?> then\n                if <(Level 9 & 36) = [0]> then\n                    set [y vel v] to [0]\n                    go to x: (-210) y: (-130)\n                else\n                    set [y vel v] to [0]\n                    go to x: (-220) y: (128)\n                end\n            end\n        end\n    end\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <(x vel) < [ 0 ]> then\n            set [x vel v] to [0]\n            if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n                set [x vel v] to [8]\n                set [y vel v] to (wall jump vertical movement)\n            end\n        else\n            set [x vel v] to (wall jump horizontal movement)\n            if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n                set [x vel v] to ((-1) * (wall jump horizontal movement))\n                set [y vel v] to (wall jump vertical movement)\n            end\n        end\n    end\nend\nif <(Touching Ice) = [1]> then\n    set [x vel v] to ((x vel) * (0.99))\nelse\n    set [x vel v] to ((x vel) * (friction))\nend\n\nwhen I receive [36, __, __ v]\nforever\n    if <(Level 9 & 36) = [1]> then\n        go to x: (-220) y: (128)\n        go to x: (-220) y: (128)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 67 v]\nhide\n\nwhen I receive [level 68 v]\nshow\n\nwhen I receive [fade in & out pt. 2 v]\nhide\n\nwhen I receive [got the mushroom v]\nforever\n    stop [other scripts in sprite v]\n    hide\nend\n\n@Ground\n\nwhen flag clicked\nswitch costume to (color selection v)\nhide\nwait (7) seconds\nswitch costume to (home menu v)\nset size to (100) %\nshow\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (Home Menu v)\n    end\n    if <(costume [number v]) = [3]> then\n        broadcast (Level 1 v)\n    end\n    if <(costume [number v]) = [4]> then\n        broadcast (Level 2 v)\n    end\n    if <(costume [number v]) = [5]> then\n        broadcast (Level 3 v)\n    end\n    if <(costume [number v]) = [6]> then\n        broadcast (Level 4 v)\n    end\n    if <(costume [number v]) = [7]> then\n        broadcast (Level 5 v)\n    end\n    if <(costume [number v]) = [8]> then\n        broadcast (Level 6 v)\n    end\n    if <(costume [number v]) = [9]> then\n        broadcast (Level 7 v)\n    end\n    if <(costume [number v]) = [10]> then\n        broadcast (Level 8 v)\n    end\n    if <(costume [number v]) = [11]> then\n        broadcast (Level 9 v)\n    end\n    if <(costume [number v]) = [12]> then\n        broadcast (Level 10 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [13]> then\n        broadcast (Level 11 v)\n    end\n    if <(costume [number v]) = [14]> then\n        broadcast (Level 12 v)\n    end\n    if <(costume [number v]) = [15]> then\n        broadcast (Level 13 v)\n    end\n    if <(costume [number v]) = [16]> then\n        broadcast (Level 14 v)\n    end\n    if <(costume [number v]) = [17]> then\n        broadcast (Level 15 v)\n    end\n    if <(costume [number v]) = [18]> then\n        broadcast (Level 16 v)\n    end\n    if <(costume [number v]) = [19]> then\n        broadcast (Level 17 v)\n    end\n    if <(costume [number v]) = [20]> then\n        broadcast (Level 18 v)\n    end\n    if <(costume [number v]) = [21]> then\n        broadcast (Level 19 v)\n    end\n    if <(costume [number v]) = [22]> then\n        broadcast (Level 20 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [23]> then\n        broadcast (Level 21 A v)\n    end\n    if <(costume [number v]) = [24]> then\n        broadcast (Level 21 B v)\n    end\n    if <(costume [number v]) = [25]> then\n        broadcast (Level 21 C v)\n    end\n    if <(costume [number v]) = [26]> then\n        broadcast (Level 21 D v)\n    end\n    if <(costume [number v]) = [27]> then\n        broadcast (Level 22 v)\n    end\n    if <(costume [number v]) = [28]> then\n        broadcast (Level 23 v)\n    end\n    if <(costume [number v]) = [29]> then\n        broadcast (Level 24 v)\n    end\n    if <(costume [number v]) = [30]> then\n        broadcast (Level 25 v)\n    end\n    if <(costume [number v]) = [31]> then\n        broadcast (Level 26 v)\n    end\n    if <(costume [number v]) = [32]> then\n        broadcast (Level 27 v)\n    end\n    if <(costume [number v]) = [33]> then\n        broadcast (Level 28 v)\n    end\n    if <(costume [number v]) = [34]> then\n        broadcast (Level 29 v)\n    end\n    if <(costume [number v]) = [35]> then\n        broadcast (Level 30 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [36]> then\n        broadcast (Level 31 v)\n    end\n    if <(costume [number v]) = [37]> then\n        broadcast (Level 32 v)\n    end\n    if <(costume [number v]) = [38]> then\n        broadcast (Level 33 v)\n    end\n    if <(costume [number v]) = [39]> then\n        broadcast (Level 34 v)\n    end\n    if <(costume [number v]) = [40]> then\n        broadcast (Level 35 A v)\n    end\n    if <(costume [number v]) = [41]> then\n        broadcast (Level 35 B v)\n    end\n    if <(costume [number v]) = [42]> then\n        broadcast (Level 35 C v)\n    end\n    if <(costume [number v]) = [43]> then\n        broadcast (Level 35 D v)\n    end\n    if <(costume [number v]) = [44]> then\n        broadcast (Level 35 E v)\n    end\n    if <(costume [number v]) = [45]> then\n        broadcast (Level 35 \(2\) v)\n    end\n    if <(costume [number v]) = [46]> then\n        broadcast (Level 36 v)\n    end\n    if <(costume [number v]) = [47]> then\n        broadcast (Level 37 v)\n    end\n    if <(costume [number v]) = [48]> then\n        broadcast (Level 38 v)\n    end\n    if <(costume [number v]) = [49]> then\n        broadcast (Level 39 v)\n    end\n    if <(costume [number v]) = [50]> then\n        broadcast (Level 40 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [51]> then\n        broadcast (Level 41 v)\n    end\n    if <(costume [number v]) = [52]> then\n        broadcast (Level 42 v)\n    end\n    if <(costume [number v]) = [53]> then\n        broadcast (Level 43 v)\n    end\n    if <(costume [number v]) = [54]> then\n        broadcast (Level 44 v)\n    end\n    if <(costume [number v]) = [55]> then\n        broadcast (Level 45 v)\n    end\n    if <(costume [number v]) = [56]> then\n        broadcast (Level 46 v)\n    end\n    if <(costume [number v]) = [57]> then\n        broadcast (Level 47 v)\n    end\n    if <(costume [number v]) = [58]> then\n        broadcast (Level 48 v)\n    end\n    if <(costume [number v]) = [59]> then\n        broadcast (Level 49 v)\n    end\n    if <(costume [number v]) = [60]> then\n        broadcast (Level 50 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [61]> then\n        broadcast (Level 51 v)\n    end\n    if <(costume [number v]) = [62]> then\n        broadcast (Level 52 v)\n    end\n    if <(costume [number v]) = [63]> then\n        broadcast (Level 53 v)\n    end\n    if <(costume [number v]) = [64]> then\n        broadcast (Level 54 v)\n    end\n    if <(costume [number v]) = [66]> then\n        broadcast (Level 55 v)\n    end\n    if <(costume [number v]) = [67]> then\n        broadcast (Level 56 v)\n    end\n    if <(costume [number v]) = [68]> then\n        broadcast (Level 57 v)\n    end\n    if <(costume [number v]) = [69]> then\n        broadcast (Level 58 v)\n    end\n    if <(costume [number v]) = [70]> then\n        broadcast (Level 59 v)\n    end\n    if <(costume [number v]) = [71]> then\n        broadcast (Level 60 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [72]> then\n        broadcast (Level 61 v)\n    end\n    if <(costume [number v]) = [73]> then\n        broadcast (Level 62 v)\n    end\n    if <(costume [number v]) = [74]> then\n        broadcast (Level 63 v)\n    end\n    if <(costume [number v]) = [75]> then\n        broadcast (Level 64 v)\n    end\n    if <(costume [number v]) = [76]> then\n        broadcast (Level 65 v)\n    end\n    if <(costume [number v]) = [77]> then\n        broadcast (Level 66 v)\n    end\n    if <(costume [number v]) = [78]> then\n        broadcast (Level 67 v)\n        ask [] and wait\n        if <<(answer) = [B]> or <(answer) = [b]>> then\n            switch costume to (costume68 v)\n        end\n    end\n    if <(costume [number v]) = [79]> then\n        broadcast (Level 68 v)\n    end\n    if <(costume [number v]) = [80]> then\n        broadcast (Level 69  v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [81]> then\n        broadcast (Level 70 Pt. 1 v)\n    end\n    if <(costume [number v]) = [84]> then\n        broadcast (Level 71 v)\n    end\n    if <(costume [number v]) = [85]> then\n        broadcast (Level 72 v)\n    end\n    if <(costume [number v]) = [86]> then\n        broadcast (Level 73 v)\n    end\n    if <(costume [number v]) = [87]> then\n        broadcast (Level 74 v)\n    end\n    if <(costume [number v]) = [89]> then\n        broadcast (Level 75 v)\n    end\nend\n\nwhen I receive [final level start screen v]\nswitch costume to (costume75 - v)\n\nwhen I receive [prepare for landing pt. 2 v]\nswitch costume to (costume70 pt. 2 v)\n\nwhen I receive [blast off pt. 2 v]\nswitch costume to (blast off pt. 2 v)\nwait (0.1) seconds\nnext costume\n\nwhen I receive [home v]\nswitch costume to (home menu v)\nshow\n\nwhen I receive [blast off v]\nswitch costume to (blast off v)\nwait (4) seconds\nnext costume\n\nwhen I receive [next level fyd v]\nnext costume\n\nwhen I receive [color selection v]\nswitch costume to (color selection v)\n\nwhen I receive [next level mario v]\nnext costume\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [end game cutscene v]\nswitch costume to (end 1 v)\nrepeat (29)\n    next costume\nend\n\nwhen flag clicked\nforever\n    go to x: ((Scroll #) + (0)) y: (0)\n    if <(x position) = [-465]> then\n        wait (0.01) seconds\n        hide\n    end\nend\n\n@Yellow Dot\n\nwhen I receive [level 1 v]\ngo to x: (219) y: (4)\nshow\n\nwhen I receive [level 4 v]\ngo to x: (220) y: (165)\nshow\n\nwhen I receive [level 5 v]\ngo to x: (220) y: (140)\nshow\n\nwhen I receive [level 6 v]\ngo to x: (190) y: (-145)\nshow\n\nwhen I receive [level 2 v]\ngo to x: (215) y: (-125)\nshow\n\nwhen I receive [level 7 v]\ngo to x: (222) y: (165)\nshow\n\nwhen I receive [level 8 v]\ngo to x: (145) y: (-35)\nshow\n\nwhen I receive [level 9 v]\ngo to x: (217) y: (130)\nshow\n\nwhen I receive [level 10 v]\ngo to x: (217) y: (-130)\nshow\n\nwhen I receive [level 11 v]\ngo to x: (222) y: (105)\nshow\n\nwhen I receive [level 12 v]\ngo to x: (222) y: (148)\nshow\n\nwhen I receive [level 13 v]\ngo to x: (-140) y: (134)\nshow\n\nwhen I receive [level 14 v]\ngo to x: (109) y: (161)\nshow\n\nwhen I receive [level 15 v]\ngo to x: (222) y: (-119)\nshow\n\nwhen I receive [level 16 v]\ngo to x: (221) y: (46)\nshow\n\nwhen I receive [level 17 v]\ngo to x: (223) y: (59)\nshow\n\nwhen I receive [level 18 v]\ngo to x: (220) y: (72)\nshow\n\nwhen I receive [level 19 v]\ngo to x: (217) y: (-139)\nshow\n\nwhen I receive [level 20 v]\ngo to x: (222) y: (101)\nshow\n\nwhen I receive [level 22 v]\ngo to x: (224) y: (-141)\nshow\n\nwhen I receive [level 23 v]\ngo to x: (214) y: (139)\nshow\n\nwhen I receive [level 24 v]\ngo to x: (211) y: (-143)\nshow\n\nwhen I receive [level 25 v]\ngo to x: (221) y: (72)\nshow\n\nwhen I receive [level 26 v]\ngo to x: (218) y: (153)\nshow\n\nwhen I receive [level 27 v]\ngo to x: (218) y: (153)\nshow\n\nwhen I receive [level 28 v]\ngo to x: (220) y: (-124)\nshow\n\nwhen I receive [level 29 v]\ngo to x: (220) y: (34)\nshow\n\nwhen I receive [level 30 v]\ngo to x: (145) y: (26)\nshow\n\nwhen I receive [level 31 v]\ngo to x: (224) y: (-123)\nshow\n\nwhen I receive [level 32 v]\ngo to x: (137) y: (-162)\nshow\n\nwhen I receive [level 33 v]\ngo to x: (220) y: (145)\nshow\n\nwhen I receive [level 34 v]\ngo to x: (222) y: (-142)\nshow\n\nwhen I receive [level 36 v]\ngo to x: (221) y: (149)\nshow\n\nwhen I receive [level 37 v]\ngo to x: (101) y: (104)\nshow\n\nwhen I receive [level 38 v]\ngo to x: (46) y: (-36)\nshow\n\nwhen I receive [level 39 v]\ngo to x: (220) y: (87)\nshow\n\nwhen I receive [level 40 v]\ngo to x: (9) y: (-105)\nshow\n\nwhen I receive [level 45 v]\ngo to x: (-221) y: (132)\nshow\n\nwhen I receive [level 46 v]\ngo to x: (220) y: (49)\nshow\n\nwhen I receive [level 47 v]\ngo to x: (223) y: (117)\nshow\n\nwhen I receive [level 48 v]\ngo to x: (222) y: (-138)\nshow\n\nwhen I receive [level 49 v]\ngo to x: (222) y: (-138)\nshow\n\nwhen I receive [level 50 v]\ngo to x: (219) y: (140)\nshow\n\nwhen flag clicked\nset [level 53 v] to [0]\nset [level 70 v] to [0]\nset [level 75 v] to [0]\ngo to [front v] layer\nswitch costume to (costume1 v)\nclear graphic effects\ngo to x: (198) y: (-71)\nhide\nforever\n    if <<touching (player v)?> and <(costume [number v]) = [1]>> then\n        if <(Level 53) = [1]> then\n            broadcast (Fade In & Out v)\n            go [backward v] (10) layers\n            wait (1) seconds\n            broadcast (Blast Off v)\n        else\n            if <(Level 70) = [1]> then\n                broadcast (Fade In & Out Pt. 2 v)\n                go [backward v] (10) layers\n                wait (1) seconds\n                broadcast (Blast Off Pt. 2 v)\n            else\n                broadcast (Next Level v)\n                hide\n            end\n        end\n    end\n    if <touching (mario v)?> then\n        if <(Level 75) = [1]> then\n            broadcast (Final Level Start Screen v)\n            wait (2) seconds\n            broadcast (Next Level Mario v)\n        else\n            broadcast (Next Level Mario v)\n            hide\n        end\n    end\nend\n\nwhen I receive [home menu v]\ngo to x: (225) y: (-71)\nshow\n\nwhen I receive [color selection v]\nhide\n\nwhen I receive [level 21 a v]\nhide\n\nwhen I receive [level 35 a v]\ngo to x: (222) y: (100)\nhide\n\nwhen I receive [level 35 \(2\) v]\nhide\n\nwhen I receive [level 35 e v]\nhide\n\nwhen I receive [level 41 v]\nhide\n\nwhen I receive [level 51 v]\ngo to x: (0) y: (75)\nshow\n\nwhen I receive [level 52 v]\ngo to x: (220) y: (-130)\nshow\n\nwhen I receive [level 53 v]\nset [level 53 v] to [1]\ngo to x: (117) y: (-56)\nshow\n\nwhen I receive [blast off v]\nforever\n    repeat until <(Level 53) = [0]>\n        hide\n    end\nend\n\nwhen I receive [level 67 v]\nhide\n\nwhen I receive [level 55 v]\ngo to x: (-7) y: (78)\nshow\n\nwhen I receive [level 56 v]\ngo to x: (148) y: (-99)\nshow\n\nwhen I receive [level 57 v]\ngo to x: (209) y: (-159)\nshow\n\nwhen I receive [level 58 v]\ngo to x: (222) y: (103)\nshow\n\nwhen I receive [level 59 v]\ngo to x: (138) y: (-121)\nshow\n\nwhen I receive [level 60 v]\ngo to x: (222) y: (40)\nshow\n\nwhen I receive [level 61 v]\ngo to x: (222) y: (98)\nshow\n\nwhen I receive [level 62 v]\ngo to x: (145) y: (-35)\nshow\n\nwhen I receive [level 63 v]\ngo to x: (224) y: (-138)\nshow\n\nwhen I receive [level 64 v]\ngo to x: (-93) y: (-61)\nshow\n\nwhen I receive [level 65 v]\ngo to x: (-114) y: (-96)\nshow\n\nwhen I receive [level 66 v]\ngo to x: (-5) y: (23)\nshow\n\nwhen I receive [level 68 v]\ngo to x: (175) y: (-142)\nshow\n\nwhen I receive [level 69  v]\ngo to x: (49) y: (-141)\nshow\n\nwhen I receive [level 70 pt. 1 v]\nset [level 70 v] to [1]\ngo to x: (117) y: (-56)\nshow\n\nwhen I receive [blast off pt. 2 v]\nforever\n    repeat until <(Level 70) = [0]>\n        hide\n    end\nend\n\nwhen I receive [level 71 v]\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [level 72 v]\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [level 73 v]\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [level 74 v]\nset [level 75 v] to [1]\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [prepare for landing pt. 2 v]\nset [level 70 v] to [0]\ngo to x: (0) y: (0)\npoint in direction (90)\ngo to [front v] layer\nswitch costume to (costume2 v)\nset [ghost v] effect to (100)\nshow\n\nwhen I receive [level 75 v]\nhide\n\nwhen I receive [level 54 v]\nset [level 53 v] to [0]\ngo to x: (223) y: (114)\nwait (0.001) seconds\ngo to [front v] layer\nshow\n\n@Instructions\n\nwhen I receive [level 2 v]\ngo to x: (0) y: (110)\nswitch costume to (costume2 v)\nshow\n\nwhen I receive [level 3 v]\ngo to x: (0) y: (110)\nswitch costume to (costume3 v)\nshow\n\nwhen I receive [level 4 v]\ngo to x: (-75) y: (110)\nswitch costume to (costume4 v)\nshow\n\nwhen I receive [level 5 v]\ngo to x: (-100) y: (50)\nswitch costume to (costume5 v)\nshow\n\nwhen I receive [fade in & out v]\nset [override lvl. 53? v] to [1]\nforever\n    if <(Override Lvl. 53?) = [1]> then\n        go to x: (-125) y: (117)\n        switch costume to (blast off v)\n        show\n    else\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [override lvl. 53? v] to [0]\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\n\nwhen I receive [level 1 v]\ngo to x: (-29) y: (161)\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [level 6 v]\ngo to x: (10) y: (-5)\nswitch costume to (costume6 v)\nshow\n\nwhen I receive [level 7 v]\ngo to x: (-125) y: (45)\nswitch costume to (costume7 v)\nshow\n\nwhen I receive [level 8 v]\ngo to x: (-125) y: (45)\nswitch costume to (costume8 v)\nshow\n\nwhen I receive [level 9 v]\ngo to x: (0) y: (-25)\nswitch costume to (costume9 v)\nshow\n\nwhen I receive [level 10 v]\ngo to x: (0) y: (50)\nswitch costume to (costume10 v)\nshow\n\nwhen I receive [level 11 v]\ngo to x: (-123) y: (99)\nswitch costume to (costume11 v)\nshow\n\nwhen I receive [level 12 v]\ngo to x: (-123) y: (99)\nswitch costume to (costume12 v)\nshow\n\nwhen I receive [level 13 v]\ngo to x: (-90) y: (12)\nswitch costume to (costume13 v)\nshow\n\nwhen I receive [level 14 v]\ngo to x: (-135) y: (99)\nswitch costume to (costume14 v)\nshow\n\nwhen I receive [level 15 v]\ngo to x: (0) y: (75)\nswitch costume to (costume15 v)\nshow\n\nwhen I receive [level 16 v]\ngo to x: (-127) y: (77)\nswitch costume to (costume16 v)\nshow\n\nwhen I receive [level 17 v]\ngo to x: (-89) y: (86)\nswitch costume to (costume17 v)\nshow\n\nwhen I receive [level 18 v]\ngo to x: (25) y: (138)\nswitch costume to (costume18 v)\nshow\n\nwhen I receive [level 19 v]\ngo to x: (-14) y: (-10)\nswitch costume to (costume19 v)\nshow\n\nwhen I receive [level 20 v]\ngo to x: (-123) y: (99)\nswitch costume to (costume20 v)\nshow\n\nwhen I receive [level 21 a v]\ngo to x: (107) y: (147)\nswitch costume to (costume21 v)\nshow\n\nwhen I receive [level 21 b v]\ngo to x: (107) y: (147)\nswitch costume to (costume21 b v)\nshow\n\nwhen I receive [level 21 c v]\ngo to x: (107) y: (147)\nswitch costume to (costume21 c v)\nshow\n\nwhen I receive [level 21 d v]\ngo to x: (107) y: (147)\nswitch costume to (costume21 d v)\nshow\n\nwhen I receive [level 22 v]\ngo to x: (18) y: (-85)\nswitch costume to (costume22 v)\nshow\n\nwhen I receive [level 23 v]\ngo to x: (18) y: (-85)\nswitch costume to (costume23 v)\nshow\n\nwhen I receive [level 24 v]\ngo to x: (-114) y: (-18)\nswitch costume to (costume24 v)\nshow\n\nwhen I receive [home menu v]\ngo to x: (0) y: (0)\nswitch costume to (menu costume v)\nshow\n\nwhen I receive [color selection v]\ngo to x: (0) y: (100)\nswitch costume to (color selection v)\nshow\n\nwhen I receive [level 25 v]\ngo to x: (-167) y: (129)\nswitch costume to (costume25 v)\nshow\n\nwhen I receive [level 26 v]\ngo to x: (-124) y: (141)\nswitch costume to (costume26 v)\nshow\n\nwhen I receive [level 27 v]\ngo to x: (-161) y: (140)\nswitch costume to (costume27 v)\nshow\n\nwhen I receive [level 28 v]\ngo to x: (0) y: (-108)\nswitch costume to (costume28 v)\nshow\n\nwhen I receive [level 29 v]\ngo to x: (-144) y: (33)\nswitch costume to (costume29 v)\nshow\n\nwhen I receive [level 30 v]\ngo to x: (-24) y: (-78)\nswitch costume to (costume30 v)\nshow\n\nwhen I receive [level 31 v]\ngo to x: (0) y: (16)\nswitch costume to (costume31 v)\nshow\n\nwhen I receive [level 32 v]\ngo to x: (-26) y: (-104)\nswitch costume to (costume32 v)\nshow\n\nwhen I receive [level 33 v]\ngo to x: (0) y: (-122)\nswitch costume to (costume33 v)\nshow\n\nwhen I receive [level 34 v]\ngo to x: (0) y: (40)\nswitch costume to (costume34 v)\nshow\n\nwhen I receive [level 35 a v]\ngo to x: (105) y: (116)\nswitch costume to (costume35 v)\nshow\n\nwhen I receive [level 35 c v]\ngo to x: (132) y: (165)\nswitch costume to (costume35 c v)\nshow\n\nwhen I receive [level 35 b v]\ngo to x: (0) y: (118)\nswitch costume to (costume35 b v)\nshow\n\nwhen I receive [level 35 d v]\ngo to x: (141) y: (-138)\nswitch costume to (costume35 d v)\nshow\n\nwhen I receive [level 35 e v]\ngo to x: (0) y: (0)\nswitch costume to (costume35 e v)\nshow\n\nwhen I receive [level 36 v]\ngo to x: (120) y: (-161)\nswitch costume to (costume36 v)\nshow\n\nwhen I receive [level 37 v]\ngo to x: (-141) y: (125)\nswitch costume to (costume37 v)\nshow\n\nwhen I receive [level 39 v]\ngo to x: (110) y: (-111)\nswitch costume to (costume39 v)\nshow\n\nwhen I receive [level 38 v]\ngo to x: (0) y: (-116)\nswitch costume to (costume38 v)\nshow\n\nwhen I receive [level 40 v]\ngo to x: (29) y: (-161)\nswitch costume to (costume40 v)\nshow\n\nwhen I receive [level 41 v]\ngo to x: (140) y: (-112)\nswitch costume to (costume41 v)\nshow\n\nwhen I receive [level 45 v]\ngo to x: (150) y: (0)\nswitch costume to (costume45 v)\nshow\n\nwhen I receive [level 42 v]\ngo to x: (157) y: (-103)\nswitch costume to (costume42 v)\nshow\n\nwhen I receive [level 43 v]\ngo to x: (165) y: (-133)\nswitch costume to (costume43 v)\nshow\n\nwhen I receive [level 44 v]\ngo to x: (-136) y: (167)\nswitch costume to (costume44 v)\nshow\n\nwhen I receive [level 46 v]\ngo to x: (141) y: (-118)\nswitch costume to (costume46 v)\nshow\n\nwhen I receive [level 48 v]\ngo to x: (7) y: (100)\nswitch costume to (costume48 v)\nshow\n\nwhen I receive [level 47 v]\ngo to x: (-152) y: (165)\nswitch costume to (costume47 v)\nshow\n\nwhen I receive [level 54 v]\nwait (0.1) seconds\nclear graphic effects\nset [ghost v] effect to (100)\nswitch costume to (costume53 v)\nset [override lvl. 53? v] to [0]\ngo to x: (0) y: (168)\nwait (2.9) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nshow\nclear graphic effects\n\nwhen I receive [level 57 v]\ngo to x: (11) y: (-11)\nswitch costume to (costume56 v)\nshow\n\nwhen I receive [level 49 v]\ngo to x: (150) y: (164)\nswitch costume to (costume49 v)\nshow\n\nwhen I receive [level 50 v]\nhide\n\nwhen I receive [level 51 v]\ngo to x: (155) y: (-136)\nswitch costume to (costume50 v)\nshow\n\nwhen I receive [level 52 v]\ngo to x: (0) y: (151)\nswitch costume to (costume51 v)\nshow\n\nwhen I receive [level 53 v]\ngo to x: (-125) y: (117)\nswitch costume to (costume52 v)\nshow\n\nwhen I receive [level 55 v]\ngo to x: (-72) y: (-129)\nswitch costume to (costume54 v)\nshow\n\nwhen I receive [level 56 v]\ngo to x: (59) y: (-44)\nswitch costume to (costume55 v)\nshow\n\nwhen I receive [level 58 v]\ngo to x: (162) y: (-34)\nswitch costume to (costume57 v)\nshow\n\nwhen I receive [level 59 v]\ngo to x: (-11) y: (108)\nswitch costume to (costume58 v)\nshow\n\nwhen I receive [level 60 v]\ngo to x: (-15) y: (139)\nswitch costume to (costume59 v)\nshow\n\nwhen I receive [level 61 v]\ngo to x: (114) y: (-55)\nswitch costume to (costume60 v)\nshow\n\nwhen I receive [level 62 v]\ngo to x: (-17) y: (-161)\nswitch costume to (costume61 v)\nshow\n\nwhen I receive [level 63 v]\ngo to x: (-17) y: (-161)\nswitch costume to (costume62 v)\nshow\n\nwhen I receive [level 64 v]\ngo to x: (112) y: (-137)\nswitch costume to (costume63 v)\nshow\n\nwhen I receive [level 65 v]\ngo to x: (50) y: (-154)\nswitch costume to (costume64 v)\nshow\n\nwhen I receive [level 66 v]\ngo to x: (80) y: (-166)\nswitch costume to (costume65 v)\nshow\n\nwhen I receive [level 67 v]\ngo to x: (0) y: (-111)\nswitch costume to (costume66 v)\nshow\n\nwhen I receive [level 68 v]\ngo to x: (0) y: (133)\nswitch costume to (costume67 v)\nshow\n\nwhen I receive [level 69  v]\ngo to x: (-68) y: (-118)\nswitch costume to (costume68 v)\nshow\n\nwhen I receive [level 70 pt. 1 v]\ngo to x: (0) y: (68)\nswitch costume to (costume69 v)\nshow\n\nwhen I receive [blast off pt. 2 v]\ngo to x: (112) y: (-137)\nrepeat (6)\n    switch costume to (costume70 v)\n    show\nend\n\nwhen I receive [prepare for landing pt. 2 v]\nhide\n\nwhen I receive [stop all v]\nwait (0.5) seconds\ngo to x: (0) y: (-6)\nshow\nswitch costume to (costume71 v)\nrepeat (3)\n    wait (1.5) seconds\n    next costume\nend\n\n@Switchig Block\n\nwhen flag clicked\nset [level 16 v] to [0]\nset [level 17 v] to [0]\nset [level 18 v] to [0]\nset [level 19 v] to [0]\nset [level 20 v] to [0]\nset [level 33 v] to [0]\nset [level 34 v] to [0]\nset [level 44 v] to [0]\nset [level 58 v] to [0]\ngo to [front v] layer\nhide\nforever\n    repeat until <(Level 16) = [0]>\n        if <(Level 16) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume1 v)\n        if <(Level 16) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 16) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 16) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume2 v)\n        if <(Level 16) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 16) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    repeat until <(Level 17) = [0]>\n        if <(Level 17) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume3 v)\n        if <(Level 17) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 17) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 17) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume4 v)\n        if <(Level 17) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 17) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    repeat until <(Level 18) = [0]>\n        if <(Level 18) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume5 v)\n        if <(Level 18) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 18) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 18) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume6 v)\n        if <(Level 18) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 18) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    repeat until <(Level 19) = [0]>\n        if <(Level 19) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume7 v)\n        if <(Level 19) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n        if <(Level 19) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n        if <(Level 19) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume8 v)\n        if <(Level 19) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n        if <(Level 19) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    repeat until <(Level 20) = [0]>\n        if <(Level 20) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume9 v)\n        if <(Level 20) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n        if <(Level 20) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n        if <(Level 20) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume10 v)\n        if <(Level 20) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n        if <(Level 20) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n    end\nend\n\nwhen I receive [level 1 v]\nhide\n\nwhen flag clicked\nforever\n    repeat until <(Level 33) = [0]>\n        if <(Level 33) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume11 v)\n        if <(Level 33) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n        if <(Level 33) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n        if <(Level 33) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume12 v)\n        if <(Level 33) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n        if <(Level 33) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n    end\nend\n\nwhen I receive [level 33 v]\nset [level 33 v] to [1]\ngo to x: (0) y: (-46)\nshow\n\nwhen I receive [level 34 v]\nset [level 33 v] to [0]\nset [level 34 v] to [1]\ngo to x: (0) y: (-74)\nshow\n\nwhen flag clicked\nforever\n    repeat until <(Level 34) = [0]>\n        if <(Level 34) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume13 v)\n        if <(Level 34) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 34) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 34) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume14 v)\n        if <(Level 34) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 34) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n    end\nend\n\nwhen I receive [level 35 a v]\nset [level 34 v] to [0]\nhide\n\nwhen flag clicked\nforever\n    repeat until <(Level 44) = [0]>\n        if <(Level 44) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume15 v)\n        if <(Level 44) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 44) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 44) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume16 v)\n        if <(Level 44) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 44) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n    end\nend\n\nwhen I receive [level 44 v]\nset [level 44 v] to [1]\ngo to x: (100) y: (0)\nshow\n\nwhen I receive [level 45 v]\nset [level 44 v] to [0]\nhide\n\nwhen flag clicked\nforever\n    repeat until <(Level 58) = [0]>\n        if <(Level 58) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume17 v)\n        if <(Level 58) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n        if <(Level 58) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n        if <(Level 58) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume18 v)\n        if <(Level 58) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n        if <(Level 58) = [0]> then\n            stop [this script v]\n        end\n        wait (0.25) seconds\n    end\nend\n\nwhen I receive [level 16 v]\nset [level 16 v] to [1]\ngo to x: (23) y: (-87)\nshow\n\nwhen I receive [level 17 v]\nset [level 16 v] to [0]\nset [level 17 v] to [1]\ngo to x: (3) y: (-11)\nshow\n\nwhen I receive [level 18 v]\nset [level 17 v] to [0]\nset [level 18 v] to [1]\ngo to x: (23) y: (-151)\nshow\n\nwhen I receive [level 19 v]\nset [level 18 v] to [0]\nset [level 19 v] to [1]\ngo to x: (13) y: (-34)\nshow\n\nwhen I receive [level 20 v]\nset [level 19 v] to [0]\nset [level 20 v] to [1]\ngo to x: (121) y: (109)\nshow\n\nwhen I receive [level 21 a v]\nset [level 20 v] to [0]\nhide\n\nwhen I receive [level 58 v]\nset [level 58 v] to [1]\ngo to x: (121) y: (109)\nshow\n\nwhen I receive [level 59 v]\nset [level 58 v] to [0]\nhide\n\n@Fake Yellow Dot\n\nwhen flag clicked\ngo to [front v] layer\nset [next v] to [0]\ngo to x: (-195) y: (121)\nhide\n\nwhen I receive [level 35 a v]\ngo to x: (10) y: (10)\nset [next v] to [0]\nhide\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [level 21 a v]\nshow\nforever\n    if <<touching (player v)?> and <(Next) = [0]>> then\n        broadcast (Next Level FYD v)\n        hide\n        go to x: (-223) y: (-6)\n        show\n        set [next v] to [1]\n    end\n    if <<touching (player v)?> and <(Next) = [1]>> then\n        broadcast (Next Level FYD v)\n        hide\n        go to x: (217) y: (73)\n        show\n        set [next v] to [2]\n    end\n    if <<touching (player v)?> and <(Next) = [2]>> then\n        broadcast (Next Level FYD v)\n        hide\n        go to x: (-175) y: (-130)\n        show\n        set [next v] to [3]\n    end\n    if <<touching (player v)?> and <(Next) = [3]>> then\n        broadcast (Next Level FYD v)\n        hide\n        go to x: (-195) y: (121)\n        show\n        set [next v] to [4]\n    end\n    if <<touching (player v)?> and <(Next) = [4]>> then\n        broadcast (Next Level FYD v)\n    end\nend\n\nwhen I receive [level 22 v]\ngo to x: (-223) y: (105)\nset [next v] to [0]\nhide\n\n@Fake Yellow Dot 2\n\nwhen flag clicked\ngo to [front v] layer\nset [next v] to [0]\ngo to x: (-195) y: (121)\nhide\n\nwhen I receive [level 34 v]\ngo to x: (-223) y: (105)\nset [next v] to [0]\nhide\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [level 36 v]\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [level 35 a v]\nshow\nforever\n    if <<touching (player v)?> and <(Next) = [0]>> then\n        broadcast (Next Level FYD v)\n        hide\n        go to x: (-223) y: (105)\n        show\n        set [next v] to [1]\n    end\n    if <<touching (player v)?> and <(Next) = [1]>> then\n        broadcast (Next Level FYD v)\n        hide\n        go to x: (-225) y: (-22)\n        show\n        set [next v] to [2]\n    end\n    if <<touching (player v)?> and <(Next) = [2]>> then\n        broadcast (Next Level FYD v)\n        hide\n        go to x: (222) y: (-161)\n        show\n        set [next v] to [3]\n    end\n    if <<touching (player v)?> and <(Next) = [3]>> then\n        broadcast (Next Level FYD v)\n        hide\n        go to x: (217) y: (75)\n        show\n        set [next v] to [4]\n    end\n    if <<touching (player v)?> and <(Next) = [4]>> then\n        broadcast (Next Level FYD v)\n        hide\n        go to x: (-120) y: (-143)\n        show\n        set [next v] to [5]\n    end\n    if <<touching (player v)?> and <(Next) = [5]>> then\n        broadcast (Next Level FYD v)\n    end\nend\n\nset [next v] to [0]\n\nwhen I receive [level 35 \(2\) v]\nhide\n\n@Moving Yellow Dot\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (200) y: (120)\nhide\n\nwhen I receive [level 40 v]\nset [level 41 v] to [1]\nforever\n    if <(Level 41) = [1]> then\n        glide (0.5) secs to x: (0) y: (120)\n        if <(Level 41) = [0]> then\n            stop [this script v]\n        end\n        glide (0.5) secs to x: (-200) y: (120)\n        if <(Level 41) = [0]> then\n            stop [this script v]\n        end\n        glide (0.5) secs to x: (0) y: (120)\n        if <(Level 41) = [0]> then\n            stop [this script v]\n        end\n        glide (0.5) secs to x: (200) y: (120)\n        if <(Level 41) = [0]> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [level 41 v]\nwait until <(Level 41) = [0]>\nset [level 42 v] to [1]\nforever\n    if <(Level 42) = [1]> then\n        glide (0.25) secs to x: (0) y: (120)\n        if <(Level 42) = [0]> then\n            stop [this script v]\n        end\n        glide (0.25) secs to x: (-200) y: (120)\n        if <(Level 42) = [0]> then\n            stop [this script v]\n        end\n        glide (0.25) secs to x: (0) y: (120)\n        if <(Level 42) = [0]> then\n            stop [this script v]\n        end\n        glide (0.25) secs to x: (200) y: (120)\n        if <(Level 42) = [0]> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [level 42 v]\nwait until <(Level 42) = [0]>\ngo to x: (-122) y: (-138)\nset [level 43 v] to [1]\nforever\n    if <(Level 43) = [1]> then\n        glide (0.5) secs to x: (210) y: (-60)\n        if <(Level 43) = [0]> then\n            stop [this script v]\n        end\n        glide (0.5) secs to x: (30) y: (20)\n        if <(Level 43) = [0]> then\n            stop [this script v]\n        end\n        glide (0.5) secs to x: (190) y: (70)\n        if <(Level 43) = [0]> then\n            stop [this script v]\n        end\n        glide (0.5) secs to x: (45) y: (-125)\n        if <(Level 43) = [0]> then\n            stop [this script v]\n        end\n        glide (0.5) secs to x: (-120) y: (35)\n        if <(Level 43) = [0]> then\n            stop [this script v]\n        end\n        glide (0.5) secs to x: (-122) y: (-138)\n        if <(Level 43) = [0]> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (Next Level v)\n        if <(Level 41) = [1]> then\n            set [level 41 v] to [0]\n        end\n        if <(Level 42) = [1]> then\n            set [level 42 v] to [0]\n        end\n        if <(Level 43) = [1]> then\n            set [level 43 v] to [0]\n        end\n        if <(Level 44) = [1]> then\n            set [level 44 v] to [0]\n        end\n    end\nend\n\nwhen I receive [level 43 v]\nwait until <(Level 43) = [0]>\ngo to x: (170) y: (145)\nset [level 44 v] to [1]\nforever\n    if <(Level 44) = [1]> then\n        glide (0.5) secs to x: (170) y: (0)\n        if <(Level 44) = [0]> then\n            stop [this script v]\n        end\n        glide (0.5) secs to x: (170) y: (50)\n        if <(Level 44) = [0]> then\n            stop [this script v]\n        end\n        glide (0.5) secs to x: (170) y: (-100)\n        if <(Level 44) = [0]> then\n            stop [this script v]\n        end\n        glide (0.5) secs to x: (170) y: (-125)\n        if <(Level 44) = [0]> then\n            stop [this script v]\n        end\n        glide (0.5) secs to x: (170) y: (145)\n        if <(Level 44) = [0]> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [level 41 v]\nshow\n\nwhen I receive [level 45 v]\nhide\n\nforever\nend\n\n@Moving Block\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (costume1 v)\nset size to (100) %\nset [level 45 v] to [0]\nset [level 46 v] to [0]\nset [level 72&73 v] to [0]\ngo to [front v] layer\ngo to x: (-85) y: (135)\nhide\n\nwhen I receive [level 44 v]\nforever\n    if <(Level 45) = [1]> then\n        glide (1) secs to x: (-85) y: (-85)\n        if <(Level 45) = [0]> then\n            stop [this script v]\n        end\n        glide (1) secs to x: (-85) y: (135)\n        if <(Level 45) = [0]> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [level 45 v]\nforever\n    if <(Level 46) = [1]> then\n        glide (1.5) secs to x: (-85) y: (-85)\n        if <(Level 46) = [0]> then\n            stop [this script v]\n        end\n        glide (1.5) secs to x: (-85) y: (135)\n        if <(Level 46) = [0]> then\n            stop [this script v]\n        end\n        glide (3) secs to x: (200) y: (135)\n        if <(Level 46) = [0]> then\n            stop [this script v]\n        end\n        glide (1.5) secs to x: (-85) y: (135)\n        if <(Level 46) = [0]> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [level 48 v]\nforever\n    if <(Level 49) = [1]> then\n        turn left (7) degrees\n        if <(Level 49) = [0]> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [level 47 v]\nset [level 46 v] to [0]\nhide\nglide (1) secs to x: (0) y: (0)\nswitch costume to (costume2 v)\n\nwhen I receive [level 49 v]\nset [level 49 v] to [1]\nshow\n\nwhen I receive [level 50 v]\nset [level 49 v] to [0]\nhide\n\nwhen I receive [level 72 v]\nset [level 72&73 v] to [1]\ngo to x: (-100) y: (-100)\npoint in direction (90)\nshow\nforever\n    if <(Level 72&73) = [1]> then\n        if <(costume [number v]) = [33]> then\n            switch costume to (delete-1 v)\n        end\n        next costume\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 71 v]\nswitch costume to (delete-1 v)\n\nwhen I receive [level 46 v]\nset [level 45 v] to [0]\nset [level 46 v] to [1]\nshow\n\nwhen I receive [level 73 v]\ngo to x: (-72) y: (-89)\nset size to (75) %\nshow\n\nwhen I receive [level 74 v]\nset [level 72&73 v] to [0]\nhide\n\nwhen I receive [level 45 v]\nset [level 45 v] to [1]\nshow\n\n@Moving Block 2\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (costume1 v)\nset [level 47 v] to [0]\nset [level 51 v] to [0]\nset [level 52 v] to [0]\nset [level 65 v] to [0]\ngo to [front v] layer\ngo to x: (-220) y: (25)\nhide\n\nwhen I receive [level 46 v]\nforever\n    if <(Level 47) = [1]> then\n        glide (1) secs to x: (220) y: (25)\n        if <(Level 47) = [0]> then\n            glide (1) secs to x: (-50) y: (-80)\n            stop [this script v]\n        end\n        glide (1) secs to x: (-220) y: (25)\n        if <(Level 47) = [0]> then\n            glide (1) secs to x: (-50) y: (-80)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [level 50 v]\nforever\n    if <(Level 51) = [1]> then\n        turn right (5) degrees\n        if <(Level 51) = [0]> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [level 51 v]\nforever\n    if <(Level 52) = [1]> then\n        turn left (10) degrees\n        if <(Level 52) = [0]> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [level 64 v]\npoint in direction (90)\nforever\n    if <(Level 65) = [1]> then\n        glide (1) secs to x: (220) y: (-20)\n        if <(Level 65) = [0]> then\n            stop [this script v]\n        end\n        glide (1) secs to x: (-80) y: (-20)\n        if <(Level 65) = [0]> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [level 47 v]\nset [level 47 v] to [1]\nshow\n\nwhen I receive [level 48 v]\nset [level 47 v] to [0]\nhide\nswitch costume to (costume2 v)\nglide (1) secs to x: (0) y: (75)\n\nwhen I receive [level 51 v]\nset [level 51 v] to [1]\nshow\n\nwhen I receive [level 52 v]\nset [level 52 v] to [1]\ngo to x: (0) y: (-35)\nswitch costume to (costume3 v)\nshow\n\nwhen I receive [level 53 v]\nhide\nswitch costume to (costume4 v)\nglide (1) secs to x: (-80) y: (-20)\nset [level 52 v] to [0]\n\nwhen I receive [level 65 v]\nset [level 65 v] to [1]\nshow\n\nwhen I receive [level 66 v]\nhide\n\n@Moving Block 3\n\nwhen flag clicked\nset [level 48 v] to [0]\nset [level 63 v] to [0]\nset [level72&73 v] to [0]\ngo to x: (0) y: (140)\npoint in direction (90)\ngo to [front v] layer\nset size to (100) %\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [level 47 v]\nforever\n    if <(Level 48) = [1]> then\n        glide (0.4) secs to x: (0) y: (-140)\n        if <(Level 48) = [0]> then\n            stop [this script v]\n        end\n        glide (0.4) secs to x: (0) y: (140)\n        if <(Level 48) = [0]> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    repeat until <(Level 63) = [0]>\n        if <(Level 63) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume2 v)\n        if <(Level 63) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 63) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 63) = [0]> then\n            stop [this script v]\n        end\n        switch costume to (costume3 v)\n        if <(Level 63) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n        if <(Level 63) = [0]> then\n            stop [this script v]\n        end\n        wait (0.5) seconds\n    end\nend\n\nwhen I receive [level 62 v]\nforever\n    if <(Level 63) = [1]> then\n        turn right (7) degrees\n        if <(Level 63) = [0]> then\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [level 72 v]\nset [level72&73 v] to [1]\ngo to x: (100) y: (-100)\npoint in direction (90)\nshow\nforever\n    if <(Level72&73) = [1]> then\n        if <(costume [number v]) = [34]> then\n            switch costume to (delete-1 v)\n        end\n        next costume\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 48 v]\nset [level 48 v] to [1]\nshow\n\nwhen I receive [level 71 v]\nswitch costume to (delete-1 v)\n\nwhen I receive [level 64 v]\nset [level 63 v] to [0]\nhide\n\nwhen I receive [level 63 v]\nset [level 63 v] to [1]\nshow\n\nwhen I receive [level 53 v]\nglide (1) secs to x: (0) y: (0)\nswitch costume to (costume3 v)\n\nwhen I receive [level 49 v]\nset [level 48 v] to [0]\nhide\n\nwhen I receive [level 73 v]\ngo to x: (72) y: (-89)\nset size to (75) %\nshow\n\nwhen I receive [level 74 v]\nset [level72&73 v] to [0]\nhide\n\n@Color Selection Button\n\nwhen I receive [level 24 v]\nhide\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [color selection v]\ngo to x: (240) y: (-126)\nshow\nwait (2) seconds\nset [menu v] to [1]\nforever\n    if <<touching (player v)?> and <(Menu) = [1]>> then\n        broadcast (Home v)\n        broadcast (Home Menu v)\n    end\nend\n\nwhen I receive [home menu v]\ngo [backward v] (99) layers\ngo to x: (240) y: (-137)\nshow\nset [menu v] to [0]\nforever\n    if <<touching (player v)?> and <(Menu) = [0]>> then\n        broadcast (Color Selection v)\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\n@Black\n\nwhen flag clicked\nset [color selection v] to [0]\ngo to x: (-200) y: (-150)\nhide\n\nwhen I receive [home v]\nset [color selection v] to [0]\ngo to x: (-200) y: (-150)\nhide\n\nwhen I receive [color selection v]\nset [color selection v] to [1]\nshow\nforever\n    if <(Color Selection) = [1]> then\n        change y by (y vel \(Black\))\n        if <(y position) < [-125]> then\n            change [y vel \(black\) v] by (1)\n        end\n        set [y vel \(black\) v] to ((y vel \(Black\)) * (0.9))\n        if <touching (player v)?> then\n            broadcast (Black v)\n        end\n    end\nend\n\n@Red\n\nwhen flag clicked\nset [color selection v] to [0]\ngo to x: (-150) y: (-150)\nhide\n\nwhen I receive [color selection v]\nset [color selection v] to [1]\nshow\nforever\n    if <(Color Selection) = [1]> then\n        change y by (y vel \(Colors\))\n        if <(y position) < [-125]> then\n            change [y vel \(colors\) v] by (1)\n        end\n        set [y vel \(colors\) v] to ((y vel \(Colors\)) * (0.9))\n        if <touching (player v)?> then\n            broadcast (Red v)\n        end\n    end\nend\n\nwhen I receive [home v]\nset [color selection v] to [0]\ngo to x: (-150) y: (-150)\nhide\n\n@Orange\n\nwhen flag clicked\nset [color selection v] to [0]\ngo to x: (-100) y: (-150)\nhide\n\nwhen I receive [color selection v]\nset [color selection v] to [1]\nshow\nforever\n    if <(Color Selection) = [1]> then\n        change y by (y vel \(Colors\))\n        if <(y position) < [-125]> then\n            change [y vel \(colors\) v] by (1)\n        end\n        set [y vel \(colors\) v] to ((y vel \(Colors\)) * (0.9))\n        if <touching (player v)?> then\n            broadcast (Orange v)\n        end\n    end\nend\n\nwhen I receive [home v]\nset [color selection v] to [0]\ngo to x: (-100) y: (-150)\nhide\n\n@Yellow\n\nwhen flag clicked\nset [color selection v] to [0]\ngo to x: (-50) y: (-150)\nhide\n\nwhen I receive [color selection v]\nset [color selection v] to [1]\nshow\nforever\n    if <(Color Selection) = [1]> then\n        change y by (y vel \(Colors\))\n        if <(y position) < [-125]> then\n            change [y vel \(colors\) v] by (1)\n        end\n        set [y vel \(colors\) v] to ((y vel \(Colors\)) * (0.9))\n        if <touching (player v)?> then\n            broadcast (Yellow v)\n        end\n    end\nend\n\nwhen I receive [home v]\nset [color selection v] to [0]\ngo to x: (-50) y: (-150)\nhide\n\n@Green\n\nwhen flag clicked\nset [color selection v] to [0]\ngo to x: (0) y: (-150)\nhide\n\nwhen I receive [home v]\nset [color selection v] to [0]\ngo to x: (0) y: (-150)\nhide\n\nwhen I receive [color selection v]\nset [color selection v] to [1]\nshow\nforever\n    if <(Color Selection) = [1]> then\n        change y by (y vel \(Colors\))\n        if <(y position) < [-125]> then\n            change [y vel \(colors\) v] by (1)\n        end\n        set [y vel \(colors\) v] to ((y vel \(Colors\)) * (0.9))\n        if <touching (player v)?> then\n            broadcast (Green v)\n        end\n    end\nend\n\n@Dark Green\n\nwhen flag clicked\nset [color selection v] to [0]\ngo to x: (50) y: (-150)\nhide\n\nwhen I receive [color selection v]\nset [color selection v] to [1]\nshow\nforever\n    if <(Color Selection) = [1]> then\n        change y by (y vel \(Colors\))\n        if <(y position) < [-125]> then\n            change [y vel \(colors\) v] by (1)\n        end\n        set [y vel \(colors\) v] to ((y vel \(Colors\)) * (0.9))\n        if <touching (player v)?> then\n            broadcast (Dark Green v)\n        end\n    end\nend\n\nwhen I receive [home v]\nset [color selection v] to [0]\ngo to x: (50) y: (-150)\nhide\n\n@Light Blue\n\nwhen flag clicked\nset [color selection v] to [0]\ngo to x: (100) y: (-150)\nhide\n\nwhen I receive [color selection v]\nset [color selection v] to [1]\nshow\nforever\n    if <(Color Selection) = [1]> then\n        change y by (y vel \(Colors\))\n        if <(y position) < [-125]> then\n            change [y vel \(colors\) v] by (1)\n        end\n        set [y vel \(colors\) v] to ((y vel \(Colors\)) * (0.9))\n        if <touching (player v)?> then\n            broadcast (Light Blue v)\n        end\n    end\nend\n\nwhen I receive [home v]\nset [color selection v] to [0]\ngo to x: (100) y: (-150)\nhide\n\n@Blue\n\nwhen flag clicked\nset [color selection v] to [0]\ngo to x: (150) y: (-150)\nhide\n\nwhen I receive [color selection v]\nset [color selection v] to [1]\nshow\nforever\n    if <(Color Selection) = [1]> then\n        change y by (y vel \(Colors\))\n        if <(y position) < [-125]> then\n            change [y vel \(colors\) v] by (1)\n        end\n        set [y vel \(colors\) v] to ((y vel \(Colors\)) * (0.9))\n    end\nend\n\nwhen I receive [home v]\nset [color selection v] to [0]\ngo to x: (150) y: (-150)\nhide\n\nwhen I receive [color selection v]\nwait (2) seconds\nforever\n    if <(Color Selection) = [1]> then\n        if <touching (player v)?> then\n            broadcast (Blue v)\n        end\n    end\nend\n\n@Pink\n\nwhen flag clicked\nset [color selection v] to [0]\ngo to x: (200) y: (-150)\nhide\n\nwhen I receive [home v]\nset [color selection v] to [0]\ngo to x: (200) y: (-150)\nhide\n\nwhen I receive [color selection v]\nset [color selection v] to [1]\nshow\nforever\n    if <(Color Selection) = [1]> then\n        change y by (y vel \(Colors\))\n        if <(y position) < [-125]> then\n            change [y vel \(colors\) v] by (1)\n        end\n        set [y vel \(colors\) v] to ((y vel \(Colors\)) * (0.9))\n        if <touching (player v)?> then\n            broadcast (Pink v)\n        end\n    end\nend\n\n@Purple\n\nwhen flag clicked\nset [color selection v] to [0]\ngo to x: (75) y: (-150)\nhide\n\nwhen I receive [color selection v]\n\nwhen I receive [home v]\nset [color selection v] to [0]\ngo to x: (75) y: (-150)\nhide\n\nset [color selection v] to [1]\nshow\nforever\n    if <(Color Selection) = [1]> then\n        change y by (y vel \(Colors\))\n        if <(y position) < [-125]> then\n            change [y vel \(colors\) v] by (1)\n        end\n        set [y vel \(colors\) v] to ((y vel \(Colors\)) * (0.9))\n        if <touching (player v)?> then\n            broadcast (Purple v)\n        end\n    end\nend\n\n@Intro Sprite\n\nwhen flag clicked\nset [intro \(y vel\) v] to [1]\ngo to x: (0) y: (-180)\nforever\n    change y by (Intro \(y vel\))\n    if <(y position) < [-75]> then\n        change [intro \(y vel\) v] by (1)\n    end\n    set [intro \(y vel\) v] to ((Intro \(y vel\)) * (0.9))\nend\n\nwhen flag clicked\nshow\nwait (3) seconds\nhide\n\n@Intro Sprite 2\n\nwhen flag clicked\nhide\ngo to x: (0) y: (180)\nset [intro gravity v] to [-0.3]\nset [intro y vel v] to [0]\nset [intro bounce count v] to [0]\nwait (3) seconds\nshow\nforever\n    if <(y position) < [0]> then\n        if <(Intro Bounce Count) > [3]> then\n            set [intro y vel v] to [0]\n        else\n            set [intro y vel v] to ((Intro Y Vel) * (-1))\n            set y to ((y position) + (Intro Y Vel))\n            set [intro y vel v] to ((Intro Y Vel) / (2))\n            change [intro bounce count v] by (1)\n        end\n    else\n        set [intro y vel v] to ((Intro Y Vel) + (Intro Gravity))\n        set y to ((y position) + (Intro Y Vel))\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nwait (7) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Rocket Ship To Moon\n\nwhen flag clicked\nswitch costume to (before/after take off v)\nset [rocket to moon: y-vel v] to [.5]\nhide\n\nwhen I receive [blast off v]\nwait (1.5) seconds\nforever\n    change y by (Rocket To Moon: Y-Vel)\nend\n\nwhen I receive [orange v]\nset [which color v] to [2]\n\nwhen I receive [yellow v]\nset [which color v] to [3]\n\nwhen I receive [red v]\nset [which color v] to [1]\n\nwhen I receive [green v]\nset [which color v] to [4]\n\nwhen I receive [dark green v]\nset [which color v] to [5]\n\nwhen I receive [blast off v]\nif <(Which Color) = [1]> then\n    switch costume to (costume1 v)\nend\nif <(Which Color) = [2]> then\n    switch costume to (costume2 v)\nend\nif <(Which Color) = [3]> then\n    switch costume to (costume3 v)\nend\nif <(Which Color) = [4]> then\n    switch costume to (costume4 v)\nend\nif <(Which Color) = [5]> then\n    switch costume to (costume5 v)\nend\nif <(Which Color) = [6]> then\n    switch costume to (costume6 v)\nend\nif <(Which Color) = [7]> then\n    switch costume to (costume7 v)\nend\nif <(Which Color) = [8]> then\n    switch costume to (costume8 v)\nend\nif <(Which Color) = [9]> then\n    switch costume to (costume9 v)\nend\nwait (7) seconds\nswitch costume to (before/after take off v)\n\nwhen I receive [blast off v]\nwait (3) seconds\nset [rocket to moon: y-vel v] to [1]\nrepeat (5)\n    change [rocket to moon: y-vel v] by ((Rocket To Moon: Y-Vel) * (1.01))\n    wait (0.1) seconds\nend\nhide\nbroadcast (Stop Smoke v)\nbroadcast (Prepare for Landing v)\ngo to x: (-175) y: (180)\nstop [this script v]\n\nwhen I receive [blast off v]\nwait (4) seconds\nset [rocket to moon: y-vel v] to [0]\nshow\nrepeat (100)\n    change y by (Rocket To Moon: Y-Vel)\n    if <(y position) > [75]> then\n        change [rocket to moon: y-vel v] by (-1)\n    end\n    set [rocket to moon: y-vel v] to ((Rocket To Moon: Y-Vel) * (0.9))\nend\nstop [this script v]\n\nwhen I receive [level 53 v]\ngo to x: (157) y: (-69)\nshow\n\nwhen I receive [level 55 v]\nhide\nforever\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [purple v]\nset [which color v] to [9]\n\nwhen I receive [pink v]\nset [which color v] to [8]\n\nwhen I receive [blue v]\nset [which color v] to [7]\n\nwhen I receive [light blue v]\nset [which color v] to [6]\n\n@Rocket Ship To Earth\n\nwhen flag clicked\nswitch costume to (before/after take off v)\npoint in direction (90)\nset [rocket to earth: y-vel v] to [.5]\nhide\n\nwhen I receive [level 70 pt. 1 v]\ngo to x: (157) y: (-69)\nshow\n\nwhen I receive [blast off pt. 2 v]\nif <(Which Color) = [1]> then\n    switch costume to (costume1 v)\nend\nif <(Which Color) = [2]> then\n    switch costume to (costume2 v)\nend\nif <(Which Color) = [3]> then\n    switch costume to (costume3 v)\nend\nif <(Which Color) = [4]> then\n    switch costume to (costume4 v)\nend\nif <(Which Color) = [5]> then\n    switch costume to (costume5 v)\nend\nif <(Which Color) = [6]> then\n    switch costume to (costume6 v)\nend\nif <(Which Color) = [7]> then\n    switch costume to (costume7 v)\nend\nif <(Which Color) = [8]> then\n    switch costume to (costume8 v)\nend\nif <(Which Color) = [9]> then\n    switch costume to (costume9 v)\nend\n\nwhen I receive [purple v]\nset [which color v] to [9]\n\nwhen I receive [pink v]\nset [which color v] to [8]\n\nwhen I receive [blue v]\nset [which color v] to [7]\n\nwhen I receive [light blue v]\nset [which color v] to [6]\n\nwhen I receive [dark green v]\nset [which color v] to [5]\n\nwhen I receive [green v]\nset [which color v] to [4]\n\nwhen I receive [yellow v]\nset [which color v] to [3]\n\nwhen I receive [orange v]\nset [which color v] to [2]\n\nwhen I receive [red v]\nset [which color v] to [1]\n\nwhen I receive [blast off pt. 2 v]\nwait (1.5) seconds\nrepeat (100)\n    change y by (Rocket To Earth: Y-Vel)\nend\nset [rocket to earth: y-vel v] to [-.5]\nrepeat (18)\n    turn left (10) degrees\nend\nset [rocket to earth: y-vel v] to [-1]\nforever\n    if <(y position) > [-240]> then\n        set [rocket to earth: y-vel v] to ((Rocket To Earth: Y-Vel) * (1.2))\n        change y by (Rocket To Earth: Y-Vel)\n    else\n        hide\n        go to x: (-175) y: (180)\n        broadcast (Prepare for Landing Pt. 2 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [prepare for landing pt. 2 v]\nset [rocket to earth: y-vel v] to [-20]\nshow\nforever\n    if <(y position) > [-120]> then\n        set [rocket to earth: y-vel v] to ((Rocket To Earth: Y-Vel) * (1.2))\n        change y by (Rocket To Earth: Y-Vel)\n    else\n        hide\n        broadcast (Rocket Explosion v)\n        go to x: (-175) y: (180)\n        stop [this script v]\n    end\nend\n\nwhen I receive [rocket retry v]\nset [rocket to earth: y-vel v] to [0]\nshow\nforever\n    if <not <touching (ground v)?>> then\n        change y by (Rocket To Earth: Y-Vel)\n        if <(y position) > [75]> then\n            change [rocket to earth: y-vel v] by (-1)\n        else\n            if <not <(direction) = [90]>> then\n                turn right (10) degrees\n            else\n                set [rocket to earth: y-vel v] to [-1]\n                broadcast (Final Smoke/Show Player v)\n            end\n        end\n        set [rocket to earth: y-vel v] to ((Rocket To Earth: Y-Vel) * (0.9))\n    else\n        set [rocket to earth: y-vel v] to [0]\n        switch costume to (before/after take off v)\n    end\nend\n\nwhen I receive [level 71 v]\nhide\nforever\n    stop [other scripts in sprite v]\nend\n\n@Rocket Smoke to Moon\n\nwhen flag clicked\nset [stop smoke? v] to [1]\ngo to x: (300) y: (300)\nclear graphic effects\nhide\n\nwhen I receive [blast off v]\nset [stop smoke? v] to [0]\nforever\n    if <(Stop Smoke?) = [0]> then\n        create clone of (_myself_ v)\n        wait (0.01) seconds\n    end\nend\n\nwhen I start as a clone\nshow\nif <(Stop Smoke?) = [1]> then\n    delete this clone\nend\ngo to x: (([x position v] of [rocket ship to moon v]) + (pick random (-10) to (10))) y: (([y position v] of [rocket ship to moon v]) - (70))\npoint in direction (pick random (-90) to (-270))\nchange [ghost v] effect by (pick random (10) to (75))\nset size to (pick random (40) to (100)) %\nswitch costume to (pick random (1) to (3))\nif <(Stop Smoke?) = [1]> then\n    delete this clone\nend\nrepeat (10)\n    move (4) steps\n    change [ghost v] effect by (3)\n    if <(Stop Smoke?) = [1]> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [prepare for landing v]\nwait (3) seconds\nset [stop smoke? v] to [1]\n\n@Rocket Smoke to Earth\n\nwhen flag clicked\nset [stop smoke? v] to [1]\ngo to x: (300) y: (300)\nclear graphic effects\nhide\n\nwhen I start as a clone\nshow\nif <(Stop Smoke?) = [1]> then\n    delete this clone\nend\ngo to x: (([x position v] of [rocket ship to earth v]) + (pick random (-10) to (10))) y: (([y position v] of [rocket ship to earth v]) - (70))\npoint in direction (pick random (-90) to (-270))\nchange [ghost v] effect by (pick random (10) to (75))\nset size to (pick random (40) to (100)) %\nswitch costume to (pick random (1) to (3))\nif <(Stop Smoke?) = [1]> then\n    delete this clone\nend\nrepeat (10)\n    move (4) steps\n    change [ghost v] effect by (3)\n    if <(Stop Smoke?) = [1]> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [blast off pt. 2 v]\nset [stop smoke? v] to [0]\nwait (4) seconds\nset [stop smoke? v] to [1]\n\nwhen I receive [final smoke/show player v]\nset [stop smoke? v] to [0]\nwait (0.01) seconds\nset [stop smoke? v] to [1]\n\nwhen I receive [blast off pt. 2 v]\nforever\n    if <(Stop Smoke?) = [0]> then\n        create clone of (_myself_ v)\n        wait (0.01) seconds\n    end\nend\n\n@Fade In & Out\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [final level start screen v]\nswitch costume to (delete v)\nclear graphic effects\nshow\nwait (2.2) seconds\nhide\n\nwhen I receive [fade in & out v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [fade in & out pt. 2 v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Rocket Holder\n\nwhen flag clicked\ngo to x: (161) y: (-163)\nhide\n\nwhen I receive [level 70 pt. 1 v]\nshow\n\nwhen I receive [blast off pt. 2 v]\nwait (2) seconds\nrepeat (100)\n    move (-2.5) steps\nend\nforever\n    hide\nend\n\n@BOOM\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nset size to (180) %\nswitch costume to (3g1 v)\ngo to [front v] layer\n\nwhen I receive [rocket explosion v]\nshow\nstop all sounds\nset volume to (75) %\nstart sound [Boomb boomb bomb v]\nrepeat (32)\n    next costume\n    wait (0.01) seconds\nend\nstop all sounds\nset volume to (100) %\nset size to (100) %\nstart sound [censor-beep-6.mp3 v]\nrepeat (2)\n    switch costume to (error screen v)\nend\nwait (1.54) seconds\nbroadcast (Rocket Retry v)\nhide\n\n@Mario Mushroom\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    if <touching (player v)?> then\n        broadcast (Got the Mushroom v)\n        hide\n        start sound [\[Super Mario Bros\] PowerUp Sound Effect \[Free Ringtone Download\].mp3 v]\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [prepare for landing pt. 2 v]\nset [mushroom x-vel v] to [5]\ngo [backward v] (10) layers\nshow\ngo to x: (55) y: (-145)\nwait (4) seconds\nforever\n    change x by (Mushroom x-vel)\n    if <<(x position) = [50]> or <(x position) = [120]>> then\n        set [mushroom x-vel v] to ((Mushroom x-vel) * (-1))\n    end\nend\n\n@Mario\n\nwhen flag clicked\nset [facing right v] to [0]\nset [touching ground v] to [0]\nset [move counter v] to [0]\nset [level 75 v] to [0]\nset [mario's x-vel v] to [0]\nset [mario's y-vel v] to [0]\nset [stop mario? v] to [0]\nhide\n\nwhen I receive [got the mushroom v]\nforever\n    if <not <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> or <(Scroll #) < [-350]>>> then\n        set [moving v] to [0]\n    end\nend\n\nwhen I receive [next level mario v]\nset [mario's y-vel v] to [0]\ngo to x: (-210) y: (-130)\nshow\n\nwhen I receive [got the mushroom v]\ngo to (mario mushroom v)\nchange y by (10)\nshow\nforever\n    Mario's Costumes\n    if <(Stop Mario?) = [0]> then\n        Mario's Physics (12) (-1) (3) (0.5)\n    else\n        Mario's Physics (0) (-1) (0) (0)\n    end\nend\n\nwhen I receive [end game cutscene v]\ngo to x: (220) y: (-21)\nset [stop mario? v] to [1]\nset [facing right v] to [0]\nwait (3) seconds\nset [facing right v] to [1]\nrepeat (175)\n    change [scroll # v] by (-2)\n    set x to ((Scroll #) + (220))\nend\nrepeat (65)\n    set [moving v] to [1]\n    change [scroll # v] by (-2)\n    set [mario's x-vel v] to [2]\nend\nbroadcast (Stop All v)\nforever\n    set [moving v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <(Level 75) = [1]> then\n        go to x: (-220) y: (-48)\n        go to x: (-220) y: (-48)\n        stop [this script v]\n    end\nend\n\nwhen I receive [got the mushroom v]\nforever\n    if <<<<key (r v) pressed?> or <touching (moving block v)?>> or <touching (moving block 3 v)?>> or <<touching (bowser v)?> or <touching (bowser fire v)?>>> then\n        if <(Level 75) = [0]> then\n            set [mario's y-vel v] to [0]\n            go to x: (-210) y: (-130)\n        else\n            broadcast (Final Level Start Screen v)\n            go to x: (-220) y: (-48)\n            set [mario's y-vel v] to [0]\n        end\n    end\nend\n\nwhen I receive [level 75 v]\nset [level 75 v] to [1]\n\ndefine None\nchange y by (Mario's y-vel)\nif <touching color (#d82800)?> then\n    if <(Level 75) = [0]> then\n        set [mario's y-vel v] to [0]\n        go to x: (-210) y: (-130)\n    end\nend\nif <<<touching (ground v)?> or <<touching (switchig block v)?> or <touching (moving block v)?>>> or <touching (end scroll v)?>> then\n    set [touching ground v] to [1]\n    repeat ([abs v] of (Mario's y-vel) )\n        if <<<touching (ground v)?> or <<touching (switchig block v)?> or <touching (moving block v)?>>> or <touching (end scroll v)?>> then\n            change y by ((([abs v] of (Mario's y-vel) ) / (Mario's y-vel)) * (-1))\n        end\n    end\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <not <(Mario's y-vel) > [ 0 ]>>> and <(Stop Mario?) = [0]>> then\n        set [touching ground v] to [0]\n        set [mario's y-vel v] to (mario's jump height)\n    else\n        set [mario's y-vel v] to [0]\n    end\nelse\n    change [mario's y-vel v] by (mario's gravity)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <(Stop Mario?) = [0]>> then\n    set [facing right v] to [1]\n    set [moving v] to [1]\n    change [mario's x-vel v] by (mario's movement speed)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> and <(Stop Mario?) = [0]>> then\n    set [facing right v] to [0]\n    set [moving v] to [1]\n    change [mario's x-vel v] by ((-1) * (mario's movement speed))\nend\nchange x by (Mario's x-vel)\nif <<<touching (ground v)?> or <<touching (switchig block v)?> or <touching (moving block v)?>>> or <touching (end scroll v)?>> then\n    set [mario's old y v] to (y position)\n    repeat (([abs v] of (Mario's x-vel) ) + (1))\n        if <<<touching (ground v)?> or <<touching (switchig block v)?> or <touching (moving block v)?>>> or <touching (end scroll v)?>> then\n            change y by (1)\n        end\n    end\nend\nif <<<touching (ground v)?> or <<touching (switchig block v)?> or <touching (moving block v)?>>> or <touching (end scroll v)?>> then\n    set y to (Mario's old y)\n    repeat ([ceiling v] of ([abs v] of (Mario's x-vel) ) )\n        if <<<<touching (ground v)?> or <<touching (switchig block v)?> or <touching (moving block v)?>>> or <touching (end scroll v)?>> and <not <touching color (#ff0000)?>>> then\n            change x by ((([abs v] of (Mario's x-vel) ) / (Mario's x-vel)) * (-1))\n        else\n            if <touching color (#d82800)?> then\n                if <(Level 75) = [0]> then\n                    set [mario's y-vel v] to [0]\n                    go to x: (-210) y: (-130)\n                end\n            end\n        end\n    end\nend\nset [mario's x-vel v] to ((Mario's x-vel) * (mario's friction))\n\ndefine Mario's Costumes\nif <(Touching Ground) = [0]> then\n    if <(Facing Right) = [1]> then\n        switch costume to (mariorightjumping v)\n    else\n        switch costume to (marioleftjumping v)\n    end\nelse\n    if <(Moving) = [0]> then\n        if <(Facing Right) = [1]> then\n            switch costume to (mariorightstanding v)\n        else\n            switch costume to (marioleftstanding v)\n        end\n    else\n        change [move counter v] by (1)\n        if <(Move Counter) = [5]> then\n            set [move counter v] to [0]\n        end\n        if <(Facing Right) = [1]> then\n            if <(Move Counter) > [-1]> then\n                switch costume to (mariorightrun1 v)\n            end\n            if <(Move Counter) > [1]> then\n                switch costume to (mariorightrun2 v)\n            end\n            if <(Move Counter) > [3]> then\n                switch costume to (mariorightrun3 v)\n            end\n        else\n            if <(Move Counter) > [-1]> then\n                switch costume to (marioleftrun1 v)\n            end\n            if <(Move Counter) > [1]> then\n                switch costume to (marioleftrun2 v)\n            end\n            if <(Move Counter) > [3]> then\n                switch costume to (marioleftrun3 v)\n            end\n        end\n    end\nend\n\nwhen I receive [final level start screen v]\nhide\nwait (2) seconds\ngo to x: (-220) y: (-48)\ngo to x: (-220) y: (-48)\nshow\n\n@Bowser\n\nwhen flag clicked\nset [bowser y-vel v] to [0]\nset [bowser x-vel v] to [0]\nset [bowser jump v] to [0]\nset [bowser left v] to [0]\nset [bowser right v] to [0]\nset [lvl. 75 v] to [0]\nset [stop bowser v] to [0]\ngo to x: (100) y: (-25)\ngo [backward v] (99) layers\nhide\n\nwhen I receive [level 74 v]\nforever\n    if <(Stop Bowser) = [0]> then\n        Bowser's Movements (12) (-1) (4) (0.5)\n        Bowser's Costumes\n        point in direction (90)\n        if <([x position v] of [mario v]) > (x position)> then\n            set [looking left? v] to [0]\n        else\n            set [looking left? v] to [1]\n        end\n        if <(pick random (1) to (40)) = [1]> then\n            repeat (5)\n                set [bowser jump v] to [1]\n            end\n        else\n            set [bowser jump v] to [0]\n        end\n        if <(pick random (1) to (20)) = [1]> then\n            set [bowser moving? v] to [1]\n            set [bowser left v] to [1]\n        else\n            set [bowser moving? v] to [0]\n            set [bowser left v] to [0]\n            if <(pick random (1) to (20)) = [1]> then\n                set [bowser moving? v] to [1]\n                set [bowser right v] to [1]\n            else\n                set [bowser moving? v] to [0]\n                set [bowser right v] to [0]\n            end\n        end\n        if <(pick random (1) to (75)) = [1]> then\n            create clone of (bowser fire v)\n        end\n        if <(x position) > [150]> then\n            set [bowser x-vel v] to [-5]\n        end\n        if <(x position) < [-60]> then\n            set [bowser x-vel v] to [5]\n        end\n    else\n        stop [this script v]\n    end\nend\n\ndefine Bowser's Costumes\nif <(Looking Left?) = [0]> then\n    if <(Bowser Moving?) = [1]> then\n        switch costume to (costume3 v)\n        wait (0.1) seconds\n        switch costume to (costume4 v)\n    else\n        switch costume to (costume3 v)\n    end\nelse\n    if <(Bowser Moving?) = [1]> then\n        switch costume to (costume1 v)\n        wait (0.1) seconds\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [level 75 v]\nset [lvl. 75 v] to [1]\nshow\n\nwhen flag clicked\nforever\n    if <(Lvl. 75) = [1]> then\n        go to x: (100) y: (-25)\n        go to x: (100) y: (-25)\n        stop [this script v]\n    end\nend\n\nwhen I receive [end game cutscene v]\nset [stop bowser v] to [1]\nswitch costume to (costume3 v)\nrepeat until <([costume # v] of [ground v]) = [119]>\n    set [bowser y-vel v] to [0]\n    switch costume to (costume4 v)\n    wait (0.0001) seconds\n    switch costume to (costume3 v)\n    wait (0.0001) seconds\nend\nrepeat until <(y position) < [-192]>\n    go to [front v] layer\n    change y by (Bowser y-vel)\n    change [bowser y-vel v] by (-1)\nend\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\ndefine None\nchange y by (Bowser y-vel)\nif <touching (ground v)?> then\n    repeat ([abs v] of (Bowser y-vel) )\n        if <touching (ground v)?> then\n            change y by ((([abs v] of (Bowser y-vel) ) / (Bowser y-vel)) * (-1))\n        end\n    end\n    if <<(Bowser Jump) = [1]> and <not <(Bowser y-vel) > [ 0 ]>>> then\n        set [bowser y-vel v] to (bowser jump height)\n    else\n        set [bowser y-vel v] to [0]\n    end\nelse\n    change [bowser y-vel v] by (bowser gravity)\nend\nif <<(Bowser Right) = [1]> and <not <(Bowser Left) = [1]>>> then\n    change [bowser x-vel v] by (bowser movement speed)\nend\nif <<(Bowser Left) = [1]> and <not <(Bowser Right) = [1]>>> then\n    change [bowser x-vel v] by ((-1) * (bowser movement speed))\nend\nchange x by (Bowser x-vel)\nif <touching (ground v)?> then\n    set [bowser old y v] to (y position)\n    repeat (([abs v] of (Bowser x-vel) ) + (1))\n        if <touching (ground v)?> then\n            change y by (1)\n        end\n    end\nend\nif <touching (ground v)?> then\n    set y to (Bowser Old Y)\n    repeat ([ceiling v] of ([abs v] of (Bowser x-vel) ) )\n        if <touching (ground v)?> then\n            change x by ((([abs v] of (Bowser x-vel) ) / (Bowser x-vel)) * (-1))\n        end\n    end\nend\nset [bowser x-vel v] to ((Bowser x-vel) * (bowser friction))\n\n@Bowser Fire\n\nwhen flag clicked\nset [stop fire v] to [0]\nhide\n\nwhen I start as a clone\nswitch costume to (delete-0 v)\nset rotation style [left-right v]\nif <<([costume # v] of [bowser v]) = [1]> or <([costume # v] of [bowser v]) = [2]>> then\n    point in direction (-90)\n    go to x: (([x position v] of [bowser v]) - (25)) y: (([y position v] of [bowser v]) + (3))\nelse\n    point in direction (90)\n    go to x: (([x position v] of [bowser v]) + (25)) y: (([y position v] of [bowser v]) + (3))\nend\nshow\nrepeat until <<<<touching (mario v)?> or <touching (_edge_ v)?>> or <touching (ground v)?>> or <(Stop Fire) = [1]>>\n    move (5) steps\n    next costume\nend\ndelete this clone\n\nwhen I receive [final level start screen v]\nset [stop fire v] to [1]\nwait (2.2) seconds\nset [stop fire v] to [0]\n\nwhen I receive [end game cutscene v]\nforever\n    set [stop fire v] to [1]\nend\n\n@Axe\n\nwhen flag clicked\ngo to x: (229) y: (-28)\nswitch costume to (delete-0 v)\nset size to (10) %\nhide\n\nwhen I receive [level 74 v]\nforever\n    if <not <touching (mario v)?>> then\n        if <(costume [number v]) = [4]> then\n            switch costume to (delete-0 v)\n            wait (1) seconds\n        end\n        next costume\n        wait (0.1) seconds\n    end\nend\n\nwhen I receive [level 75 v]\nshow\nforever\n    if <touching (mario v)?> then\n        broadcast (End Game Cutscene v)\n        forever\n            hide\n            stop [this script v]\n        end\n    end\nend\n\n@End Scroll\n\nwhen flag clicked\nset [scroll # v] to [0]\nhide\nforever\n    go to x: ((Scroll #) + (480)) y: (0)\nend\n\nwhen I receive [end game cutscene v]\nshow\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nset [ghost v] effect to (100)\nshow\nforever\n    go to [front v] layer\nend\n\n@Car\n\nwhen flag clicked\nset [level 24+ v] to [0]\ngo to x: (-209) y: (23)\npoint in direction (90)\ngo to [front v] layer\nhide\n\nwhen I receive [level 24 v]\n\nwhen flag clicked\n\nforever\n    if <touching (fake yellow dot v)?> then\n        set [movement v] to [0]\n        broadcast (Finish \(Car\) v)\n    else\n        if <(Level 24+) = [1]> then\n            show\n            move (Movement) steps\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <not <(Pause) = [1]>>> then\n                if <touching color (#009933)?> then\n                    change [movement v] by (0.1)\n                else\n                    change [movement v] by (0.25)\n                end\n                if <touching color (#003fff)?> then\n                    change [movement v] by (5)\n                else\n                    change [movement v] by (0.25)\n                end\n            end\n            if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> and <not <(Pause) = [1]>>> then\n                if <touching color (#009933)?> then\n                    change [movement v] by (-0.1)\n                else\n                    change [movement v] by (-0.5)\n                end\n            end\n            if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> and <not <touching (fake yellow dot v)?>>> and <not <(Pause) = [1]>>> then\n                turn left (3) degrees\n            end\n            if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <not <touching (fake yellow dot v)?>>> and <not <(Pause) = [1]>>> then\n                turn right (3) degrees\n            end\n            set [movement v] to ((Movement) * (0.9))\n        end\n    end\nend\n\nset [level 24+ v] to [1]\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [level 25 v]\n\ngo to x: (-211) y: (56)\npoint in direction (90)\nshow\n\n@Car Racing Background\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [level 24 v]\n\nwhen I receive [home menu v]\n\nwhen I receive [next level v]\n\nswitch costume to (costume1 v)\nshow\n\nhide\n\nnext costume\n\n