Inspiration - A Platformer               #games
@Stage\n\nwhen stage clicked\nbroadcast (nxt v)\n\n@player\n\nwhen I start as a clone\nwait (0.15) seconds\nrepeat (5)\n    change [ghost v] effect by (30)\nend\n\nwhen I start as a clone\nif <(skin) = [1]> then\n    switch costume to (costume3 v)\nend\nif <(skin) = [2]> then\n    switch costume to (costume10 v)\nend\nif <(skin) = [3]> then\n    switch costume to (costume11 v)\nend\nif <(skin) = [4]> then\n    switch costume to (costume12 v)\nend\nset [ghost v] effect to (0)\nset size to (100) %\nrepeat (12)\n    change size by (-8)\nend\ndelete this clone\n\nswitch costume to (costume3 v)\n\nwhen flag clicked\nforever\n    set [playerx v] to (x position)\n    set [playery v] to (y position)\nend\n\nwhen flag clicked\nforever\n    set volume to (100) %\nend\n\nwhen flag clicked\nwait (9) seconds\nforever\n    create clone of (_myself_ v)\nend\n\ndefine platform (jump height) (gravity) (friction) (running speed)\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (playerx)>>>> then\n    change [xvelocity v] by ((running speed) * (1))\n    if <(skin) = [1]> then\n        switch costume to (costume1 v)\n    end\n    if <(skin) = [2]> then\n        switch costume to (costume4 v)\n    end\n    if <(skin) = [3]> then\n        switch costume to (costume5 v)\n    end\n    if <(skin) = [4]> then\n        switch costume to (costume6 v)\n    end\n    set size to (100) %\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (playerx)>>>> then\n    change [xvelocity v] by ((running speed) * (-1))\n    if <(skin) = [1]> then\n        switch costume to (costume2 v)\n    end\n    if <(skin) = [2]> then\n        switch costume to (costume7 v)\n    end\n    if <(skin) = [3]> then\n        switch costume to (costume8 v)\n    end\n    if <(skin) = [4]> then\n        switch costume to (costume9 v)\n    end\nend\nset [xvelocity v] to ((xvelocity) * (friction))\nchange x by (xvelocity)\nif <touching (level v)?> then\n    set [slope v] to [0]\n    repeat until <<(slope) = [8]> or <not <touching (level v)?>>>\n        change [slope v] by (1)\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by ((slope) * (-1))\n        repeat ([ceiling v] of ([abs v] of (xvelocity) ) )\n            if <touching (level v)?> then\n                change x by ((([abs v] of (xvelocity) ) / (xvelocity)) * (-1))\n            end\n        end\n        set [xvelocity v] to [0]\n    end\nend\nchange y by (yvelocity)\nif <touching (level v)?> then\n    repeat ([ceiling v] of ([abs v] of (yvelocity) ) )\n        if <touching (level v)?> then\n            change y by ((([abs v] of (yvelocity) ) / (yvelocity)) * (-1))\n        end\n    end\n    if <<(([abs v] of (yvelocity) ) / (yvelocity)) = [-1]> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<<mouse down?> and <(mouse y) > (playery)>> or <touching (jump pad v)?>>>>> then\n        set [yvelocity v] to (jump height)\n    else\n        set [yvelocity v] to [0]\n    end\nelse\n    change [yvelocity v] by (-1)\nend\n\nwhen flag clicked\ngo to x: (-202) y: (-40)\nset [xvelocity v] to [0]\nset [yvelocity v] to [0]\nforever\n    if <touching (jump pad v)?> then\n        platform [20] [-1] [0.7] [2.3]\n    else\n        platform [12] [-1] [0.7] [2.3]\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nforever\n    if <<touching (evil stuff v)?> or <<touching (le saw ppotato v)?> or <touching (le saw ppotato2 v)?>>> then\n        broadcast (respawn muahaha  v)\n    end\nend\n\nwhen I receive [respawn muahaha  v]\nset [coins v] to [0]\ngo to x: (-202) y: (-60)\n\nwhen flag clicked\nforever\n    if <<touching (goal v)?> and <(coins) = [3]>> then\n        broadcast (respawn muahaha  v)\n        broadcast (next level v)\n    end\nend\n\ndefine out\n\nwhen flag clicked\nforever\n    if <(xvelocity) > [0]> then\n        repeat until <not <touching color (#3bb700)?>>\n            change x by (-1)\n        end\n    else\n        if <(xvelocity) < [0]> then\n            repeat until <not <touching color (#3bb700)?>>\n                change x by (1)\n            end\n        end\n    end\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\n\nwhen flag clicked\nset [skin v] to [1]\n\nwhen flag clicked\nforever\n    set size to (100) %\nend\n\nwhen flag clicked\nforever\n    if <touching (jump pad v)?> then\n        change y by (2)\n        if <touching (jump pad v)?> then\n            change y by (2)\n            if <touching (jump pad v)?> then\n                change y by (2)\n                if <touching (jump pad v)?> then\n                    change y by (2)\n                    if <touching (jump pad v)?> then\n                        change y by (2)\n                        if <touching (jump pad v)?> then\n                            change y by (2)\n                            if <touching (jump pad v)?> then\n                                change y by (2)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (lvl 17 18 21 water v)?> then\n        change y by (3)\n        if <touching (lvl 17 18 21 water v)?> then\n            change y by (3)\n            if <touching (lvl 17 18 21 water v)?> then\n                change y by (3)\n            end\n        end\n    end\nend\n\nwhen flag clicked\ngo [backward v] (6) layers\n\nwhen flag clicked\ngo [forward v] (3) layers\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@2020_10_02_0k0_Kleki\n\nwhen flag clicked\ngo to [back v] layer\nset size to (110) %\nforever\n    go to x: ((playerx) / (40)) y: ((playery) / (40))\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@evil stuff\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    repeat (20)\n        change y by (0.5)\n    end\n    repeat (20)\n        change y by (-0.5)\n    end\nend\n\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    switch costume to (level #)\nend\n\ngo [forward v] (1) layers\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@2020_10_02_0kg_Kleki\n\nwhen flag clicked\ngo [backward v] (6) layers\nset size to (110) %\nforever\n    go to x: ((playerx) / (30)) y: ((playery) / (30))\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@2020_10_02_0lq_Kleki\n\nwhen flag clicked\ngo [backward v] (5) layers\nset size to (110) %\nforever\n    go to x: ((playerx) / (20)) y: ((playery) / (20))\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@Sprite1\n\nwhen flag clicked\nhide\nwait (10) seconds\nforever\n    create clone of (_myself_ v)\n    wait (0.03) seconds\nend\n\nwhen I start as a clone\ngo to [front v] layer\nhide\npoint in direction (pick random (0) to (360))\ngo to x: (pick random (-240) to (240)) y: (pick random (-50) to (-120))\nset size to (pick random (20) to (80)) %\nshow\nrepeat (pick random (40) to (80))\n    move (pick random (0.1) to (1)) steps\nend\ndelete this clone\n\nwhen I start as a clone\nset [ghost v] effect to (pick random (90) to (70))\nrepeat (10)\n    change [ghost v] effect by (2)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@Sprite2\n\nwhen flag clicked\nhide\nwait (9) seconds\nforever\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\nhide\npoint in direction (pick random (0) to (360))\ngo to x: (pick random (-240) to (240)) y: (pick random (-180) to (180))\nset size to (pick random (40) to (80)) %\nshow\nrepeat (pick random (12) to (16))\n    change size by (2)\nend\nrepeat (pick random (12) to (16))\n    change size by (-2)\nend\ndelete this clone\n\ndelete this clone\n\nwhen I start as a clone\nset [ghost v] effect to (pick random (90) to (70))\nrepeat (30)\n    change [ghost v] effect by (-3)\nend\nrepeat (10)\n    change [ghost v] effect by (9)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@goal\n\nwhen flag clicked\nshow\nset size to (100) %\ngo [forward v] (1) layers\nset size to (75) %\nset [brightness v] effect to (-20)\nset [ghost v] effect to (0)\npoint in direction (75)\nforever\n    repeat (30)\n        turn right (1) degrees\n    end\n    repeat (30)\n        turn left (1) degrees\n    end\nend\n\nwhen flag clicked\nset [coins v] to [0]\nforever\n    if <(coins) < [3]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I start as a clone\nwait (9) seconds\nshow\npoint in direction (90)\nset [ghost v] effect to (0)\nset [brightness v] effect to (0)\ngo to x: (212) y: (-85)\nforever\n    if <(level #) = [1]> then\n        go to x: (212) y: (-85)\n    end\n    if <(level #) = [4]> then\n        go to x: (212) y: (-40)\n    end\n    if <(level #) = [5]> then\n        go to x: (220) y: (-40)\n    end\n    if <(level #) = [6]> then\n        go to x: (220) y: (-70)\n    end\n    if <(level #) = [7]> then\n        go to x: (220) y: (100)\n    end\n    if <(level #) = [8]> then\n        go to x: (212) y: (-85)\n    end\n    if <(level #) = [11]> then\n        go to x: (220) y: (70)\n    end\n    if <(level #) = [12]> then\n        go to x: (220) y: (-85)\n    end\n    if <(level #) = [13]> then\n        go to x: (220) y: (70)\n    end\n    if <(level #) = [14]> then\n        go to x: (220) y: (-85)\n    end\n    if <(level #) = [15]> then\n        go to x: (220) y: (-30)\n    end\n    if <(level #) = [17]> then\n        go to x: (220) y: (-85)\n    end\n    if <(level #) = [21]> then\n        hide\n    end\nend\n\nforever\n\nwhen flag clicked\nforever\n    if <(level #) = [1]> then\n        go to x: (212) y: (-85)\n    end\n    if <(level #) = [4]> then\n        go to x: (212) y: (-40)\n    end\n    if <(level #) = [5]> then\n        go to x: (220) y: (-40)\n    end\n    if <(level #) = [6]> then\n        go to x: (220) y: (-70)\n    end\n    if <(level #) = [7]> then\n        go to x: (220) y: (100)\n    end\n    if <(level #) = [8]> then\n        go to x: (212) y: (-85)\n    end\n    if <(level #) = [11]> then\n        go to x: (220) y: (70)\n    end\n    if <(level #) = [12]> then\n        go to x: (220) y: (-85)\n    end\n    if <(level #) = [13]> then\n        go to x: (220) y: (70)\n    end\n    if <(level #) = [14]> then\n        go to x: (220) y: (-85)\n    end\n    if <(level #) = [15]> then\n        go to x: (220) y: (-30)\n    end\n    if <(level #) = [17]> then\n        go to x: (220) y: (-85)\n    end\n    if <(level #) = [21]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(coins) < [3]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nwait (9) seconds\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@SKIN SELECTOR\n\nwhen I receive [hi derr v]\nrepeat until <(idk) = [1]>\n    repeat (10)\n        change size by (0.5)\n    end\n    repeat (10)\n        change size by (-0.5)\n    end\nend\n\nif <<mouse down?> and <touching (mouse-pointer v)?>> then\n\nwhen this sprite clicked\nif <(costume [number v]) = [2]> then\n    broadcast (hi derr v)\n    set [idk v] to [0]\n    repeat (9)\n        change [yyyyyyyyyyyyyy v] by (1)\n        change y by (yyyyyyyyyyyyyy)\n    end\n    switch costume to (costume1 v)\n    set size to (100) %\n    go to x: (177) y: (150)\n    broadcast (byee :\( v)\nend\n\nwhen this sprite clicked\nset [y v] to [0]\nwait until <not <mouse down?>>\nif <(costume [number v]) = [1]> then\n    broadcast (hi v)\n    switch costume to (costume2 v)\n    set [yyyyyyyyyyyyyy v] to [0]\n    set [idk v] to [1]\n    go to x: (-5) y: (210)\n    set size to (200) %\n    go to [front v] layer\n    repeat (15)\n        change [yyyyyyyyyyyyyy v] by (-1)\n        change y by (yyyyyyyyyyyyyy)\n    end\n    set [yyyyyyyyyyyyyy v] to [10]\n    wait (1) seconds\nend\n\nwhen flag clicked\nset [idk v] to [0]\nswitch costume to (costume1 v)\nbroadcast (hi derr v)\nshow\ngo to x: (177) y: (150)\npoint in direction (90)\nset size to (100) %\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen flag clicked\nwait (9) seconds\nforever\n    if <touching (player v)?> then\n        set [ghost v] effect to (35)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@Sprite3\n\nwhen flag clicked\nhide\nwait (9) seconds\nforever\n    create clone of (_myself_ v)\n    wait (20) seconds\nend\n\nwhen I start as a clone\ngo [backward v] (3) layers\nshow\ngo to x: (-324) y: (pick random (85) to (170))\nset [ghost v] effect to (65)\nrepeat (1200)\n    change x by (0.5)\nend\ndelete this clone\n\n@Sprite4\n\nwhen flag clicked\nhide\nwait (9) seconds\nforever\n    create clone of (_myself_ v)\n    wait (18) seconds\nend\n\nwhen I start as a clone\ngo [backward v] (3) layers\nshow\ngo to x: (324) y: (pick random (85) to (170))\nset [ghost v] effect to (65)\nrepeat (1200)\n    change x by (-0.5)\nend\ndelete this clone\n\n@cooltext-357180023871607\n\nwhen this sprite clicked\nif <<(skips) < [3]> and <not <(level #) = [21]>>> then\n    broadcast (next level v)\n    broadcast (respawn muahaha  v)\n    change [skips v] by (1)\nend\n\nwhen flag clicked\nset [skips v] to [0]\nshow\n\nforever\n    if <(level #) = [21]> then\n        hide\n    end\nend\n\ngo to [front v] layer\n\nwhen flag clicked\nset [ghost v] effect to (0)\nswitch costume to (cooltext-357180023871607 v)\nforever\n    if <<(skips) = [3]> or <(level #) = [21]>> then\n        switch costume to (cooltext-2 v)\n    end\nend\n\ngo [forward v] (11) layers\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nshow\ngo to x: (50) y: (150)\npoint in direction (90)\nset size to (100) %\nforever\n    repeat (10)\n        change size by (0.5)\n    end\n    repeat (10)\n        change size by (-0.5)\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen flag clicked\nwait (9) seconds\nforever\n    if <touching (player v)?> then\n        set [ghost v] effect to (35)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@Sprite5\n\nwhen this sprite clicked\nset [skin v] to [1]\n\nwhen I receive [hi derr v]\nset [idk v] to [0]\nrepeat (9)\n    change [yyyyyyyyyyyyyy v] by (1)\n    change y by (yyyyyyyyyyyyyy)\nend\nswitch costume to (costume1 v)\nset size to (100) %\ngo to x: (177) y: (150)\nhide\n\nwhen I receive [hi v]\nset [y v] to [0]\nwait until <not <mouse down?>>\nif <(costume [number v]) = [1]> then\n    show\n    switch costume to (costume2 v)\n    set [yyyyyyyyyyyyyy v] to [0]\n    set [idk v] to [1]\n    go to x: (-5) y: (210)\n    set size to (200) %\n    go to [front v] layer\n    repeat (15)\n        change [yyyyyyyyyyyyyy v] by (-1)\n        change y by (yyyyyyyyyyyyyy)\n    end\n    set [yyyyyyyyyyyyyy v] to [10]\n    wait (1) seconds\nend\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\n\nwhen this sprite clicked\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nwhen I receive [hi v]\nset [y v] to [0]\nwait until <not <mouse down?>>\nif <(costume [number v]) = [1]> then\n    show\n    switch costume to (costume2 v)\n    set [yyyyyyyyyyyyyy v] to [0]\n    set [idk v] to [1]\n    go to x: (-5) y: (210)\n    set size to (200) %\n    go to [front v] layer\n    repeat (15)\n        change [yyyyyyyyyyyyyy v] by (-1)\n        change y by (yyyyyyyyyyyyyy)\n    end\n    set [yyyyyyyyyyyyyy v] to [10]\n    wait (1) seconds\nend\n\nwhen I receive [hi derr v]\nset [idk v] to [0]\nrepeat (9)\n    change [yyyyyyyyyyyyyy v] by (1)\n    change y by (yyyyyyyyyyyyyy)\nend\nswitch costume to (costume1 v)\nset size to (100) %\ngo to x: (177) y: (150)\nhide\n\nwhen this sprite clicked\nset [skin v] to [2]\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen I receive [hi v]\nset [y v] to [0]\nwait until <not <mouse down?>>\nif <(costume [number v]) = [1]> then\n    show\n    switch costume to (costume2 v)\n    set [yyyyyyyyyyyyyy v] to [0]\n    set [idk v] to [1]\n    go to x: (-5) y: (210)\n    set size to (200) %\n    go to [front v] layer\n    repeat (15)\n        change [yyyyyyyyyyyyyy v] by (-1)\n        change y by (yyyyyyyyyyyyyy)\n    end\n    set [yyyyyyyyyyyyyy v] to [10]\n    wait (1) seconds\nend\n\nwhen I receive [hi derr v]\nset [idk v] to [0]\nrepeat (9)\n    change [yyyyyyyyyyyyyy v] by (1)\n    change y by (yyyyyyyyyyyyyy)\nend\nswitch costume to (costume1 v)\nset size to (100) %\ngo to x: (177) y: (150)\nhide\n\nwhen this sprite clicked\nset [skin v] to [4]\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite8\n\nwhen flag clicked\nhide\n\nwhen I receive [hi v]\nset [y v] to [0]\nwait until <not <mouse down?>>\nif <(costume [number v]) = [1]> then\n    show\n    switch costume to (costume2 v)\n    set [yyyyyyyyyyyyyy v] to [0]\n    set [idk v] to [1]\n    go to x: (-5) y: (210)\n    set size to (200) %\n    go to [front v] layer\n    repeat (15)\n        change [yyyyyyyyyyyyyy v] by (-1)\n        change y by (yyyyyyyyyyyyyy)\n    end\n    set [yyyyyyyyyyyyyy v] to [10]\n    wait (1) seconds\nend\n\nwhen I receive [hi derr v]\nset [idk v] to [0]\nrepeat (9)\n    change [yyyyyyyyyyyyyy v] by (1)\n    change y by (yyyyyyyyyyyyyy)\nend\nswitch costume to (costume1 v)\nset size to (100) %\ngo to x: (177) y: (150)\nhide\n\nwhen this sprite clicked\nset [skin v] to [3]\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@trees\n\nwhen flag clicked\ngo [backward v] (4) layers\nforever\n    go to x: ((playerx) / (10)) y: ((playery) / (10))\n    switch costume to (level #)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@Sprite10\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [y v] to [1.94]\nforever\n    repeat (16)\n        change [y v] by (-0.25)\n    end\n    repeat (16)\n        change [y v] by (0.25)\n    end\nend\n\nwhen flag clicked\nforever\n    change y by (y)\nend\n\nswitch backdrop to (backdrop2 v)\n\nwhen flag clicked\ngo [forward v] (10) layers\nforever\n    switch costume to (level #)\nend\n\ngo to [front v] layer\n\nset [ghost v] effect to (100)\n\nset [ghost v] effect to (0)\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        set [ghost v] effect to (35)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nhide\nwait (9) seconds\nshow\n\n@level\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (level #)\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    set [level # v] to (costume [number v])\nend\n\nwhen I receive [next level v]\nchange [level # v] by (1)\n\nwhen flag clicked\ngo [forward v] (3) layers\n\nforever\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@coin 1\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        play sound [Coin v] until done\n        repeat (20)\n            change size by (2)\n            change [ghost v] effect by (5)\n        end\n        hide\n        change [coins v] by (1)\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\nshow\nset size to (80) %\nset [ghost v] effect to (0)\nforever\n    change y by (y 2)\nend\n\nwhen I receive [next level v]\nset [coins v] to [0]\nshow\nset [ghost v] effect to (0)\nset size to (80) %\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nfloat uwu\n\nwhen flag clicked\nif <(level #) = [1]> then\n    go to x: (-100) y: (-85)\nend\n\nif <(level #) = [1]> then\n\nwhen flag clicked\nforever\n    if <(level #) = [1]> then\n        go to x: (-100) y: (-80)\n    end\n    if <(level #) = [2]> then\n        go to x: (-120) y: (-80)\n    end\n    if <(level #) = [3]> then\n        go to x: (-150) y: (-80)\n    end\n    if <(level #) = [4]> then\n        go to x: (-150) y: (-80)\n    end\n    if <(level #) = [5]> then\n        go to x: (-75) y: (-25)\n    end\n    if <(level #) = [6]> then\n        go to x: (-198) y: (10)\n    end\n    if <(level #) = [7]> then\n        go to x: (-144) y: (-77)\n    end\n    if <(level #) = [8]> then\n        go to x: (-91) y: (-104)\n    end\n    if <(level #) = [9]> then\n        go to x: (-150) y: (-74)\n    end\n    if <(level #) = [10]> then\n        go to x: (-118) y: (-61)\n    end\n    if <(level #) = [11]> then\n        go to x: (-85) y: (-29)\n    end\n    if <(level #) = [12]> then\n        go to x: (-53) y: (-93)\n    end\n    if <(level #) = [13]> then\n        go to x: (-112) y: (20)\n    end\n    if <(level #) = [14]> then\n        go to x: (-148) y: (45)\n    end\n    if <(level #) = [15]> then\n        go to x: (-92) y: (91)\n    end\n    if <(level #) = [16]> then\n        go to x: (-147) y: (-19)\n    end\n    if <(level #) = [17]> then\n        go to x: (-39) y: (-70)\n    end\n    if <(level #) = [18]> then\n        go to x: (-207) y: (127)\n    end\n    if <(level #) = [19]> then\n        go to x: (-112) y: (-34)\n    end\n    if <(level #) = [20]> then\n        go to x: (-91) y: (-9)\n    end\n    if <(level #) = [21]> then\n        hide\n    end\n    forever\nend\n\nwhen flag clicked\nset [y 2 v] to [1.94]\nforever\n    repeat (20)\n        change [y 2 v] by (-0.2)\n    end\n    repeat (20)\n        change [y 2 v] by (0.2)\n    end\nend\n\nforever\n\ndefine float uwu\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    hide\nend\n\n@2020_10_20_0h3_Kleki (1)\n\n@coin 2\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen flag clicked\nif <(level #) = [1]> then\n    go to x: (-100) y: (-85)\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        play sound [Coin v] until done\n        repeat (20)\n            change size by (2)\n            change [ghost v] effect by (5)\n        end\n        hide\n        change [coins v] by (1)\n    end\nend\n\nwhen flag clicked\nshow\nset size to (80) %\nset [ghost v] effect to (0)\nforever\n    change y by (yyyyyyyyyyyy)\nend\n\nwhen I receive [next level v]\nset [coins v] to [0]\nshow\nset [ghost v] effect to (0)\nset size to (80) %\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nif <(level #) = [1]> then\n    go to x: (0) y: (-80)\nend\nif <(level #) = [2]> then\n    go to x: (-30) y: (-80)\nend\nif <(level #) = [3]> then\n    go to x: (-50) y: (-80)\nend\nif <(level #) = [4]> then\n    go to x: (26) y: (43)\nend\nif <(level #) = [5]> then\n    go to x: (35) y: (-58)\nend\nif <(level #) = [6]> then\n    go to x: (-15) y: (-13)\nend\nif <(level #) = [7]> then\n    go to x: (9) y: (-2)\nend\nif <(level #) = [8]> then\n    go to x: (68) y: (85)\nend\nif <(level #) = [9]> then\n    go to x: (-51) y: (77)\nend\nif <(level #) = [10]> then\n    go to x: (22) y: (-33)\nend\nif <(level #) = [11]> then\n    go to x: (37) y: (33)\nend\nif <(level #) = [12]> then\n    go to x: (65) y: (44)\nend\nif <(level #) = [13]> then\n    go to x: (-61) y: (134)\nend\nif <(level #) = [14]> then\n    go to x: (-51) y: (148)\nend\nif <(level #) = [15]> then\n    go to x: (-74) y: (-101)\nend\nif <(level #) = [16]> then\n    go to x: (122) y: (85)\nend\nif <(level #) = [17]> then\n    go to x: (8) y: (70)\nend\nif <(level #) = [18]> then\n    go to x: (28) y: (-77)\nend\nif <(level #) = [19]> then\n    go to x: (-2) y: (-34)\nend\nif <(level #) = [20]> then\n    go to x: (85) y: (-102)\nend\nif <(level #) = [21]> then\n    hide\nend\n\nwhen flag clicked\nset [yyyyyyyyyyyy v] to [1.95]\nforever\n    repeat (20)\n        change [yyyyyyyyyyyy v] by (-0.2)\n    end\n    repeat (20)\n        change [yyyyyyyyyyyy v] by (0.2)\n    end\nend\n\nwhen I receive [respawn muahaha  v]\nshow\nset [ghost v] effect to (0)\nset size to (80) %\n\nif <(level #) = [1]> then\n\nwhen flag clicked\nset [y 2 v] to [1.95]\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    hide\nend\n\n@coin 3\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen flag clicked\nif <(level #) = [1]> then\n    go to x: (-100) y: (-85)\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        play sound [Coin v] until done\n        repeat (20)\n            change size by (2)\n            change [ghost v] effect by (5)\n        end\n        hide\n        change [coins v] by (1)\n    end\nend\n\nwhen flag clicked\nshow\nset size to (80) %\nset [ghost v] effect to (0)\nforever\n    change y by (yyyy)\nend\n\nwhen I receive [next level v]\nset [coins v] to [0]\nshow\nset [ghost v] effect to (0)\nset size to (80) %\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nforever\n    if <(level #) = [1]> then\n    if <(level #) = [2]> then\n        forever\n            repeat (20)\n                change [y 2 v] by (-0.2)\n            end\n            repeat (20)\n                change [y 2 v] by (0.2)\n            end\n        end\n    end\n    if <(level #) = [3]> then\n        forever\n            repeat (20)\n                change [y 2 v] by (-0.2)\n            end\n            repeat (20)\n                change [y 2 v] by (0.2)\n            end\n        end\n    end\n    if <(level #) = [4]> then\n        forever\n            repeat (20)\n                change [y 2 v] by (-0.2)\n            end\n            repeat (20)\n                change [y 2 v] by (0.2)\n            end\n        end\n    end\n    if <(level #) = [5]> then\n        forever\n            repeat (20)\n                change [y 2 v] by (-0.2)\n            end\n            repeat (20)\n                change [y 2 v] by (0.2)\n            end\n        end\n    end\n    if <(level #) = [6]> then\n        forever\n            repeat (20)\n                change [y 2 v] by (-0.2)\n            end\n            repeat (20)\n                change [y 2 v] by (0.2)\n            end\n        end\n    end\n    if <(level #) = [7]> then\n        forever\n            repeat (20)\n                change [y 2 v] by (-0.2)\n            end\n            repeat (20)\n                change [y 2 v] by (0.2)\n            end\n        end\n    end\n    if <(level #) = [8]> then\n        forever\n            repeat (20)\n                change [y 2 v] by (-0.2)\n            end\n            repeat (20)\n                change [y 2 v] by (0.2)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nif <(level #) = [1]> then\n    go to x: (100) y: (-80)\nend\nif <(level #) = [2]> then\n    go to x: (100) y: (-80)\nend\nif <(level #) = [3]> then\n    go to x: (100) y: (-80)\nend\nif <(level #) = [4]> then\n    go to x: (166) y: (-24)\nend\nif <(level #) = [5]> then\n    go to x: (166) y: (-24)\nend\nif <(level #) = [6]> then\n    go to x: (140) y: (-36)\nend\nif <(level #) = [7]> then\n    go to x: (189) y: (108)\nend\nif <(level #) = [8]> then\n    go to x: (165) y: (-88)\nend\nif <(level #) = [9]> then\n    go to x: (55) y: (-99)\nend\nif <(level #) = [10]> then\n    go to x: (180) y: (-45)\nend\nif <(level #) = [11]> then\n    go to x: (-25) y: (74)\nend\nif <(level #) = [12]> then\n    go to x: (175) y: (54)\nend\nif <(level #) = [13]> then\n    go to x: (181) y: (107)\nend\nif <(level #) = [14]> then\n    go to x: (111) y: (-23)\nend\nif <(level #) = [15]> then\n    go to x: (81) y: (29)\nend\nif <(level #) = [16]> then\n    go to x: (-109) y: (160)\nend\nif <(level #) = [17]> then\n    go to x: (47) y: (-74)\nend\nif <(level #) = [18]> then\n    go to x: (126) y: (-63)\nend\nif <(level #) = [19]> then\n    go to x: (119) y: (-34)\nend\nif <(level #) = [20]> then\n    go to x: (112) y: (55)\nend\nif <(level #) = [21]> then\n    hide\nend\n\ndefine float uwu\nset [yyyy v] to [1.95]\nforever\n    repeat (20)\n        change [yyyy v] by (-0.2)\n    end\n    repeat (20)\n        change [yyyy v] by (0.2)\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [respawn muahaha  v]\nshow\nset [ghost v] effect to (0)\nset size to (80) %\n\nwhen flag clicked\nset [yyyy v] to [1.95]\nforever\n    repeat (20)\n        change [yyyy v] by (-0.2)\n    end\n    repeat (20)\n        change [yyyy v] by (0.2)\n    end\nend\n\nwhen flag clicked\nforever\n    hide\nend\n\n@Sprite9\n\nwhen flag clicked\nhide\n\nwhen I receive [hi v]\nshow\n\nwhen I receive [byee :\( v]\nhide\n\nwhen flag clicked\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (60)\n\nwhen flag clicked\ngo to [front v] layer\n\n@le saw ppotato\n\nwhen flag clicked\nforever\n    repeat (20)\n        turn right (5) degrees\n    end\nend\n\nrepeat (20)\n    turn left (5) degrees\nend\n\nwhen flag clicked\nshow\nforever\n    if <(level #) = [4]> then\n        go to x: (25) y: (-55)\n    end\n    if <(level #) = [7]> then\n        go to x: (220) y: (34)\n    end\n    if <(level #) = [9]> then\n        go to x: (8) y: (-195)\n    end\n    if <(level #) = [11]> then\n        go to x: (179) y: (26)\n    end\n    if <(level #) = [13]> then\n        go to x: (-115) y: (-104)\n    end\n    if <(level #) = [14]> then\n        go to x: (132) y: (140)\n    end\n    if <(level #) = [15]> then\n        go to x: (110) y: (-92)\n    end\n    if <(level #) = [18]> then\n        go to x: (-110) y: (161)\n    end\n    if <(level #) = [19]> then\n        go to x: (-116) y: (-135)\n    end\n    if <(level #) = [20]> then\n        go to x: (-88) y: (-178)\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (level #)\nend\n\ngo [backward v] (1) layers\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@lvl 17 18 21 water\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    repeat (10)\n        change y by (1)\n    end\n    repeat (10)\n        change y by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (level #)\nend\n\nwhen flag clicked\ngo [forward v] (2) layers\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (50)\n\n@cooltext-3\n\nwhen flag clicked\nwait (10) seconds\nforever\n    play sound [Vexento Tevo \[Xsongspk v] until done\nend\n\nwhen flag clicked\nshow\ngo to x: (-20) y: (150)\npoint in direction (90)\nset size to (100) %\nforever\n    repeat (10)\n        change size by (0.5)\n    end\n    repeat (10)\n        change size by (-0.5)\n    end\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    wait until <not <mouse down?>>\n    set volume to (0) %\n    switch costume to (cooltext-2 v)\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [2]> then\n    wait until <not <mouse down?>>\n    set volume to (100) %\n    switch costume to (cooltext-357180023871607 v)\nend\n\nwhen flag clicked\nset volume to (100) %\nswitch costume to (cooltext-357180023871607 v)\nset [skips v] to [0]\nshow\n\nforever\n    if <(level #) = [16]> then\n        hide\n    end\nend\n\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\nwhen flag clicked\nwait (9) seconds\nforever\n    if <touching (player v)?> then\n        set [ghost v] effect to (35)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@jump pad\n\nwhen flag clicked\nforever\n    switch costume to (level #)\nend\n\nwhen flag clicked\n\ngo to [front v] layer\n\n@Sprite11\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen I receive [respawn muahaha  v]\ngo to x: (2) y: (0)\nswitch costume to (costume1 v)\nrepeat (7)\n    change [ghost v] effect by (-13)\nend\nrepeat (7)\n    change [ghost v] effect by (13)\nend\n\nwhen I receive [next level v]\nset [ghost v] effect to (0)\nswitch costume to (costume2 v)\ngo to x: (2) y: (0)\nrepeat (20)\n    change y by (17.3)\nend\nset [ghost v] effect to (100)\n\nrepeat (20)\n    change y by (-17.3)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\nwait (9) seconds\nshow\n\n@le saw ppotato2\n\nwhen flag clicked\nforever\n    repeat (20)\n        turn right (5) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level #) = [19]> then\n        go to x: (122) y: (-136)\n    end\nend\n\nwhen flag clicked\ngo [backward v] (5) layers\nforever\n    switch costume to (level #)\nend\n\n@Sprite12\n\n@coin 4\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [coins v] by (1)\n        play sound [Coin v] until done\n        repeat (20)\n            change size by (2)\n            change [ghost v] effect by (5)\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nset size to (80) %\nset [ghost v] effect to (0)\nforever\n    change y by (yyyy)\nend\n\nwhen I receive [next level v]\nset [coins v] to [0]\nshow\nset [ghost v] effect to (0)\nset size to (80) %\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nforever\n    if <(level #) = [1]> then\n        go to x: (100) y: (-80)\n    end\n    if <(level #) = [2]> then\n        go to x: (100) y: (-80)\n    end\n    if <(level #) = [3]> then\n        go to x: (100) y: (-80)\n    end\n    if <(level #) = [4]> then\n        go to x: (166) y: (-24)\n    end\n    if <(level #) = [5]> then\n        go to x: (166) y: (-24)\n    end\n    if <(level #) = [6]> then\n        go to x: (140) y: (-36)\n    end\n    if <(level #) = [7]> then\n        go to x: (189) y: (108)\n    end\n    if <(level #) = [8]> then\n        go to x: (165) y: (-88)\n    end\n    if <(level #) = [9]> then\n        go to x: (55) y: (-99)\n    end\n    if <(level #) = [10]> then\n        go to x: (120) y: (-45)\n    end\n    if <(level #) = [11]> then\n        go to x: (-25) y: (74)\n    end\n    if <(level #) = [12]> then\n        go to x: (175) y: (54)\n    end\n    if <(level #) = [13]> then\n        go to x: (181) y: (107)\n    end\n    if <(level #) = [14]> then\n        go to x: (111) y: (-23)\n    end\n    if <(level #) = [15]> then\n        go to x: (81) y: (29)\n    end\n    if <(level #) = [16]> then\n        go to x: (-109) y: (160)\n    end\n    if <(level #) = [17]> then\n        go to x: (47) y: (-74)\n    end\n    if <(level #) = [18]> then\n        go to x: (126) y: (-63)\n    end\n    if <(level #) = [19]> then\n        go to x: (119) y: (-34)\n    end\n    if <(level #) = [20]> then\n        go to x: (112) y: (55)\n    end\n    if <(level #) = [21]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [respawn muahaha  v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nshow\nset size to (80) %\nwait (0.5) seconds\nshow\nset [ghost v] effect to (0)\nset size to (80) %\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n@coin 5\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [coins v] by (1)\n        play sound [Coin v] until done\n        repeat (20)\n            change size by (2)\n            change [ghost v] effect by (5)\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nset size to (80) %\nset [ghost v] effect to (0)\n\nwhen I receive [next level v]\nset [coins v] to [0]\nshow\nset [ghost v] effect to (0)\nset size to (80) %\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nforever\n    if <(level #) = [1]> then\n        go to x: (0) y: (-80)\n    end\n    if <(level #) = [2]> then\n        go to x: (-30) y: (-80)\n    end\n    if <(level #) = [3]> then\n        go to x: (-50) y: (-80)\n    end\n    if <(level #) = [4]> then\n        go to x: (26) y: (43)\n    end\n    if <(level #) = [5]> then\n        go to x: (35) y: (-58)\n    end\n    if <(level #) = [6]> then\n        go to x: (20) y: (-13)\n    end\n    if <(level #) = [7]> then\n        go to x: (9) y: (-2)\n    end\n    if <(level #) = [8]> then\n        go to x: (68) y: (85)\n    end\n    if <(level #) = [9]> then\n        go to x: (-51) y: (77)\n    end\n    if <(level #) = [10]> then\n        go to x: (22) y: (-33)\n    end\n    if <(level #) = [11]> then\n        go to x: (37) y: (33)\n    end\n    if <(level #) = [12]> then\n        go to x: (65) y: (44)\n    end\n    if <(level #) = [13]> then\n        go to x: (-61) y: (134)\n    end\n    if <(level #) = [14]> then\n        go to x: (-51) y: (148)\n    end\n    if <(level #) = [15]> then\n        go to x: (-74) y: (-101)\n    end\n    if <(level #) = [16]> then\n        go to x: (122) y: (85)\n    end\n    if <(level #) = [17]> then\n        go to x: (8) y: (70)\n    end\n    if <(level #) = [18]> then\n        go to x: (28) y: (-77)\n    end\n    if <(level #) = [19]> then\n        go to x: (-2) y: (-34)\n    end\n    if <(level #) = [20]> then\n        go to x: (85) y: (-102)\n    end\n    if <(level #) = [21]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\nwhen I receive [respawn muahaha  v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nshow\nset size to (80) %\nwait (0.5) seconds\nshow\nset [ghost v] effect to (0)\nset size to (80) %\n\n@coin 6\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [coins v] by (1)\n        play sound [Coin v] until done\n        repeat (20)\n            change size by (2)\n            change [ghost v] effect by (5)\n        end\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nset size to (80) %\nset [ghost v] effect to (0)\n\nwhen I receive [next level v]\nset [coins v] to [0]\nshow\nset [ghost v] effect to (0)\nset size to (80) %\n\nwhen flag clicked\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nforever\n    if <(level #) = [1]> then\n        go to x: (-100) y: (-80)\n    end\n    if <(level #) = [2]> then\n        go to x: (-120) y: (-80)\n    end\n    if <(level #) = [3]> then\n        go to x: (-150) y: (-80)\n    end\n    if <(level #) = [4]> then\n        go to x: (-150) y: (43)\n    end\n    if <(level #) = [5]> then\n        go to x: (-75) y: (-25)\n    end\n    if <(level #) = [6]> then\n        go to x: (-198) y: (10)\n    end\n    if <(level #) = [7]> then\n        go to x: (-144) y: (-77)\n    end\n    if <(level #) = [8]> then\n        go to x: (-91) y: (-104)\n    end\n    if <(level #) = [9]> then\n        go to x: (-150) y: (0)\n    end\n    if <(level #) = [10]> then\n        go to x: (-118) y: (-61)\n    end\n    if <(level #) = [11]> then\n        go to x: (-85) y: (-29)\n    end\n    if <(level #) = [12]> then\n        go to x: (-53) y: (-80)\n    end\n    if <(level #) = [13]> then\n        go to x: (-112) y: (20)\n    end\n    if <(level #) = [14]> then\n        go to x: (-148) y: (45)\n    end\n    if <(level #) = [15]> then\n        go to x: (-92) y: (91)\n    end\n    if <(level #) = [16]> then\n        go to x: (-147) y: (-19)\n    end\n    if <(level #) = [17]> then\n        go to x: (-39) y: (-70)\n    end\n    if <(level #) = [18]> then\n        go to x: (-207) y: (127)\n    end\n    if <(level #) = [19]> then\n        go to x: (-112) y: (-34)\n    end\n    if <(level #) = [20]> then\n        go to x: (-91) y: (-9)\n    end\n    if <(level #) = [21]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\nwhen I receive [respawn muahaha  v]\nwait (0.1) seconds\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nshow\nset size to (80) %\nwait (0.5) seconds\nshow\nset [ghost v] effect to (0)\nset size to (80) %\n\n@Intro\n\nwhen flag clicked\nswitch costume to (background \[pen\] v)\nshow\ngo to [back v] layer\ngo to [back v] layer\ngo to x: (-235) y: (-200)\nclear sound effects\nstart sound [Plugged v]\nset [id v] to [0]\nset [count v] to [0]\nhide variable [id v]\nhide variable [count v]\nDraw background\nset [id v] to [1]\ncreate clone of (_myself_ v)\nset [id v] to [2]\ncreate clone of (_myself_ v)\nforever\n    set [id v] to [3]\n    create clone of (_myself_ v)\n    change [count v] by (1)\n    if <(Count) = [135]> then\n        set [id v] to [4]\n        create clone of (_myself_ v)\n    end\n    if <(Count) = [235]> then\n        set [id v] to [5]\n        create clone of (_myself_ v)\n    end\n    if <(Count) = [280]> then\n        broadcast (Intro: Delete all clones v)\n    end\nend\n\ndefine Draw background\nerase all\npen up\nset pen color to (#29c8ec)\nset pen size to (10)\npen down\nrepeat (20)\n    change y by (10)\n    change x by (-500)\n    change pen (brightness v) by (-2)\n    change y by (10)\n    change x by (500)\n    change pen (brightness v) by (-2)\nend\npen up\ngo to x: (-235) y: (-175)\nset pen size to (20)\nset pen color to (#2ac7ef)\npen down\nchange x by (500)\npen up\n\nwhen I start as a clone\nif <(id) = [1]> then\n    switch costume to (logo v)\n    go to x: (0) y: (0)\n    point in direction (60)\n    set size to (10) %\n    show\n    repeat (6)\n        turn right (5) degrees\n        change size by (16)\n    end\n    repeat (3)\n        change size by (-3)\n        clear graphic effects\n    end\n    repeat (3)\n        change size by (2)\n    end\n    repeat (3)\n        change size by (-2)\n    end\n    repeat (3)\n        change size by (1)\n    end\n    forever\n        point in direction ((([tan v] of ((150) * (timer)) ) * (5)) + (90))\n        change y by (([sin v] of ((200) * (timer)) ) * (5))\n    end\nelse\n    if <(id) = [2]> then\n        switch costume to (lines v)\n        go to x: (300) y: (0)\n        repeat until <(x position) < [-255]>\n            go to [back v] layer\n            set [ghost v] effect to (15)\n            change x by (-4)\n            if <(x position) = [240]> then\n                set [id v] to [2]\n                create clone of (_myself_ v)\n            end\n        end\n        delete this clone\n    else\n        if <(id) = [3]> then\n            switch costume to (particles v)\n            go to x: (0) y: (0)\n            go to [back v] layer\n            point in direction (pick random (0) to (360))\n            set size to (pick random (40) to (65)) %\n            set [color v] effect to (0)\n            set [ghost v] effect to (pick random (30) to (60))\n            go to [back v] layer\n            show\n            repeat (100)\n                change [ghost v] effect by (1)\n                move (5) steps\n                if <touching (_edge_ v)?> then\n                    delete this clone\n                end\n            end\n            delete this clone\n        else\n            if <(id) = [4]> then\n                go to [front v] layer\n                switch costume to (tornadoyay1 v)\n                go to [front v] layer\n                set size to (100) %\n                set [ghost v] effect to (0)\n                go to [front v] layer\n                go to x: (0) y: (-180)\n                go to [front v] layer\n                point in direction (90)\n                go to [front v] layer\n                Smooth Glide to x: [0] y: [0] at speed [8]\n            else\n                if <(id) = [5]> then\n                    go to [front v] layer\n                    switch costume to (screen v)\n                    go to [front v] layer\n                    go to x: (0) y: (-400)\n                    point in direction (90)\n                    set [ghost v] effect to (0)\n                    set size to (100) %\n                    go to [front v] layer\n                    Smooth Glide to x: [0] y: [0] at speed [8]\n                end\n            end\n        end\n    end\nend\n\ndefine Smooth Glide to x: (x) y: (y) at speed (speed)\nrepeat until <<(x) = (x position)> and <(y) = (y position)>>\n    change x by (((x) - (x position)) / (speed))\n    change y by (((y) - (y position)) / (speed))\n    go to [front v] layer\nend\n\nwhen I receive [intro: delete all clones v]\nerase all\nstop [other scripts in sprite v]\ndelete this clone\n\n@Sprite13\n\nwhen flag clicked\nforever\n    switch costume to (level #)\nend\n\nwhen flag clicked\nhide\nwait (9) seconds\nforever\n    if <<(mouse y) > [120]> and <(mouse x) < [-180]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\n\n@Sprite14\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    show\n    go to [front v] layer\nend\n\n@level2\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (level #)\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\ngo [forward v] (1) layers\n\nforever\n\nwhen flag clicked\nset [ghost v] effect to (100)\nwait (9) seconds\nset [ghost v] effect to (0)\n\n