Crystal Seeker 3D platformer v1.8.3
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [play v]\nswitch backdrop to (backdrop2 v)\n\n@Intro \n\nwhen flag clicked\nhide\nswitch costume to (logo v)\nset size to (50) %\nset [ghost v] effect to (100)\npoint in direction (90)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(Clone) = [Background]> then\n    hide\n    switch costume to (background v)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    point in direction (90)\n    go to x: (-400) y: (0)\n    show\n    repeat (20)\n        change [ghost v] effect by (-5)\n        change x by (((0) - (x position)) / (4))\n    end\n    set x to (0)\n    wait (4) seconds\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone) = [Tile]> then\n    hide\n    switch costume to (tile v)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    set [brightness v] effect to (-100)\n    point in direction (90)\n    go to x: (pick random (-400) to (400)) y: (pick random (-400) to (400))\n    show\n    repeat (40)\n        change [ghost v] effect by (-5)\n        change x by (((0) - (x position)) / (8))\n        change y by (((0) - (y position)) / (8))\n        change size by (10)\n    end\n    set x to (0)\n    set y to (0)\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone) = (join [Step ] (letter (6) of (Clone)))> then\n    hide\n    switch costume to (Clone)\n    if <(costume [name v]) = [Step 1]> then\n        set size to (80) %\n        set [ghost v] effect to (100)\n        point in direction (0)\n        go to x: (0) y: (-200)\n        show\n        repeat (40)\n            go to [front v] layer\n            change [ghost v] effect by (-10)\n            change size by (((75) - (size)) / (8))\n            change y by (((0) - (y position)) / (4))\n            turn right (((90) - (direction)) / (4)) degrees\n        end\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        delete this clone\n    else\n        if <(costume [name v]) = [Step 2]> then\n            set size to (80) %\n            set [ghost v] effect to (100)\n            point in direction (0)\n            go to x: (0) y: (200)\n            show\n            repeat (40)\n                go to [front v] layer\n                change [ghost v] effect by (-10)\n                change size by (((75) - (size)) / (8))\n                change y by (((0) - (y position)) / (4))\n                turn right (((90) - (direction)) / (4)) degrees\n            end\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            delete this clone\n        else\n            if <(costume [name v]) = [Step 3]> then\n                set size to (80) %\n                set [ghost v] effect to (100)\n                point in direction (90)\n                go to x: (0) y: (-200)\n                show\n                repeat (40)\n                    go to [front v] layer\n                    change [ghost v] effect by (-10)\n                    change size by (((75) - (size)) / (8))\n                    change y by (((0) - (y position)) / (4))\n                end\n                repeat (20)\n                    change [ghost v] effect by (5)\n                end\n                delete this clone\n            else\n                if <(costume [name v]) = [Step 4]> then\n                    set size to (80) %\n                    set [ghost v] effect to (100)\n                    point in direction (90)\n                    go to x: (0) y: (200)\n                    show\n                    repeat (40)\n                        go to [front v] layer\n                        change [ghost v] effect by (-10)\n                        change size by (((75) - (size)) / (8))\n                        change y by (((0) - (y position)) / (4))\n                    end\n                    repeat (20)\n                        change [ghost v] effect by (5)\n                    end\n                    delete this clone\n                else\n                    switch costume to (logo v)\n                    set size to (150) %\n                    set [ghost v] effect to (100)\n                    point in direction (90)\n                    go to x: (0) y: (0)\n                    go to [front v] layer\n                    show\n                    repeat (20)\n                        change [ghost v] effect by (-5)\n                        change size by (((75) - (size)) / (4))\n                    end\n                    wait (1.75) seconds\n                    set [i v] to [0]\n                    repeat (20)\n                        change [i v] by (4)\n                        change [ghost v] effect by (5)\n                        change size by ([tan v] of (i) )\n                        turn right ([tan v] of (i) ) degrees\n                    end\n                    broadcast (Intro Done v)\n                    delete this clone\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone) = [Fade]> then\n    hide\n    switch costume to (background v)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    point in direction (90)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    repeat (10)\n        go to [front v] layer\n        change [ghost v] effect by (-10)\n    end\n    wait (3) seconds\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone) = [Tiles]> then\n    hide\n    switch costume to (tile v)\n    set size to (100) %\n    set [ghost v] effect to (20)\n    set [i v] to (pick random (1) to (2))\n    if <(i) = [1]> then\n        set [brightness v] effect to (-100)\n    else\n        set [brightness v] effect to (-50)\n    end\n    point in direction (90)\n    go to x: (pick random (-100) to (100)) y: (pick random (-50) to (50))\n    set [i v] to (pick random (-20) to (10))\n    go to [front v] layer\n    show\n    repeat until <(y position) < [-170]>\n        change [ghost v] effect by (2)\n        change y by (i)\n        change [i v] by (-0.5)\n        change size by (2)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone) = [Spark]> then\n    hide\n    switch costume to (spark v)\n    set size to (200) %\n    set [ghost v] effect to (0)\n    set [brightness v] effect to (100)\n    point in direction (90)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    repeat (20)\n        go to [front v] layer\n        change [ghost v] effect by (5)\n        change [brightness v] effect by (-5)\n        change size by (((150) - (size)) / (8))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone) = [Trace]> then\n    hide\n    switch costume to (trace v)\n    set size to (200) %\n    set [ghost v] effect to (0)\n    set [brightness v] effect to (-100)\n    point in direction (90)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    repeat (20)\n        go to [front v] layer\n        change [ghost v] effect by (5)\n        change [brightness v] effect by (5)\n        change size by (((150) - (size)) / (8))\n    end\n    delete this clone\nend\n\nwhen flag clicked\nset [clone v] to [0]\nhide\nswitch costume to (logo v)\nset size to (50) %\nset [ghost v] effect to (100)\npoint in direction (90)\ngo to x: (0) y: (0)\nstart sound [Introsound v]\nset [clone v] to [Background]\ncreate clone of (_myself_ v)\nset [clone v] to [Tile]\nrepeat (20)\n    create clone of (_myself_ v)\n    create clone of (_myself_ v)\nend\nset [clone v] to [Fade]\ncreate clone of (_myself_ v)\nset [clone v] to [Step 1]\nrepeat (2)\n    create clone of (_myself_ v)\n    set [clone v] to (join [Step ] ((letter (6) of (Clone)) + (1)))\nend\nwait (0.2) seconds\nrepeat (2)\n    create clone of (_myself_ v)\n    set [clone v] to (join [Step ] ((letter (6) of (Clone)) + (1)))\nend\nwait (0.3) seconds\ncreate clone of (_myself_ v)\nwait (0.4) seconds\nset [clone v] to [Tiles]\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\ncreate clone of (_myself_ v)\nset [clone v] to [Trace]\ncreate clone of (_myself_ v)\nset [clone v] to [Spark]\ncreate clone of (_myself_ v)\n\n@Player\n\nwhen I receive [play v]\nset size to (90) %\nshow\nset [level v] to [1]\nswitch costume to (Costume)\nset rotation style [left-right v]\ngo to x: (-200) y: (0)\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        point in direction (-90)\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        point in direction (90)\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (.9))\n    change x by (x)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change x by ((x) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (17))>>>> then\n                                if <(x) > [0]> then\n                                    set [x v] to [-5]\n                                else\n                                    set [x v] to [5]\n                                end\n                                set [y v] to [10]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (level v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (17))>>>> then\n            change [y v] by (15)\n        end\n    end\n    change y by (1)\n    if <<touching (spikes/lava v)?> or <(y position) < [-170]>> then\n        start sound [Crunch v]\n        go to x: (-200) y: (0)\n    end\n    if <(x position) > [235]> then\n        if <not <(level) = [14]>> then\n            go to x: (-200) y: (0)\n            change [level v] by (1)\n            wait (.000001) seconds\n        end\n    end\n    if <touching (trampolines v)?> then\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [retry v]\nset size to (90) %\nshow\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (0)\n\n@Level\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\nforever\n    switch costume to (level)\nend\n\n@Spikes/Lava\n\nwhen I receive [play v]\nshow\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nhide\n\n@GUI\n\nwhen flag clicked\nset [time v] to [0]\nshow\nforever\n    Duh\nend\n\ndefine Duh\nset [ghost v] effect to (30)\ngo to [front v] layer\ngo to (mouse-pointer v)\nswitch costume to (0 v)\nif <touching (play v)?> then\n    switch costume to (1 v)\nelse\n    if <touching (music v)?> then\n        switch costume to (2 v)\n    else\n        if <touching (character select v)?> then\n            switch costume to (3 v)\n        else\n            if <touching (instructions v)?> then\n                switch costume to (4 v)\n            else\n                if <touching (xenogenesis - thefatrat v)?> then\n                    switch costume to (8 v)\n                else\n                    if <touching (lights \[dream trance\] v)?> then\n                        switch costume to (9 v)\n                    else\n                        if <touching (meco - galactic funk v)?> then\n                            switch costume to (10 v)\n                        else\n                            if <touching (alan walker - fade v)?> then\n                                switch costume to (11 v)\n                            else\n                                if <touching (avicii - levels v)?> then\n                                    switch costume to (12 v)\n                                else\n                                    if <touching (vexento - masked heroes v)?> then\n                                        switch costume to (13 v)\n                                    else\n                                        if <touching (vexento - snowflakes v)?> then\n                                            switch costume to (14 v)\n                                        else\n                                            if <touching (elevation - knightkit12 v)?> then\n                                                switch costume to (15 v)\n                                            else\n                                                if <touching (vexento - pixel party v)?> then\n                                                    switch costume to (16 v)\n                                                else\n                                                    if <touching (vexento - pollen v)?> then\n                                                        switch costume to (17 v)\n                                                    else\n                                                        if <touching (unity -thefatrat v)?> then\n                                                            switch costume to (18 v)\n                                                        else\n                                                            if <touching (fly - marshmello v)?> then\n                                                                switch costume to (19 v)\n                                                            else\n                                                                if <touching (back v)?> then\n                                                                    switch costume to (20 v)\n                                                                else\n                                                                    if <touching (skip v)?> then\n                                                                        switch costume to (6 v)\n                                                                    else\n                                                                        if <touching (retry v)?> then\n                                                                            switch costume to (7 v)\n                                                                        else\n                                                                            switch costume to (0 v)\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [costume select v]\nhide\n\nwhen I receive [back v]\nshow\n\n@Menu Title\n\nwhen flag clicked\ngo to x: (-1000) y: (125)\nhide\n\nwhen I receive [intro done v]\nswitch costume to (menu v)\nshow\nrepeat (30)\n    change x by (((0) - (x position)) / (7))\nend\nforever\n    set x to ((([sin v] of ((timer) * (100)) ) * (25)) - (0))\nend\n\nwhen I receive [music v]\nswitch costume to (music v)\n\nwhen I receive [back v]\nswitch costume to (menu v)\n\nwhen I receive [instructions v]\nswitch costume to (instructions v)\n\nwhen I receive [costume select v]\nswitch costume to (character select v)\n\nwhen I receive [play v]\nhide\n\n@Play\n\nwhen flag clicked\nhide\ngo to x: (5) y: (-15)\n\nwhen I receive [intro done v]\nshow\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\n    if <touching (mouse-pointer v)?> then\n        change size by (((150) - (size)) / (6))\n        clear graphic effects\n        if <mouse down?> then\n            play sound [Mouse Click v] until done\n            change size by (((100) - (size)) / (6))\n            set [color v] effect to ((1) / ())\n            wait until <not <mouse down?>>\n            change size by (((125) - (size)) / (6))\n            broadcast (Play v)\n        end\n    else\n        change size by (((125) - (size)) / (6))\n        set [color v] effect to ((1) / ())\n    end\nend\n\nwhen I receive [back v]\nshow\n\nwhen I receive [music v]\nhide\n\nwhen I receive [costume select v]\nhide\n\nwhen I receive [play v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [instructions v]\nhide\n\n@Character Select\n\nwhen flag clicked\nhide\ngo to x: (105) y: (-15)\n\nwhen I receive [intro done v]\nshow\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\n    if <touching (mouse-pointer v)?> then\n        change size by (((150) - (size)) / (6))\n        clear graphic effects\n        if <mouse down?> then\n            play sound [Mouse Click v] until done\n            change size by (((100) - (size)) / (6))\n            set [color v] effect to ((1) / ())\n            wait until <not <mouse down?>>\n            change size by (((125) - (size)) / (6))\n            broadcast (Costume Select v)\n        end\n    else\n        change size by (((125) - (size)) / (6))\n        set [color v] effect to ((1) / ())\n    end\nend\n\nwhen I receive [music v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [costume select v]\nhide\n\nwhen I receive [play v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [instructions v]\nhide\n\n@Music\n\nwhen flag clicked\nhide\ngo to x: (-95) y: (-15)\n\nwhen I receive [intro done v]\nshow\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\n    if <touching (mouse-pointer v)?> then\n        change size by (((150) - (size)) / (6))\n        clear graphic effects\n        if <mouse down?> then\n            play sound [Mouse Click v] until done\n            change size by (((100) - (size)) / (6))\n            set [color v] effect to ((1) / ())\n            wait until <not <mouse down?>>\n            change size by (((125) - (size)) / (6))\n            broadcast (Music v)\n        end\n    else\n        change size by (((125) - (size)) / (6))\n        set [color v] effect to ((1) / ())\n    end\nend\n\nwhen I receive [music v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [costume select v]\nhide\n\nwhen I receive [play v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [instructions v]\nhide\n\n@Instructions\n\nwhen flag clicked\nhide\ngo to x: (5) y: (-95)\n\nwhen I receive [intro done v]\nshow\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\n    if <touching (mouse-pointer v)?> then\n        change size by (((150) - (size)) / (6))\n        clear graphic effects\n        if <mouse down?> then\n            play sound [Mouse Click v] until done\n            change size by (((100) - (size)) / (6))\n            set [color v] effect to ((1) / ())\n            wait until <not <mouse down?>>\n            change size by (((125) - (size)) / (6))\n            broadcast (Instructions v)\n        end\n    else\n        change size by (((125) - (size)) / (6))\n        set [color v] effect to ((1) / ())\n    end\nend\n\nwhen I receive [music v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [costume select v]\nhide\n\nwhen I receive [play v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [instructions v]\nhide\n\n@Xenogenesis - TheFatRat\n\nwhen I receive [music v]\nshow\ngo to x: (-150) y: (45)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nset [music v] to [1]\n\n@Lights [Dream Trance]\n\nwhen I receive [music v]\nshow\ngo to x: (-50) y: (45)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nset [music v] to [2]\n\n@Meco - Galactic Funk\n\nwhen I receive [music v]\nshow\ngo to x: (50) y: (45)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nset [music v] to [3]\n\n@Alan Walker - Fade\n\nwhen I receive [music v]\nshow\ngo to x: (150) y: (45)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nset [music v] to [4]\n\n@Avicii - Levels\n\nwhen I receive [music v]\nshow\ngo to x: (-150) y: (-35)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nset [music v] to [5]\n\n@Vexento - Masked Heroes\n\nwhen I receive [music v]\nshow\ngo to x: (-50) y: (-35)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nset [music v] to [6]\n\n@Vexento - Snowflakes\n\nwhen I receive [music v]\nshow\ngo to x: (50) y: (-35)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nset [music v] to [7]\n\n@Elevation - KnightKit12\n\nwhen I receive [music v]\nshow\ngo to x: (150) y: (-35)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nset [music v] to [8]\n\n@Vexento - Pixel Party\n\nwhen I receive [music v]\nshow\ngo to x: (-150) y: (-125)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nset [music v] to [9]\n\n@Vexento - Pollen\n\nwhen I receive [music v]\nshow\ngo to x: (-50) y: (-125)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nset [music v] to [10]\n\n@Unity -TheFatRat\n\nwhen I receive [music v]\nshow\ngo to x: (50) y: (-125)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nset [music v] to [11]\n\n@Fly - Marshmello\n\nwhen I receive [music v]\nshow\ngo to x: (150) y: (-125)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nset [music v] to [12]\n\n@Game Music\n\nwhen I receive [play v]\nstop all sounds\nif <(Music) = [0]> then\n    forever\n        play sound (pick random (1) to (12)) until done\n    end\nelse\n    forever\n        play sound (Music) until done\n    end\nend\n\nwhen flag clicked\nset [music v] to [0]\n\n@Back\n\nwhen I receive [music v]\nshow\nswitch costume to (music-back v)\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nstart sound [Mouse Click v]\nbroadcast (Back v)\n\nwhen I receive [back v]\nhide\n\nwhen I receive [instructions v]\nshow\nswitch costume to (instructions-back v)\n\nwhen I receive [costume select v]\nshow\nswitch costume to (costume-select-back v)\n\n@InstructionsPage\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nhide\n\nwhen I receive [instructions v]\nshow\n\n@Costume Select Player\n\nwhen I receive [costume select v]\nshow\n\nwhen I receive [right v]\nnext costume\n\nwhen I receive [left v]\nswitch costume to (previous costume v)\n\nwhen flag clicked\nswitch costume to (black v)\nhide\n\nwhen I receive [back v]\nhide\n\nwhen flag clicked\nforever\n    set [costume v] to (costume [number v])\nend\n\n@Left\n\nwhen flag clicked\ngo to x: (-50) y: (0)\nset size to (65) %\nhide\n\nwhen I receive [back v]\nhide\n\nwhen I receive [costume select v]\nshow\n\nwhen this sprite clicked\nbroadcast (Left v)\n\n@Right\n\nwhen flag clicked\ngo to x: (50) y: (0)\nset size to (65) %\nhide\n\nwhen I receive [back v]\nhide\n\nwhen I receive [costume select v]\nshow\n\nwhen this sprite clicked\nbroadcast (Right v)\n\n@detector\n\nwhen flag clicked\ngo to [front v] layer\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n@Text engine\n\nwhen flag clicked\nforever\n    hide\nend\n\ndefine type (type)\nset [count v] to [1]\ngo to [back v] layer\nshow\nrepeat (length of (type))\n    if <(letter (count) of (type)) = [a]> then\n        switch costume to (a v)\n    else\n        if <(letter (count) of (type)) = [b]> then\n            switch costume to (b v)\n        else\n            if <(letter (count) of (type)) = [c]> then\n                switch costume to (c v)\n            else\n                if <(letter (count) of (type)) = [d]> then\n                    switch costume to (d v)\n                else\n                    if <(letter (count) of (type)) = [e]> then\n                        switch costume to (e v)\n                    else\n                        if <(letter (count) of (type)) = [f]> then\n                            switch costume to (f v)\n                        else\n                            if <(letter (count) of (type)) = [g]> then\n                                switch costume to (g v)\n                            else\n                                if <(letter (count) of (type)) = [h]> then\n                                    switch costume to (h v)\n                                else\n                                    if <(letter (count) of (type)) = [i]> then\n                                        switch costume to (i v)\n                                    else\n                                        if <(letter (count) of (type)) = [j]> then\n                                            switch costume to (j v)\n                                        else\n                                            if <(letter (count) of (type)) = [k]> then\n                                                switch costume to (k v)\n                                            else\n                                                if <(letter (count) of (type)) = [l]> then\n                                                    switch costume to (l v)\n                                                else\n                                                    if <(letter (count) of (type)) = [m]> then\n                                                        switch costume to (m v)\n                                                    else\n                                                        if <(letter (count) of (type)) = [n]> then\n                                                            switch costume to (n v)\n                                                        else\n                                                            if <(letter (count) of (type)) = [o]> then\n                                                                switch costume to (o v)\n                                                            else\n                                                                if <(letter (count) of (type)) = [p]> then\n                                                                    switch costume to (p v)\n                                                                else\n                                                                    if <(letter (count) of (type)) = [q]> then\n                                                                        switch costume to (q v)\n                                                                    else\n                                                                        if <(letter (count) of (type)) = [r]> then\n                                                                            switch costume to (r v)\n                                                                        else\n                                                                            if <(letter (count) of (type)) = [s]> then\n                                                                                switch costume to (s v)\n                                                                            else\n                                                                                if <(letter (count) of (type)) = [t]> then\n                                                                                    switch costume to (t v)\n                                                                                else\n                                                                                    if <(letter (count) of (type)) = [u]> then\n                                                                                        switch costume to (u v)\n                                                                                    else\n                                                                                        if <(letter (count) of (type)) = [v]> then\n                                                                                            switch costume to (v v)\n                                                                                        else\n                                                                                            if <(letter (count) of (type)) = [w]> then\n                                                                                                switch costume to (w v)\n                                                                                            else\n                                                                                                if <(letter (count) of (type)) = [x]> then\n                                                                                                    switch costume to (x v)\n                                                                                                else\n                                                                                                    if <(letter (count) of (type)) = [y]> then\n                                                                                                        switch costume to (y v)\n                                                                                                    else\n                                                                                                        if <(letter (count) of (type)) = [z]> then\n                                                                                                            switch costume to (z v)\n                                                                                                        else\n                                                                                                            if <(letter (count) of (type)) = [0]> then\n                                                                                                                switch costume to (0 v)\n                                                                                                            else\n                                                                                                                if <(letter (count) of (type)) = [1]> then\n                                                                                                                    switch costume to (1 v)\n                                                                                                                else\n                                                                                                                    if <(letter (count) of (type)) = [2]> then\n                                                                                                                        switch costume to (2 v)\n                                                                                                                    else\n                                                                                                                        if <(letter (count) of (type)) = [3]> then\n                                                                                                                            switch costume to (3 v)\n                                                                                                                        else\n                                                                                                                            if <(letter (count) of (type)) = [4]> then\n                                                                                                                                switch costume to (4 v)\n                                                                                                                            else\n                                                                                                                                if <(letter (count) of (type)) = [5]> then\n                                                                                                                                    switch costume to (5 v)\n                                                                                                                                else\n                                                                                                                                    if <(letter (count) of (type)) = [6]> then\n                                                                                                                                        switch costume to (6 v)\n                                                                                                                                    else\n                                                                                                                                        if <(letter (count) of (type)) = [7]> then\n                                                                                                                                            switch costume to (7 v)\n                                                                                                                                        else\n                                                                                                                                            if <(letter (count) of (type)) = [8]> then\n                                                                                                                                                switch costume to (8 v)\n                                                                                                                                            else\n                                                                                                                                                if <(letter (count) of (type)) = [9]> then\n                                                                                                                                                    switch costume to (9 v)\n                                                                                                                                                else\n                                                                                                                                                    if <(letter (count) of (type)) = [-]> then\n                                                                                                                                                        switch costume to (dash v)\n                                                                                                                                                    else\n                                                                                                                                                        if <(letter (count) of (type)) = [_]> then\n                                                                                                                                                            switch costume to (dash2 v)\n                                                                                                                                                        else\n                                                                                                                                                            if <(letter (count) of (type)) = [ ]> then\n                                                                                                                                                                switch costume to (space v)\n                                                                                                                                                            else\n                                                                                                                                                                if <(letter (count) of (type)) = [.]> then\n                                                                                                                                                                    switch costume to (. v)\n                                                                                                                                                                else\n                                                                                                                                                                    if <(letter (count) of (type)) = [,]> then\n                                                                                                                                                                        switch costume to (, v)\n                                                                                                                                                                    else\n                                                                                                                                                                        if <(letter (count) of (type)) = [!]> then\n                                                                                                                                                                            switch costume to (! v)\n                                                                                                                                                                        else\n                                                                                                                                                                            if <(letter (count) of (type)) = [?]> then\n                                                                                                                                                                                switch costume to (? v)\n                                                                                                                                                                            else\n                                                                                                                                                                                if <(letter (count) of (type)) = [\(]> then\n                                                                                                                                                                                    switch costume to (parentheses v)\n                                                                                                                                                                                else\n                                                                                                                                                                                    if <(letter (count) of (type)) = [\)]> then\n                                                                                                                                                                                        switch costume to (parentheses2 v)\n                                                                                                                                                                                    else\n                                                                                                                                                                                        if <(letter (count) of (type)) = [']> then\n                                                                                                                                                                                            switch costume to (' v)\n                                                                                                                                                                                        else\n                                                                                                                                                                                            if <(letter (count) of (type)) = [:]> then\n                                                                                                                                                                                                switch costume to (: v)\n                                                                                                                                                                                            else\n                                                                                                                                                                                                if <(letter (count) of (type)) = [;]> then\n                                                                                                                                                                                                    switch costume to (; v)\n                                                                                                                                                                                                end\n                                                                                                                                                                                            end\n                                                                                                                                                                                        end\n                                                                                                                                                                                    end\n                                                                                                                                                                                end\n                                                                                                                                                                            end\n                                                                                                                                                                        end\n                                                                                                                                                                    end\n                                                                                                                                                                end\n                                                                                                                                                            end\n                                                                                                                                                        end\n                                                                                                                                                    end\n                                                                                                                                                end\n                                                                                                                                            end\n                                                                                                                                        end\n                                                                                                                                    end\n                                                                                                                                end\n                                                                                                                            end\n                                                                                                                        end\n                                                                                                                    end\n                                                                                                                end\n                                                                                                            end\n                                                                                                        end\n                                                                                                    end\n                                                                                                end\n                                                                                            end\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [count v] by (1)\n    go to [front v] layer\n    go to [front v] layer\n    stamp\n    if <(level) = [1]> then\n        change x by (13)\n    else\n        change x by (17)\n    end\nend\nhide\n\nwhen flag clicked\nerase all\n\ndefine new line\nset x to (-223)\nchange y by (-20)\n\ndefine Reset\ngo to x: (-223) y: (155)\n\nwhen I receive [play v]\nset size to (75) %\nerase all\nReset\ntype [Hi! Welcome to Quarantine!]\nwait until <(level) = [2]>\nerase all\nReset\ntype [You can wall jump!]\nwait until <(level) = [3]>\nerase all\nReset\ntype [Quick! Get       the toilet]\nnew line\ntype [paper!]\nnew line\nwait until <(level) = [4]>\nerase all\nReset\ntype [   Jump over the spikes!]\nwait until <(level) = [5]>\nerase all\nReset\ntype [  jump...jump...jump...]\nwait until <(level) = [6]>\nerase all\nReset\ntype [This looks too easy!]\nnew line\nwait until <(level) = [7]>\nerase all\nReset\ntype [Get trolled :P]\nnew line\nwait until <(level) = [8]>\nerase all\nReset\ntype [Ooh! More toilet paper!]\nwait until <(level) = [9]>\nerase all\nReset\ntype [Why is there so much]\nnew line\ntype [toilet paper?]\nwait until <(level) = [10]>\nerase all\nwait until <(level) = [11]>\nerase all\nReset\ntype [Jump on the trampoline!]\nwait until <(level) = [12]>\nerase all\nReset\ntype [a Gap?]\nwait until <(level) = [13]>\nerase all\nReset\ntype [Watch out for the spikes!]\nwait until <(level) = [14]>\nset [time v] to (timer)\nerase all\nReset\ntype [    That's it for now!]\nnew line\ntype [    Hope you enjoyed!]\nnew line\nif <(Skipped?) = [13]> then\n    type [You skipped the whole game! ]\n    new line\n    type [         WHY?? xD]\nelse\n    type (join (join [You took ] (Time)) [ seconds to])\n    new line\n    type [          finish!]\nend\n\n@clouds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset size to (pick random (50) to (70)) %\nswitch costume to (pick random (1) to (3))\nset [ghost v] effect to (pick random (30) to (45))\nset [cloud side v] to (pick random (1) to (2))\nif <(Cloud side) = [1]> then\n    go to x: (246) y: (pick random (178) to (0))\n    repeat until <(x position) < [-243]>\n        change x by ((0) - (pick random (0.5) to (2)))\n    end\nelse\n    go to x: (-246) y: (pick random (131) to (0))\n    repeat until <(x position) > [243]>\n        change x by (pick random (0.5) to (2))\n    end\nend\ndelete this clone\n\nwhen I receive [play v]\nforever\n    wait (pick random (2.5) to (5)) seconds\n    create clone of (_myself_ v)\nend\n\n@Decor\n\nwhen I receive [play v]\nshow\ngo to [back v] layer\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nhide\n\n@Collectables\n\nwhen flag clicked\nset [level v] to [1]\nhide\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\npoint in direction (90)\nhide\nclear graphic effects\ngo to [front v] layer\ngo to x: (0) y: (40)\nwait until <(level) = [3]>\nshow\nrepeat until <(level) = [4]>\n    set y to ((([sin v] of ((timer) * (100)) ) * (15)) - (-25))\n    if <touching (player v)?> then\n        set [spin v] to [0]\n        repeat (20)\n            change [spin v] by (3)\n            change [ghost v] effect by (5)\n            turn right (Spin) degrees\n        end\n    end\nend\nhide\nwait until <(level) = [8]>\nclear graphic effects\nshow\npoint in direction (90)\ngo to x: (100) y: (0)\nrepeat until <(level) = [9]>\n    set y to ((([sin v] of ((timer) * (100)) ) * (15)) - (-140))\n    if <touching (player v)?> then\n        set [spin v] to [0]\n        repeat (20)\n            change [spin v] by (3)\n            change [ghost v] effect by (5)\n            turn right (Spin) degrees\n        end\n    end\nend\nhide\nwait until <(level) = [9]>\nclear graphic effects\nshow\npoint in direction (90)\ngo to x: (170) y: (-90)\nrepeat until <(level) = [10]>\n    set y to ((([sin v] of ((timer) * (100)) ) * (6)) - (-140))\n    if <touching (player v)?> then\n        set [spin v] to [0]\n        repeat (20)\n            change [spin v] by (3)\n            change [ghost v] effect by (5)\n            turn right (Spin) degrees\n        end\n    end\nend\nhide\n\n@Collectables2\n\nwhen flag clicked\nset [level v] to [1]\nhide\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nhide\nwait until <(level) = [9]>\nclear graphic effects\nshow\npoint in direction (90)\ngo to x: (170) y: (130)\nrepeat until <(level) = [10]>\n    set y to ((([sin v] of ((timer) * (100)) ) * (6)) - (90))\n    if <touching (player v)?> then\n        set [spin v] to [0]\n        repeat (20)\n            change [spin v] by (3)\n            change [ghost v] effect by (5)\n            turn right (Spin) degrees\n        end\n    end\nend\nhide\n\n@Collectables3\n\nwhen flag clicked\nset [level v] to [1]\nhide\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nhide\nwait until <(level) = [9]>\nclear graphic effects\nshow\npoint in direction (90)\ngo to x: (170) y: (15)\nrepeat until <(level) = [10]>\n    set y to ((([sin v] of ((timer) * (100)) ) * (6)) - (-15))\n    if <touching (player v)?> then\n        set [spin v] to [0]\n        repeat (20)\n            change [spin v] by (3)\n            change [ghost v] effect by (5)\n            turn right (Spin) degrees\n        end\n    end\nend\nhide\n\n@Skip\n\nwhen flag clicked\nset [skipped? v] to [0]\nhide\n\nwhen I receive [play v]\ngo to x: (-200) y: (-160)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-10)\n        if <mouse down?> then\n            change [level v] by (1)\n            change [skipped? v] by (1)\n            broadcast (Retry v)\n            wait (0.8) seconds\n        end\n    else\n        clear graphic effects\n    end\nend\n\n@Retry\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\ngo to x: (-125) y: (-160)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-10)\n        if <mouse down?> then\n            broadcast (Retry v)\n            wait (0.2) seconds\n        end\n    else\n        clear graphic effects\n    end\nend\n\n@Trampolines\n\nwhen flag clicked\nset [level v] to [1]\nhide\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset size to (165) %\npoint in direction (90)\nhide\nclear graphic effects\ngo to [front v] layer\ngo to x: (0) y: (-115)\nwait until <(level) = [11]>\nshow\nrepeat until <(level) = [12]>\n    if <touching (player v)?> then\n        repeat (11)\n            next costume\n        end\n        switch costume to (trampoline1 v)\n    end\nend\nhide\n\nswitch costume to (trampoline1 v)\n\n@TB\n\nwhen flag clicked\nhide\n\n
Part 2 is out! https://scratch.mit.edu/projects/624411056/\nPart 3 is out! https://scratch.mit.edu/projects/625834167/\nPart 4: https://scratch.mit.edu/projects/627607932/\nPart 5: https://scratch.mit.edu/projects/630352670/\nWASD or arrow keys to move.\nIt is mobile friendly.\nAvoid spikes, lava and saws.\nTrampoline makes you bounce higher.\n50 loves for part 2.\nFollow me --@Tao196\n\n\nmy new game: https://scratch.mit.edu/projects/625653122/\n