Rocks - A Platformer

Instructions: Greetings to Rocks!\n\nINSTRUCTIONS~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nMOVE • [Arrow keys] [W,A,S,D]\nRESTART • [R]\nPAUSE • [P]\nNEXT LEVEL • [P]\nGO BACK LEVEL • [B]\nMUTE • [M]\nDRAG • [Move yourself anywhere]\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSmash the like and favourite button if you truely loved it!\nFollow for more similar games!\nComment if you finish all levels!\nEnjoy!

@Stage\n\nwhen backdrop switches to [scores v]\nif <(No. Of Deaths) = [CHEATED]> then\n    show variable [☁ record v]\n    show variable [cheated v]\nelse\n    show variable [no. of deaths v]\n    show variable [☁ record v]\nend\nif <(No. Of Deaths) < (☁ Record)> then\n    set [☁ record v] to (No. Of Deaths)\nend\n\nwhen flag clicked\nhide variable [cheated v]\nhide variable [no. of deaths v]\nhide variable [☁ record v]\nhide variable [level v]\n\nwhen flag clicked\nforever\n    set [level v] to (backdrop [name v])\nend\n\n@Player\n\nwhen flag clicked\nset [no. of deaths v] to [0]\nset [color v] effect to (0)\nset drag mode [draggable v]\ngo to [back v] layer\nset [ghost v] effect to (100)\nshow\ngo to x: (-212) y: (-44)\n\nwhen flag clicked\nswitch costume to (right v)\nforever\n    if <touching color (#00ff27)?> then\n        next backdrop\n        go to x: (-212) y: (-44)\n    end\n    if <touching color (#ff0000)?> then\n        go to x: (-212) y: (-44)\n        change [no. of deaths v] by (1)\n    end\nend\n\nwhen I receive [message1 v]\nFade In\ngo to x: (-212) y: (-44)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (right v)\n        change [xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (left v)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                        end\n                        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\n                            end\n                            set [yv v] to [10]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <key (space v) pressed?>> then\n            switch costume to (jump v)\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\nend\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen [r v] key pressed\nbroadcast (Restart v)\n\nwhen I receive [paused v]\nFade Out\n\nwhen I receive [played v]\nFade In\n\nwhen I receive [restart v]\ngo to x: (-212) y: (-44)\n\nwhen I receive [next costume v]\nchange [color v] effect by (22)\n\nwhen I receive [3 buttons off v]\nFade In\n\nwhen backdrop switches to [end v]\nhide\n\nwhen I receive [previous color v]\nchange [color v] effect by (-22)\n\nwhen I receive [next costume v]\nchange [color v] effect by (22)\n\nwhen I receive [previous color v]\nchange [color v] effect by (-22)\n\nwhen flag clicked\nset [color v] to [0]\nforever\n    set [color v] effect to (Color)\nend\n\nwhen I receive [menu v]\nFade Out\n\nwhen I receive [message2 v]\nFade In\ngo to x: (-212) y: (-44)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (right v)\n        change [xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (left v)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                        end\n                        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\n                            end\n                            set [yv v] to [10]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <key (space v) pressed?>> then\n            switch costume to (jump v)\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <(backdrop [name v]) = [Menu]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [message1 v]\nswitch backdrop to (level 1 v)\n\nwhen I receive [message1 v]\ngo to x: (-212) y: (-44)\n\n@Thumbnail\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (2) layers\nset [ghost v] effect to (0)\nshow\nwait (4) seconds\nFade Out\nbroadcast (Intro v)\n\n@Th\n\nwhen flag clicked\ngo [backward v] (1) layers\ngo to x: (36) y: (28)\nset [ghost v] effect to (100)\ngo to [front v] layer\nshow\nFade In\nwait (2.5) seconds\nFade Out\n\ndefine Fade Out\nrepeat (25)\n    change [ghost v] effect by (4)\nend\n\ndefine Fade In\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\n\n@Th2\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\ngo to x: (36) y: (28)\nset [ghost v] effect to (100)\nshow\nwait (1) seconds\nFade In\nwait (1.5) seconds\nFade Out\n\ndefine Fade Out\nrepeat (25)\n    change [ghost v] effect by (4)\nend\n\ndefine Fade In\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\n\n@Title\n\nwhen flag clicked\ngo to x: (36) y: (28)\nshow\nset [ghost v] effect to (100)\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\ndefine Fade In\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\n\nwhen I receive [menu v]\nFade In\n\nwhen I receive [message1 v]\nFade Out\n\nwhen [s v] key pressed\nif <not <<(backdrop [name v]) = [Menu]> or <<(backdrop [name v]) = [End]> or <(backdrop [name v]) = [Scores]>>>> then\n    set [no. of deaths v] to [CHEATED]\nend\n\nwhen I receive [weekly v]\nFade Out\n\nwhen I receive [message2 v]\nFade Out\n\n@Weekly Level\n\nwhen I receive [message2 v]\nFade Out\n\nwhen I receive [message1 v]\nFade Out\n\nwhen [9 v] key pressed\nhide\n\nwhen I receive [credits v]\nFade Out\nwait until <key (space v) pressed?>\nFade In\n\nwhen I receive [menu v]\nFade In\n\nwhen flag clicked\nforever\n    if <not <(costume [name v]) = [Credits]>> then\n        if <touching (mouse-pointer v)?> then\n            switch costume to (button2 v)\n        else\n            switch costume to (button v)\n        end\n    end\nend\n\nwhen this sprite clicked\nFade Out\nswitch backdrop to (needed background v)\nbroadcast (Warning1 v)\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\nswitch costume to (button v)\nset [ghost v] effect to (100)\nshow\ngo to x: (-200) y: (-10)\n\n@Start\n\nwhen I receive [weekly v]\nFade Out\n\nwhen I receive [message1 v]\nFade Out\n\nwhen I receive [message2 v]\nFade Out\n\nwhen I receive [menu v]\nFade In\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (button2 v)\n    else\n        switch costume to (button v)\n    end\nend\n\nwhen this sprite clicked\nFade Out\nswitch backdrop to (level 1 v)\nbroadcast (message1 v)\nswitch backdrop to (level 1 v)\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\ngo to [back v] layer\nset [ghost v] effect to (100)\nshow\ngo to x: (0) y: (0)\n\n@Credits\n\nwhen I receive [weekly v]\nFade Out\n\nwhen [9 v] key pressed\nhide\n\nwhen I receive [message1 v]\nFade Out\n\nwhen I receive [message2 v]\nFade Out\n\nwhen I receive [menu v]\nFade In\n\nwhen flag clicked\nforever\n    if <not <(costume [name v]) = [Credits]>> then\n        if <touching (mouse-pointer v)?> then\n            switch costume to (button2 v)\n        else\n            switch costume to (button v)\n        end\n    end\nend\n\nwhen this sprite clicked\nFade Out\nswitch costume to (credits v)\ngo to x: (0) y: (0)\nbroadcast (Credits v)\nFade In\nwait until <key (space v) pressed?>\nFade Out\nswitch costume to (button v)\ngo to x: (100) y: (-10)\nFade In\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\nswitch costume to (button v)\nset [ghost v] effect to (100)\nshow\ngo to x: (100) y: (-10)\n\n@Pause\n\nwhen I receive [3 buttons off v]\nFade Out\nswitch costume to (button v)\nset size to (30) %\ngo to x: (-211) y: (151)\nFade In\n\nwhen backdrop switches to [level 1 v]\nFade In\nshow variable [level v]\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        if <touching (mouse-pointer v)?> then\n            set size to (37) %\n        else\n            set size to (30) %\n        end\n    else\n        if <touching (mouse-pointer v)?> then\n            set size to (107) %\n        else\n            set size to (100) %\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        if <touching (mouse-pointer v)?> then\n            set size to (37) %\n        else\n            set size to (30) %\n        end\n    else\n        if <touching (mouse-pointer v)?> then\n            set size to (107) %\n        else\n            set size to (100) %\n        end\n    end\nend\n\nwhen backdrop switches to [end v]\nhide\n\nwhen [p v] key pressed\nif <not <<(backdrop [name v]) = [Menu]> or <<(backdrop [name v]) = [End]> or <(backdrop [name v]) = [Scores]>>>> then\n    if <(costume [name v]) = [Button2]> then\n        broadcast (3 Buttons Off v)\n        Fade Out\n        go to x: (-221) y: (151)\n        broadcast (Played v)\n        switch costume to (button v)\n        set size to (30) %\n        Fade In\n    else\n        broadcast (3 Buttons v)\n        Fade Out\n        broadcast (Paused v)\n        switch costume to (button2 v)\n        go to x: (0) y: (50)\n        set size to (100) %\n        Fade In\n    end\nend\n\nwhen this sprite clicked\nif <not <<(backdrop [name v]) = [Menu]> or <<(backdrop [name v]) = [End]> or <(backdrop [name v]) = [Scores]>>>> then\n    if <(costume [name v]) = [Button2]> then\n        broadcast (3 Buttons Off v)\n        Fade Out\n        go to x: (-221) y: (151)\n        broadcast (Played v)\n        switch costume to (button v)\n        set size to (30) %\n        Fade In\n    else\n        broadcast (3 Buttons v)\n        Fade Out\n        broadcast (Paused v)\n        switch costume to (button2 v)\n        go to x: (0) y: (50)\n        set size to (100) %\n        Fade In\n    end\nend\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nswitch costume to (button v)\nset size to (30) %\nset [ghost v] effect to (100)\nshow\ngo to x: (-211) y: (151)\n\n@Previous\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (button2 v)\n    else\n        switch costume to (button v)\n    end\nend\n\nwhen [b v] key pressed\nif <not <<(backdrop [name v]) = [Level 1]> or <<(backdrop [name v]) = [Menu]> or <<<(backdrop [name v]) = [End]> or <(backdrop [name v]) = [Scores]>> or <(backdrop [name v]) = [weekly]>>>>> then\n    broadcast (Restart v)\n    switch backdrop to ((backdrop [number v]) - (1))\n    broadcast (3 Buttons Off v)\nend\n\nwhen I receive [3 buttons off v]\nFade Out\n\nwhen I receive [3 buttons v]\nFade In\n\nwhen this sprite clicked\nif <not <<(backdrop [name v]) = [Level 1]> or <<(backdrop [name v]) = [Menu]> or <<(backdrop [name v]) = [End]> or <(backdrop [name v]) = [Scores]>>>>> then\n    broadcast (Restart v)\n    switch backdrop to ((backdrop [number v]) - (1))\n    broadcast (3 Buttons Off v)\nend\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nswitch costume to (button v)\nset size to (30) %\nset [ghost v] effect to (100)\nshow\ngo to x: (-100) y: (-30)\n\n@Restart\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (button2 v)\n    else\n        switch costume to (button v)\n    end\nend\n\nwhen [r v] key pressed\nif <not <<(backdrop [name v]) = [Menu]> or <<<(backdrop [name v]) = [End]> or <(backdrop [name v]) = [weekly]>> or <(backdrop [name v]) = [Scores]>>>> then\n    broadcast (Restart v)\n    broadcast (3 Buttons Off v)\nend\nwait (1) seconds\n\nwhen I receive [3 buttons off v]\nFade Out\n\nwhen I receive [3 buttons v]\nFade In\n\nwhen this sprite clicked\nif <not <<(backdrop [name v]) = [Level 1]> or <<(backdrop [name v]) = [Menu]> or <<(backdrop [name v]) = [End]> or <(backdrop [name v]) = [Scores]>>>>> then\n    broadcast (Restart v)\n    broadcast (3 Buttons Off v)\nend\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nswitch costume to (button v)\nset size to (30) %\nset [ghost v] effect to (100)\nshow\ngo to x: (0) y: (-30)\n\n@Next\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (button2 v)\n    else\n        switch costume to (button v)\n    end\nend\n\nwhen [n v] key pressed\nif <not <<(backdrop [name v]) = [Menu]> or <<<(backdrop [name v]) = [End]> or <(backdrop [name v]) = [weekly]>> or <(backdrop [name v]) = [Scores]>>>> then\n    set [no. of deaths v] to [CHEATED]\n    broadcast (Restart v)\n    next backdrop\n    broadcast (3 Buttons Off v)\nend\nwait (1) seconds\n\nwhen backdrop switches to [end v]\nif <(No. Of Deaths) = [CHEATED]> then\n    broadcast (The player cheated v)\nend\n\nwhen I receive [3 buttons off v]\nFade Out\n\nwhen I receive [3 buttons v]\nFade In\n\nwhen this sprite clicked\nif <not <<(backdrop [name v]) = [Menu]> or <<(backdrop [name v]) = [End]> or <(backdrop [name v]) = [Scores]>>>> then\n    set [no. of deaths v] to [CHEATED]\n    broadcast (Restart v)\n    next backdrop\n    broadcast (3 Buttons Off v)\nend\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nswitch costume to (button v)\nset size to (30) %\nset [ghost v] effect to (100)\nshow\ngo to x: (100) y: (-30)\n\n@Deaths\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen backdrop switches to [scores v]\nFade In\n\nwhen flag clicked\ngo to x: (100) y: (-30)\nset [ghost v] effect to (100)\nshow\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\ngo to x: (-11) y: (72)\n\nwhen flag clicked\nhide variable [no. of deaths v]\n\n@Record\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen backdrop switches to [scores v]\nFade In\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\ngo to x: (39) y: (-126)\n\n@Button\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (button2 v)\n    else\n        switch costume to (button v)\n    end\nend\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen backdrop switches to [end v]\nFade In\n\nwhen flag clicked\ngo to x: (205) y: (127)\nset [ghost v] effect to (100)\nshow\n\nwhen this sprite clicked\nFade Out\nswitch backdrop to (scores v)\n\n@Comment\n\nwhen I receive [go v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen backdrop switches to [scores v]\nFade Out\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\ngo to x: (37) y: (-37)\n\n@Follow\n\nwhen backdrop switches to [end v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nbroadcast (go v)\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen backdrop switches to [scores v]\nFade Out\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\ngo to x: (36) y: (28)\n\n@Remix\n\nwhen flag clicked\npoint in direction (90)\ngo to x: (139) y: (77)\nhide\nset [ghost v] effect to (100)\n\nwhen backdrop switches to [end v]\nhide variable [level v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    turn right (5) degrees\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen backdrop switches to [scores v]\nFade Out\n\n@Favourite\n\nwhen flag clicked\npoint in direction (90)\ngo to x: (2) y: (88)\nhide\nset [ghost v] effect to (100)\n\nwhen backdrop switches to [end v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    glide (0.5) secs to x: (-27) y: (88)\n    glide (0.5) secs to x: (27) y: (88)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen backdrop switches to [scores v]\nFade Out\n\n@Like\n\nwhen backdrop switches to [end v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    set size to (105) %\n    wait (0.5) seconds\n    set size to (90) %\n    wait (0.5) seconds\nend\n\nwhen flag clicked\npoint in direction (90)\ngo to x: (-159) y: (63)\nhide\nset [ghost v] effect to (100)\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen backdrop switches to [scores v]\nFade Out\n\n@Drops4\n\nwhen backdrop switches to [level 11 v]\nhide\n\nwhen flag clicked\ngo to x: (pick random (-240) to (240)) y: (204)\nset [ghost v] effect to (100)\nshow\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen backdrop switches to [level 10 v]\nshow\nFade In\nrepeat until <(backdrop [name v]) = [Level 12]>\n    glide (pick random (0.4) to (1)) secs to x: (x position) y: (-204)\n    go to x: (pick random (-240) to (240)) y: (204)\nend\n\n@Color Shower\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [3 buttons off v]\nFade Out\n\nwhen I receive [3 buttons v]\nFade In\n\nwhen flag clicked\nshow\ngo to x: (-185) y: (118)\nset [ghost v] effect to (100)\nset [color v] to [0]\n\nwhen flag clicked\nhide variable [☁ record v]\nhide variable [no. of deaths v]\nswitch backdrop to (needed background 2 v)\n\nwhen flag clicked\nforever\n    set [color v] effect to (Color)\nend\n\n@Next Color\n\nwhen this sprite clicked\nchange [color v] by (22)\n\nwhen I receive [3 buttons v]\nFade In\n\nwhen I receive [3 buttons off v]\nFade Out\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\ngo to x: (-153) y: (134)\nset [ghost v] effect to (100)\nshow\n\n@Before Color\n\nwhen this sprite clicked\nchange [color v] by (-22)\n\nwhen I receive [3 buttons v]\nFade In\n\nwhen I receive [3 buttons off v]\nFade Out\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\ngo to x: (-217) y: (135)\nset [ghost v] effect to (100)\nshow\n\n@Drops2\n\nwhen backdrop switches to [level 11 v]\nhide\n\nwhen flag clicked\ngo to x: (pick random (-240) to (240)) y: (204)\nset [ghost v] effect to (100)\nshow\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen backdrop switches to [level 10 v]\nshow\nFade In\nrepeat until <(backdrop [name v]) = [Level 12]>\n    glide (pick random (0.4) to (1)) secs to x: (x position) y: (-204)\n    go to x: (pick random (-240) to (240)) y: (204)\nend\n\n@Drops3\n\nwhen backdrop switches to [level 11 v]\nhide\n\nwhen flag clicked\ngo to x: (pick random (-240) to (240)) y: (204)\nset [ghost v] effect to (100)\nshow\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen backdrop switches to [level 10 v]\nshow\nFade In\nrepeat until <(backdrop [name v]) = [Level 12]>\n    glide (pick random (0.4) to (1)) secs to x: (x position) y: (-204)\n    go to x: (pick random (-240) to (240)) y: (204)\nend\n\n@Space1\n\nwhen flag clicked\nforever\n    repeat (25)\n        change [ghost v] effect by (4)\n    end\n    wait (0.25) seconds\n    repeat (25)\n        change [ghost v] effect by (-4)\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (28)\nhide\n\nwhen I receive [credits v]\nshow\nwait until <key (space v) pressed?>\nhide\n\n@WARNING1\n\nwhen flag clicked\nshow\ngo to x: (36) y: (28)\nset [ghost v] effect to (100)\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [warning1 v]\ngo to [front v] layer\ngo [backward v] (1) layers\nFade In\nswitch backdrop to (needed background v)\nwait (5.4) seconds\nbroadcast (message2 v)\nwait (0.1) seconds\nswitch backdrop to (weekly v)\n\nwhen I receive [all fade v]\nFade Out\n\n@W12\n\nwhen flag clicked\ngo to x: (36) y: (28)\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [warning1 v]\nwait (0.5) seconds\ngo to [front v] layer\nFade In\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [all fade v]\nFade Out\n\n@W13\n\nwhen flag clicked\ngo to x: (54) y: (-55)\nshow\nset [ghost v] effect to (100)\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [warning1 v]\nwait (2) seconds\ngo to [front v] layer\nFade In\n\nwhen I receive [all fade v]\nFade Out\n\n@W14\n\nwhen flag clicked\ngo to x: (-90) y: (-46)\nshow\nset [ghost v] effect to (100)\n\ndefine Fade In\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine Fade Out\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [warning1 v]\nwait (3.5) seconds\ngo to [front v] layer\nFade In\nwait (2) seconds\nbroadcast (ALL FADE v)\n\nwhen I receive [all fade v]\nFade Out\n\n@TURBO MODE DETECTOR\n\ndefine Turbo mode detector\nreset timer\nrepeat (10)\n    move (0) steps\nend\nif <(timer) > [0.1]> then\n    set [turbo mode? v] to [false]\nelse\n    set [turbo mode? v] to [true]\n    wait (0.000000005) seconds\n    show\n    stop [all v]\nend\n\nwhen flag clicked\nforever\n    Turbo mode detector\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\ngo to x: (36) y: (28)\n\n@Muter\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nset volume to (100) %\nswitch costume to (unmute v)\nhide\nset [ghost v] effect to (100)\ngo to x: (115) y: (4)\n\nwhen I receive [3 buttons v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [3 buttons off v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen [m v] key pressed\nnext costume\n\nwhen I receive [message1 v]\nset volume to (100) %\nforever\n    play sound [\(edited version\) Pegboard Nerds  Tristam - Razor Sharp \[Monstercat Release\] v] until done\nend\n\nwhen I receive [message1 v]\nforever\n    if <(costume [number v]) = [1]> then\n        set volume to (100) %\n    else\n        set volume to (0) %\n    end\nend\n\n@Menu Music\n\nwhen backdrop switches to [menu v]\nrepeat until <<(backdrop [name v]) = [weekly]> or <(backdrop [name v]) = [Level 1]>>\n    play sound [551527_BOT-LAB v] until done\nend\n\nwhen I receive [menu v]\nswitch backdrop to (menu v)\n\nwhen backdrop switches to [level 1 v]\nstop [other scripts in sprite v]\n\nwhen I receive [3 buttons v]\nstop [other scripts in sprite v]\n\nwhen backdrop switches to [weekly v]\nstop [other scripts in sprite v]\n\nwhen backdrop switches to [menu v]\nset volume to (0) %\nrepeat (25)\n    change volume by (4)\nend\n\n@Weekly Music\n\nwhen I receive [message2 v]\nset volume to (100) %\nrepeat until <(backdrop [name v]) = [Menu]>\n    play sound [\(edited version\) Pegboard Nerds  Tristam - Razor Sharp \[Monstercat Release\] v] until done\nend\n\nwhen backdrop switches to [menu v]\nstop [other scripts in sprite v]\n\n@Weekly Finish\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        hide\n        broadcast (stop v)\n        broadcast (Menu v)\n        switch backdrop to (menu v)\n    end\nend\n\nwhen backdrop switches to [weekly v]\nshow\n\nwhen flag clicked\ngo to x: (36) y: (-16)\nset [ghost v] effect to (0)\nhide\n\n@Logo\n\nwhen backdrop switches to [picture v]\nwait (0.7) seconds\nplay sound [New intro 3 seconds v] until done\n\ndefine TransitionToLargerSelf\nset [orb_transitioning? v] to [1]\nset [orb_smooth_transition v] to [6]\nrepeat until <[2] > (orb_smooth_transition)>\n    change size by (orb_smooth_transition)\n    change [orb_smooth_transition v] by (-0.5)\n    wait (0.01) seconds\nend\nrepeat (3)\n    change size by (1)\n    wait (0.01) seconds\nend\nrepeat (3)\n    change size by (0.5)\n    wait (0.01) seconds\nend\nrepeat (3)\n    change size by (0.2)\n    wait (0.01) seconds\nend\nset [orb_transitioning? v] to [0]\n\ndefine Smooth Glide X (x) Y (y) and smooth size to (%) at speed (zoomspeed)\nrepeat until <<<(round (x position)) = (x)> and <(round (y position)) = (y)>> and <(round (size)) = (round (%))>>\n    go to x: (((x position) + (((x) - (x position)) / (zoomspeed))) + (0)) y: (((y position) + (((y) - (y position)) / (zoomspeed))) + (0))\n    change size by (((round (%)) - (round (size))) / (zoomspeed))\nend\nset size to (%) %\n\nwhen flag clicked\nset size to (100) %\npoint in direction (90)\nset [ghost v] effect to (0)\nhide\n\nwhen I receive [intro v]\ngo to x: (0) y: (251)\nwait (0.7) seconds\nshow\nSmooth Glide X (0) Y (0) and smooth size to (100) at speed (7)\nTransitionToLargerSelf\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (0.75) seconds\nbroadcast (Menu v)\n\n