✦Adventure - A platformer~✦

Instructions: ✦✦✦PLEASE PRESS FLAG TWICE✦✦✦\nWON THE CONTEST :D\nYAY HIT 100 LOVES\n***I made this project for contests! since I like contests?(I am supposed to write this in credits but I don't want to) ***\n@TimMcCool loved it!\n@noodlebot743 loved it! \n✦Spent so much time working on it, so please Love, Fav, Follow~~~\n✦Instructions, credits in game!\n✦Songs mostly by BTS (instrumental)\n✦ If there are bugs please tell me!\n✦Full screen not recommended for slow computers\n\n\n-Yep thats right I released the same thing twice for two contests, so don't ask why >:) -

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    if <(level) = [7]> then\n        switch backdrop to (backdrop2 v)\n    end\nend\n\nwhen I receive [light v]\nswitch backdrop to (backdrop1 v)\n\n@Player\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\n    change [color v] effect by (25)\nend\ndelete this clone\n\nwhen I receive [start v]\nshow\nset [ghost v] effect to (0)\ngo to x: (-235) y: (0)\nset [level v] to [1]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (ground v)?> then\n        change y by (2)\n        if <touching (ground v)?> then\n            change y by (2)\n            if <touching (ground v)?> then\n                change y by (2)\n                if <touching (ground v)?> then\n                    change y by (2)\n                    if <touching (ground v)?> then\n                        change y by (2)\n                        if <touching (ground v)?> then\n                            change y by (-5)\n                            change x by ((Xv) * (-1))\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    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching (ground v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [yv v] to [15]\n    end\n    change y by (1)\n    if <touching (portal v)?> then\n        go to x: (-235) y: (0)\n        change [level v] by (1)\n        broadcast (next level v)\n    end\n    if <(y position) = [-179]> then\n        broadcast (ded v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-235) y: (0)\n        set [ghost v] effect to (0)\n    end\n    if <<touching (lava v)?> or <touching (spike v)?>> then\n        broadcast (ded v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-235) y: (0)\n        set [ghost v] effect to (0)\n    end\n    if <<touching (jump v)?> or <touching (jump2 v)?>> then\n        set [yv v] to [20]\n    end\n    create clone of (_myself_ v)\nend\n\nwhen I receive [start v]\nforever\n    if <touching (water v)?> then\n        if <key (down arrow v) pressed?> then\n            change [yv v] by (-10.5)\n        end\n        if <key (up arrow v) pressed?> then\n            change [yv v] by (10)\n        end\n        set [yv v] to ((Yv) * (0.6))\n        change [yv v] by (((Yv) / (15)) + (2))\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [restart v]\ngo to x: (-235) y: (0)\n\nwhen I receive [next level v]\ngo to x: (-235) y: (0)\n\nwhen flag clicked\nforever\n    if <(level) = [16]> then\n        broadcast (A little dark v) and wait\n        wait until <not <(level) = [16]>>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [12]> then\n        broadcast (semi dark v) and wait\n        wait until <not <(level) = [12]>>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [9]> then\n        broadcast (A little dark v) and wait\n        wait until <not <(level) = [9]>>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [14]> then\n        broadcast (dark v) and wait\n        wait until <not <(level) = [14]>>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [18]> then\n        broadcast (Light v) and wait\n        wait until <not <(level) = [18]>>\n    end\nend\n\n@Ground\n\nwhen flag clicked\nforever\n    if <<(level) = [0]> or <(level) = [22]>> then\n        hide\n    else\n        switch costume to (level)\n        show\n    end\nend\n\n@Cloud\n\nwhen flag clicked\nrepeat until <(level) > [5]>\n    create clone of (_myself_ v)\n    wait (pick random (4) to (6)) seconds\nend\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (5))\nset [x cloud v] to (pick random (-1) to (-3))\nset [ghost v] effect to (pick random (40) to (65))\nset size to (pick random (20) to (100)) %\nset y to (pick random (140) to (160))\nset x to (220)\nrepeat until <(x position) < [-200]>\n    change x by (x cloud)\nend\ndelete this clone\n\nwhen I receive [light v]\nforever\n    create clone of (_myself_ v)\n    wait (pick random (4) to (6)) seconds\nend\n\n@Water\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (level)\n    set [ghost v] effect to (60)\n    go to [back v] layer\n    set y to ((([sin v] of (((timer) + (me)) * (300)) ) * (8)) - ((me) * (10)))\nend\n\nwhen flag clicked\nforever\nend\n\nwhen I receive [start v]\nclear graphic effects\nhide\ngo to x: (0) y: (0)\nset [me v] to [1]\nrepeat (3)\n    create clone of (_myself_ v)\n    change y by (-5)\n    change [brightness v] effect by (-10)\n    change [me v] by (1)\nend\n\nwhen flag clicked\nhide\n\n@Spike\n\nwhen flag clicked\nforever\n    if <(level) = [0]> then\n        hide\n    else\n        switch costume to (level)\n        show\n    end\nend\n\n@Lava\n\nwhen flag clicked\nclear graphic effects\nhide\ngo to x: (0) y: (0)\nset [water: me v] to [1]\nrepeat (3)\n    create clone of (_myself_ v)\n    change y by (-5)\n    change [brightness v] effect by (-10)\n    change [water: me v] by (1)\nend\n\nwhen I start as a clone\nshow\nforever\n    set [ghost v] effect to (60)\n    go to [back v] layer\n    switch costume to (level)\n    set y to ((([sin v] of (((timer) + (Water: me)) * (300)) ) * (8)) - ((Water: me) * (10)))\nend\n\nwhen I start as a clone\nforever\n    if <(level) = [0]> then\n        switch costume to (costume1 v)\n    end\nend\n\n@Portal\n\nwhen I start as a clone\nshow\nforever\n    set [ghost v] effect to (50)\n    turn left (5) degrees\nend\n\nwhen I receive [position portal v]\nPosition (((level) mod (20)) + (0))\n\ndefine Position (level)\nif <(level) = [1]> then\n    go to x: (200) y: (-50)\nend\nif <(level) = [6]> then\n    go to x: (220) y: (-50)\nend\nif <(level) = [8]> then\n    go to x: (180) y: (-60)\nend\nif <(level) = [9]> then\n    go to x: (220) y: (-30)\nend\nif <(level) = [10]> then\n    go to x: (-200) y: (70)\nend\nif <(level) = [11]> then\n    go to x: (200) y: (-80)\nend\nif <(level) = [12]> then\n    go to x: (195) y: (42)\nend\nif <(level) = [14]> then\n    go to x: (-200) y: (100)\nend\nif <(level) = [15]> then\n    go to x: (200) y: (-110)\nend\nif <(level) = [18]> then\n    go to x: (200) y: (-50)\nend\n\nwhen I receive [skip intro v]\n\nwhen I receive [start v]\nshow\ncreate clone of (_myself_ v)\nforever\n    broadcast (Position Portal v)\n    turn right (5) degrees\n    set [ghost v] effect to (50)\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [22]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(level) = [22]> then\n        delete this clone\n    end\nend\n\n@Design\n\nwhen flag clicked\nforever\n    if <(level) = [0]> then\n        hide\n    else\n        switch costume to (level)\n        show\n    end\nend\n\n@Dead\n\ndefine Clone\nrepeat (6)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to (player v)\nset size to (10) %\nswitch costume to (particle_1 v)\nclear graphic effects\nshow\nset [y momentum v] to (pick random (5) to (10))\nset [side v] to (pick random (1) to (2))\nif <(Side) = [1]> then\n    set [x momentum v] to (pick random (-3) to (-1))\nelse\n    set [x momentum v] to (pick random (1) to (3))\nend\nrepeat (50)\n    change [ghost v] effect by (2)\n    change size by (-1)\n    change y by (Y Momentum)\n    change x by (X Momentum)\n    change [y momentum v] by (-0.5)\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [ded v]\nClone\n\nwhen flag clicked\nhide\n\n@Darkness\n\nwhen flag clicked\nhide\n\nwhen I receive [dark v]\nshow\nset [ghost v] effect to (5)\ngo to [front v] layer\ngo [backward v] (7) layers\nstop [this script v]\n\nwhen I receive [semi dark v]\nshow\nset [ghost v] effect to (10)\ngo to [front v] layer\ngo [backward v] (7) layers\nstop [this script v]\n\nwhen I receive [a little dark v]\nshow\nset [ghost v] effect to (20)\ngo to [front v] layer\ngo [backward v] (7) layers\nstop [this script v]\n\nwhen I receive [light v]\nhide\nstop [this script v]\n\nwhen I receive [start v]\nforever\n    go to (player v)\nend\n\nwhen this sprite clicked\nbroadcast (restart v)\n\n@Jump\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        switch costume to (costume1 v)\n        repeat (13)\n            next costume\n        end\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(level) = [1]> then\n        show\n        go to x: (3) y: (-82)\n    else\n        if <(level) = [11]> then\n            show\n            go to x: (-63) y: (-132)\n        else\n            if <(level) = [15]> then\n                show\n                go to x: (-63) y: (-132)\n            else\n                if <(level) = [20]> then\n                    show\n                    go to x: (-70) y: (-70)\n                else\n                    hide\n                end\n            end\n        end\n    end\nend\n\n@Light\n\nwhen I start as a clone\ngo to [back v] layer\npoint in direction (pick random (0) to (360))\ngo to (random position v)\nsize (pick random (50) to (200))\nswitch costume to (pick random (1) to (3))\n\ndefine size (zz)\nset size to (0) %\nset [ghost v] effect to (100)\nshow\nrepeat (30)\n    change size by (((zz) - (size)) / (5))\n    change [ghost v] effect by (-1)\nend\nwait (0.1) seconds\nrepeat (30)\n    change [ghost v] effect by (1)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\n\n@Light2\n\nwhen flag clicked\nhide\nset [ghost v] effect to (50)\n\nwhen I receive [a little dark v]\nshow\nforever\n    go to (portal v)\n    go to [front v] layer\nend\n\nwhen I receive [light v]\nhide\n\n@Skip\n\nwhen flag clicked\nforever\n    point in direction ((([sin v] of ((timer) * (300)) ) * (5)) + (90))\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to (0)\n    else\n        change size by (((70) - (size)) / (3))\n        set [ghost v] effect to (30)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nforever\n    go to [front v] layer\nend\n\nwhen this sprite clicked\nbroadcast (next level v)\nchange [level v] by (1)\n\nwhen I receive [end v]\nhide\n\n@Restart\n\nwhen flag clicked\nforever\n    point in direction ((([sin v] of ((timer) * (300)) ) * (5)) + (90))\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to (0)\n    else\n        change size by (((70) - (size)) / (3))\n        set [ghost v] effect to (30)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nforever\n    go to [front v] layer\n    go [backward v] (1) layers\nend\n\nwhen this sprite clicked\nbroadcast (restart v)\n\nwhen I receive [end v]\nhide\n\n@Title\n\nwhen flag clicked\nshow\nforever\n    set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (-30))\n    if <touching (mouse-pointer v)?> then\n        change size by (((130) - (size)) / (3))\n    else\n        change size by (((100) - (size)) / (3))\n    end\nend\n\nwhen I receive [start v]\nhide\nset [level v] to [1]\n\nwhen flag clicked\nset [level v] to [0]\n\nwhen I receive [start v]\nhide\n\n@B-Credit\n\nwhen flag clicked\nshow\nforever\n    set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (60))\n    if <touching (mouse-pointer v)?> then\n        change size by (((60) - (size)) / (3))\n        set [brightness v] effect to (-7)\n    else\n        change size by (((40) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen this sprite clicked\nbroadcast (credits v)\n\n@B-play\n\nwhen flag clicked\nshow\nforever\n    set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (60))\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        set [brightness v] effect to (-7)\n    else\n        change size by (((70) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (START v)\n\nwhen I receive [start v]\nhide\n\n@Music\n\nwhen flag clicked\nshow\nforever\n    set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (60))\n    if <touching (mouse-pointer v)?> then\n        change size by (((60) - (size)) / (3))\n        set [brightness v] effect to (-7)\n    else\n        change size by (((40) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen this sprite clicked\nbroadcast (Music select v)\n\n@1\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nhide\nset [music v] to [0]\nforever\n    set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (100))\n    if <touching (mouse-pointer v)?> then\n        change size by (((60) - (size)) / (3))\n        set [brightness v] effect to (-7)\n    else\n        change size by (((40) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [music select v]\nshow\n\nwhen this sprite clicked\nstop all sounds\nset [music v] to [1]\nrepeat until <not <(Music) = [1]>>\n    switch costume to (costume2 v)\n    play sound [BTS 'Fake Love 2019 MMA REMIX' \(Studio ver v] until done\nend\nswitch costume to (costume1 v)\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <not <(Music) = [1]>> then\n        switch costume to (costume1 v)\n    end\nend\n\n@2\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nhide\nforever\n    set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (100))\n    if <touching (mouse-pointer v)?> then\n        change size by (((60) - (size)) / (3))\n        set [brightness v] effect to (-7)\n    else\n        change size by (((40) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nset [music v] to [2]\n\nwhen this sprite clicked\nstop all sounds\nset [music v] to [2]\nrepeat until <not <(Music) = [2]>>\n    switch costume to (costume2 v)\n    play sound [JUNGKOOKSAVE ME MMA 2019 REMIX LONG VERSION + SURPRISE v] until done\nend\nswitch costume to (costume1 v)\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <not <(Music) = [2]>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [music select v]\nshow\n\nchange size by (((40) - (size)) / (3))\n\n@3\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nhide\nforever\n    set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (100))\n    if <touching (mouse-pointer v)?> then\n        change size by (((60) - (size)) / (3))\n        set [brightness v] effect to (-7)\n    else\n        change size by (((40) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nset [music v] to [3]\n\nwhen this sprite clicked\nstop all sounds\nset [music v] to [3]\nrepeat until <not <(Music) = [3]>>\n    switch costume to (costume2 v)\n    play sound [j-hope - Blue Side \(Outro\) \[ANIMATION\] v] until done\nend\nswitch costume to (costume1 v)\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <not <(Music) = [3]>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [music select v]\nshow\n\n@4\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nhide\nforever\n    set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (100))\n    if <touching (mouse-pointer v)?> then\n        change size by (((60) - (size)) / (3))\n        set [brightness v] effect to (-7)\n    else\n        change size by (((40) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nset [music v] to [5]\n\nwhen this sprite clicked\nstop all sounds\nset [music v] to [4]\nrepeat until <not <(Music) = [4]>>\n    switch costume to (costume2 v)\n    play sound [BTS &#39I Need U 2019 MMA REMIX&#39 \(Studio ver v] until done\nend\nswitch costume to (costume1 v)\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <not <(Music) = [4]>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [music select v]\nshow\n\n@5\n\nwhen flag clicked\nhide\nforever\n    set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (100))\n    if <touching (mouse-pointer v)?> then\n        change size by (((60) - (size)) / (3))\n        set [brightness v] effect to (-7)\n    else\n        change size by (((40) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [music select v]\nshow\n\nwhen this sprite clicked\nset [music v] to [5]\nstop all sounds\nswitch costume to (costume2 v)\n\nwhen flag clicked\nforever\n    if <not <(Music) = [5]>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [music select v]\nshow\n\n@Effects\n\ndefine Fumes (x) to (x2) With Y: (y)\nset y to (y)\nswitch costume to (pick random (1) to (3))\nset x to (pick random (x) to (x2))\nset size to (pick random (60) to (80)) %\nhide\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo [backward v] (5000) layers\nshow\nrepeat (20)\n    change [ghost v] effect by (5)\n    change y by (1)\n    change size by (-3)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\ndefine Mud(?) (x) To (x2) With (y)\nset y to (y)\nswitch costume to (pick random (4) to (6))\nset x to (pick random (x) to (x2))\nset size to (pick random (60) to (80)) %\nhide\ncreate clone of (_myself_ v)\n\ndefine Water(?) (x) to (x2) with (y)\nset y to (y)\nswitch costume to (pick random (7) to (9))\nset x to (pick random (x) to (x2))\nset size to (pick random (60) to (80)) %\nhide\ncreate clone of (_myself_ v)\n\ndefine Rock(?) (x) to (x2) with (y)\nset y to (y)\nswitch costume to (pick random (10) to (12))\nset x to (pick random (x) to (x2))\nset size to (pick random (60) to (80)) %\nhide\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset size to (50) %\nforever\n    if <(level) = [0]> then\n        Mud(?) [-240] To [240] With [-120]\n    else\n        if <(level) = [1]> then\n            Mud(?) [-240] To [-40] With [-70]\n            Mud(?) [40] To [166] With [-70]\n            bounce(?) [-40] to [40] With [-70]\n        else\n            if <(level) = [2]> then\n                Mud(?) [-200] To [-70] With [-70]\n                Mud(?) [90] To [200] With [-70]\n            else\n                if <(level) = [3]> then\n                    Mud(?) [-200] To [-60] With [-70]\n                    Mud(?) [70] To [200] With [-70]\n                    Fumes (-40) to (50) With Y: (-64)\n                else\n                    if <(level) = [4]> then\n                        Mud(?) [-240] To [-90] With [-70]\n                        Water(?) [-90] to [240] with [-80]\n                    else\n                        if <(level) = [5]> then\n                            Mud(?) [-240] To [-100] With [-70]\n                            Mud(?) [100] To [250] With [-70]\n                            Fumes (-100) to (100) With Y: (-80)\n                        else\n                            if <(level) = [6]> then\n                                Rock(?) [-230] to [230] with [-64]\n                            else\n                                if <(level) = [7]> then\n                                    Rock(?) [-230] to [230] with [-64]\n                                else\n                                    if <(level) = [8]> then\n                                        Rock(?) [-230] to [230] with [-130]\n                                    else\n                                        if <(level) = [18]> then\n                                            Mud(?) [-230] To [230] With [-70]\n                                        else\n                                            if <(level) = [19]> then\n                                                Mud(?) [-240] To [-180] With [-70]\n                                                Fumes (-170) to (-80) With Y: (-80)\n                                                Mud(?) [-80] To [60] With [-70]\n                                                Fumes (60) to (130) With Y: (-80)\n                                                Mud(?) [130] To [240] With [-70]\n                                            else\n                                                if <(level) = [20]> then\n                                                    Mud(?) [-240] To [-190] With [-70]\n                                                    Fumes (-190) to (-100) With Y: (-80)\n                                                    bounce(?) [-100] to [100] With [-65]\n                                                    Fumes (100) to (240) With Y: (-80)\n                                                else\n                                                    if <(level) = [21]> then\n                                                        Fumes (-200) to (240) With Y: (-80)\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\ndefine bounce(?) (x) to (x2) With (y)\nset y to (y)\nswitch costume to (pick random (13) to (15))\nset x to (pick random (x) to (x2))\nset size to (pick random (60) to (80)) %\nhide\ncreate clone of (_myself_ v)\n\n@Thumbnail\n\nwhen flag clicked\nswitch costume to (costume1 v)\nwait (1) seconds\nchange [yv v] by (-105)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    set [xv v] to ((xv) * (0.8))\n    set [yv v] to ((yv) * (0.8))\n    change x by (xv)\n    change y by (yv)\nend\n\nwhen flag clicked\nforever\n    if <(level) = [22]> then\n        broadcast (END v)\n        wait until <not <(level) = [22]>>\n    end\nend\n\nwhen I receive [end v]\nswitch costume to (costume3 v)\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\ngo to x: (0) y: (-10000)\nchange [yv v] by (90)\n\n@Sprite1\n\nwhen flag clicked\nhide\nforever\n    set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (120))\nend\n\nwhen I receive [start v]\nhide\n\nwhen I receive [credits v]\nshow\nset size to (1) %\nrepeat (12)\n    change size by (((100) - (size)) / (3))\nend\n\nwhen this sprite clicked\nrepeat (12)\n    change size by (((1) - (size)) / (3))\nend\nhide\n\n@Sprite2\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo [backward v] (20) layers\n\nwhen I receive [start v]\nhide\n\n@Skip2\n\nwhen flag clicked\nforever\n    point in direction ((([sin v] of ((timer) * (300)) ) * (5)) + (90))\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        set [ghost v] effect to (0)\n    else\n        change size by (((70) - (size)) / (3))\n        set [ghost v] effect to (30)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    go to [front v] layer\nend\n\nwhen this sprite clicked\nbroadcast (Light v)\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\nforever\n    if <(level) > [17]> then\n        hide\n    end\nend\n\nwhen I receive [a little dark v]\nshow\n\n@Sprite3\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (2) layers\nforever\n    if <(level) = [0]> then\n        hide\n    else\n        switch costume to (level)\n        show\n    end\nend\n\nwhen I receive [end v]\nhide\n\n@Jump2\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        switch costume to (costume1 v)\n        repeat (13)\n            next costume\n        end\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(level) = [20]> then\n        show\n        go to x: (40) y: (-70)\n    else\n        hide\n    end\nend\n\n@Sprite4\n\nwhen I receive [end v]\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (2) layers\nforever\n    if <(level) = [0]> then\n        hide\n    else\n        if <(level) = [1]> then\n            repeat until <not <(level) = [1]>>\n                show\n                switch costume to (costume7 v)\n                wait (0.08) seconds\n                switch costume to (costume1 v)\n                wait (0.08) seconds\n                switch costume to (costume3 v)\n                wait (0.08) seconds\n                switch costume to (costume9 v)\n                wait (0.08) seconds\n                switch costume to (costume4 v)\n                wait (0.08) seconds\n                switch costume to (costume10 v)\n                wait (0.08) seconds\n                switch costume to (costume2 v)\n                wait (0.08) seconds\n                switch costume to (costume11 v)\n                wait (0.08) seconds\n                switch costume to (costume5 v)\n                wait (0.08) seconds\n                switch costume to (costume12 v)\n                wait (0.08) seconds\n                switch costume to (costume6 v)\n                wait (0.08) seconds\n                switch costume to (costume13 v)\n                wait (0.08) seconds\n            end\n        end\n        if <(level) = [2]> then\n            repeat until <not <(level) = [2]>>\n                switch costume to (costume8 v)\n                wait (0.5) seconds\n                switch costume to (costume14 v)\n                wait (0.5) seconds\n            end\n        end\n        if <(level) = [3]> then\n            repeat until <not <(level) = [3]>>\n                switch costume to (costume16 v)\n                wait (0.07) seconds\n                switch costume to (costume17 v)\n                wait (0.07) seconds\n                switch costume to (costume18 v)\n                wait (0.07) seconds\n                switch costume to (costume19 v)\n                wait (0.07) seconds\n                switch costume to (costume15 v)\n                wait (0.07) seconds\n            end\n        end\n        if <(level) = [4]> then\n            repeat until <not <(level) = [4]>>\n                switch costume to (costume20 v)\n                wait (0.07) seconds\n                switch costume to (costume21 v)\n                wait (0.07) seconds\n                switch costume to (costume22 v)\n                wait (0.07) seconds\n                switch costume to (costume22 v)\n                wait (0.07) seconds\n                switch costume to (costume25 v)\n                wait (0.07) seconds\n                switch costume to (costume23 v)\n                wait (0.07) seconds\n                switch costume to (costume24 v)\n                wait (0.07) seconds\n            end\n        end\n        if <(level) = [5]> then\n            repeat until <not <(level) = [5]>>\n                switch costume to (costume26 v)\n            end\n        end\n        if <(level) = [6]> then\n            repeat until <not <(level) = [6]>>\n                switch costume to (costume27 v)\n            end\n        end\n        if <(level) > [6]> then\n            hide\n        end\n    end\nend\n\n@Sprite5\n\nwhen I receive [end v]\nshow\nforever\n    point in direction ((([sin v] of ((timer) * (300)) ) * (5)) + (90))\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\n\n@Title2\n\nwhen flag clicked\nshow\nforever\n    set y to ((([sin v] of ((timer) * (300)) ) * (8)) - (-100))\n    if <touching (mouse-pointer v)?> then\n        change size by (((130) - (size)) / (3))\n    else\n        change size by (((100) - (size)) / (3))\n    end\nend\n\nwhen I receive [start v]\nhide\nset [level v] to [1]\n\nwhen flag clicked\nset [level v] to [0]\n\nwhen I receive [start v]\nhide\n\n