- Platformer -  
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [playgame v]\nswitch backdrop to (backdrop2 v)\n\n@intro \n\ndefine float\nmove ((i) + (1)) steps\nset [i v] to ((i) * (0.9))\nchange x by (xv)\nset [xv v] to ((xv) * (0))\n\nwhen flag clicked\nreset timer\nstart sound [Inferno2 v]\npoint in direction (90)\nset rotation style [all around v]\nhide\ncreate clone [top slide]\ncreate clone [bottom slide]\nwait until <(timer) > [0]>\nclone [6] start id at [30]\nwait until <(timer) > [1.3]>\nclone [8] start id at [40]\nwait until <(timer) > [1.8]>\nclone [8] start id at [50]\nwait until <(timer) > [2.2]>\nclone [8] start id at [60]\nwait until <(timer) > [3.3]>\nshow\ngo to [front v] layer\ngo to x: (260) y: (0)\nswitch costume to (logo2 v)\nset [brightness v] effect to (-100)\nset size to (0) %\nset [i v] to [0]\nset [ii v] to [0]\npoint in direction (180)\nrepeat (25)\n    set [i v] to (((i) * (0.7)) + (((0) - (x position)) / (6)))\n    set [ii v] to (((ii) * (0.7)) + (((90) - (direction)) / (4)))\n    change size by (((150) - (size)) / (6))\n    turn right (ii) degrees\n    change x by (i)\nend\nwait until <(timer) > [4.2]>\nswitch costume to (logo2 v)\nset size to (300) %\nset [brightness v] effect to (100)\ncreate [10] lines\nbroadcast (p v)\nrepeat (10)\n    change [brightness v] effect by (-10)\n    set x to (([sin v] of ((timer) * (400)) ) * (60))\n    set y to ((([sin v] of ((timer) * (800)) ) * (40)) + (40))\n    point in direction ((([sin v] of ((timer) * (400)) ) * (15)) + (90))\n    change size by (((125) - (size)) / (10))\nend\nrepeat until <(timer) > [7.7]>\n    set x to (([sin v] of ((timer) * (400)) ) * (60))\n    set y to ((([sin v] of ((timer) * (800)) ) * (40)) + (40))\n    point in direction ((([sin v] of ((timer) * (400)) ) * (15)) + (90))\n    change size by (((125) - (size)) / (10))\nend\ncreate [12] lines\nset size to (250) %\nswitch costume to (name2 v)\nhide\nclone [5] start id at [20]\nwait until <(timer) > [8.3]>\nrepeat until <(timer) > [11.5]>\n    point in direction (pick random (-179) to (180))\n    set [id v] to [lines]\n    create clone of (_myself_ v)\nend\nclone [48] start id at [70]\nrepeat until <(timer) > [12.5]>\n    point in direction (pick random (-179) to (180))\n    set [id v] to [lines]\n    create clone of (_myself_ v)\nend\nwait until <(timer) > [14]>\nbroadcast (PlayGame v)\n\nwhen I start as a clone\n( [the big sliding things at the beginning ] )\nif <(id) = [top slide]> then\n    switch costume to (top v)\n    point in direction (90)\n    set size to (100) %\n    go to x: (0) y: (-100)\n    set [brightness v] effect to (-100)\n    show\n    wait until <(timer) > [0.1]>\n    repeat (18)\n        go to [front v] layer\n        switch costume to (bottom v)\n        change y by (((182) - (y position)) / (5))\n        switch costume to (top v)\n    end\n    delete this clone\nend\nif <(id) = [bottom slide]> then\n    switch costume to (bottom v)\n    point in direction (90)\n    set size to (100) %\n    go to x: (0) y: (100)\n    set [brightness v] effect to (-100)\n    show\n    wait until <(timer) > [0.1]>\n    repeat (18)\n        switch costume to (top v)\n        change y by (((-182) - (y position)) / (5))\n        switch costume to (bottom v)\n    end\n    delete this clone\nend\n\ndefine create clone (id)\n( [creates a clone with a specific id] )\n( [good for clones where theres only one of them] )\nset [id v] to (id)\ncreate clone of (_myself_ v)\n\ndefine clone (n) start id at (i)\n( [makes any number of clones i use this with an id starting at 10, 20, 30 etc] )\n( [this is for many clones doing the same thing like a particle effect for example] )\nset [id v] to (i)\nrepeat (n)\n    change [id v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <<(id) > [10]> and <(id) < [19]>> then\n    ( [dashes] )\n    switch costume to (- v)\n    clear graphic effects\n    set size to (50) %\n    point in direction (90)\n    go to x: (160) y: (0)\n    hide\n    if <((id) mod (2)) = [0]> then\n        set x to ((x position) * (-1))\n    end\n    wait (([ceiling v] of (((id) - (10)) / (2)) ) * (0.1)) seconds\n    show\n    go to [front v] layer\n    set [ghost v] effect to (0)\n    repeat (10)\n        change x by ((((([abs v] of (x position) ) / (x position)) * (230)) - (x position)) / (5))\n        change [ghost v] effect by (6)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <<(id) > [20]> and <(id) < [30]>> then\n    ( [letters of name] )\n    switch costume to (join [L] ((id) - (20)))\n    clear graphic effects\n    point in direction (90)\n    set size to (300) %\n    set [brightness v] effect to (60)\n    go to x: (240) y: (0)\n    show\n    set [i v] to [270]\n    set [ii v] to [100]\n    repeat (10)\n        change [i v] by (((90) - (i)) / (2))\n        letter positioning [0] (([sin v] of (((timer) * (300)) + (((id) - (20)) * (30))) ) * (10)) (i)\n        change size by (((ii) - (size)) / (3))\n        change [brightness v] effect by (-6)\n        go to [front v] layer\n    end\n    set [iii v] to [0]\n    repeat (20)\n        change [i v] by (iii)\n        change [iii v] by (1)\n        letter positioning [0] (([sin v] of (((timer) * (300)) + (((id) - (20)) * (30))) ) * (10)) (i)\n        change size by (((ii) - (size)) / (3))\n        go to [front v] layer\n    end\n    set [iiii v] to [0]\n    repeat (20)\n        set [iiii v] to (((iiii) * (0.5)) + (((450) - (i)) / (4)))\n        change [i v] by (iiii)\n        letter positioning [0] (([sin v] of (((timer) * (300)) + (((id) - (20)) * (30))) ) * (10)) (i)\n        change size by (((ii) - (size)) / (3))\n        go to [front v] layer\n    end\n    set size to (300) %\n    set [brightness v] effect to (75)\n    repeat (15)\n        change [brightness v] effect by (-5)\n        letter positioning [0] (([sin v] of (((timer) * (300)) + (((id) - (20)) * (30))) ) * (10)) (i)\n        change size by (((ii) - (size)) / (3))\n        go to [front v] layer\n    end\n    repeat (10)\n        letter positioning [0] (([sin v] of (((timer) * (300)) + (((id) - (20)) * (30))) ) * (10)) (i)\n        change size by (((ii) - (size)) / (3))\n        go to [front v] layer\n    end\n    set [i v] to [90]\n    set [iii v] to [0]\n    set rotation style [all around v]\n    repeat (20)\n        point in direction (i)\n        change [i v] by (iii)\n        if <(iii) < [24]> then\n            change [iii v] by (2)\n        end\n        letter positioning [0] (([sin v] of (((timer) * (300)) + (((id) - (20)) * (30))) ) * (10)) (i)\n        change size by (((ii) - (size)) / (3))\n        go to [front v] layer\n    end\n    set [iiii v] to [0]\n    repeat until <(timer) > [12]>\n        point in direction (i)\n        set [iiii v] to (((iiii) * (0.6)) + (((450) - (i)) / (4)))\n        change [i v] by (iiii)\n        letter positioning [0] (([sin v] of (((timer) * (300)) + (((id) - (20)) * (30))) ) * (10)) (i)\n        change size by (((ii) - (size)) / (3))\n    end\n    set [i v] to [-1]\n    set [brightness v] effect to (80)\n    repeat (20)\n        change [i v] by (-1)\n        change [brightness v] effect by (-4)\n        change size by (i)\n    end\n    hide\n    delete this clone\nend\n\ndefine ( (comment) )\n\ndefine letter positioning (x) (y) (direction)\nchange x by ((((x) + (([sin v] of (direction) ) * (((id) - (23)) * (((ii) / (100)) * (50))))) - (x position)) / (3))\nchange y by ((((y) + (([cos v] of (direction) ) * (((id) - (23)) * (((ii) / (100)) * (50))))) - (y position)) / (3))\n\ngo to x: (0) y: (0)\n\npoint in direction (direction)\n\nwhen I start as a clone\nif <<(id) > [30]> and <(id) < [40]>> then\n    ( [growing circles at start] )\n    switch costume to (resize2 v)\n    set size to (1) %\n    hide\n    clear graphic effects\n    point in direction (90)\n    go to x: (240) y: (-180)\n    switch costume to (big circle v)\n    if <((id) mod (2)) = [0]> then\n        go to x: ((x position) * (-1)) y: ((y position) * (-1))\n        switch costume to (big circle2 v)\n    end\n    wait (((id) - (30)) * (0.15)) seconds\n    show\n    set [ghost v] effect to (100)\n    set [i v] to [0]\n    repeat (16)\n        if <(x position) < [0]> then\n            change [i v] by (1)\n        else\n            change [i v] by (-1)\n        end\n        glide to [0] [0] [7] [5]\n        change [ghost v] effect by (-10)\n        if <(size) < [150]> then\n            switch costume to (resize2 v)\n        else\n            switch costume to (resize v)\n        end\n        change size by (([abs v] of (i) ) * (1.1))\n        if <(x position) < [0]> then\n            switch costume to (big circle2 v)\n        else\n            switch costume to (big circle v)\n        end\n    end\n    wait (0.2) seconds\n    if <(id) = [36]> then\n        repeat until <(timer) > [13]>\n            go to [back v] layer\n        end\n    end\n    delete this clone\nend\n\ngo to [front v] layer\n\ndefine glide to (x) (y) (x speed) (y speed)\nchange x by (((x) - (x position)) / (x speed))\nchange y by (((y) - (y position)) / (y speed))\n\nwhen I start as a clone\nif <<(id) > [40]> and <(id) < [50]>> then\n    ( [vertical bar effect] )\n    switch costume to (vertical bar v)\n    set size to (50) %\n    hide\n    clear graphic effects\n    point in direction (90)\n    go to x: ((-210) + (((id) - (41)) * (60))) y: (-180)\n    wait (((id) - (40)) * (0.05)) seconds\n    show\n    set [ghost v] effect to (25)\n    set [i v] to [0]\n    set [xv v] to [40]\n    repeat (35)\n        set [i v] to (((i) * (0.8)) + (((0) - (y position)) / (3)))\n        change y by (i)\n        set [xv v] to (((xv) * (0.6)) + ((((-210) + (((id) - (41)) * (60))) - (x position)) / (3)))\n        change x by (xv)\n        change size by (((110) - (size)) / (5))\n    end\n    wait (0.3) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nif <<(id) > [50]> and <(id) < [60]>> then\n    ( [vertical bar effect] )\n    switch costume to (vertical bar2 v)\n    set size to (50) %\n    hide\n    clear graphic effects\n    point in direction (90)\n    set [brightness v] effect to (0)\n    go to x: ((-210) + (((id) - (51)) * (60))) y: (180)\n    wait (((id) - (50)) * (0.05)) seconds\n    show\n    set [ghost v] effect to (25)\n    set [i v] to [0]\n    set [xv v] to [40]\n    repeat (35)\n        set [i v] to (((i) * (0.8)) + (((0) - (y position)) / (3)))\n        change y by (i)\n        set [xv v] to (((xv) * (0.6)) + ((((-210) + (((id) - (51)) * (60))) - (x position)) / (3)))\n        change x by (xv)\n        change size by (((110) - (size)) / (5))\n        change [ghost v] effect by (-1)\n    end\n    wait (0.3) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nif <<(id) > [60]> and <(id) < [70]>> then\n    ( [arrows in background] )\n    hide\n    switch costume to (angled bar v)\n    set size to (50) %\n    clear graphic effects\n    point in direction (90)\n    set [brightness v] effect to (0)\n    go to x: (240) y: (0)\n    wait (((id) - (60)) * (0.2)) seconds\n    show\n    set [ghost v] effect to (0)\n    set size to ((60) * <(((-600) + (((id) - (61)) * (200))) + (((timer) * (-100)) mod (400))) < [-320]>) %\n    repeat (30)\n        switch costume to (wide v)\n        if <(((-600) + (((id) - (61)) * (200))) + (((timer) * (-100)) mod (400))) < [-320]> then\n            change x by (((-320) - (x position)) / (3))\n        else\n            change x by (((((-600) + (((id) - (61)) * (200))) + (((timer) * (-100)) mod (400))) - (x position)) / (3))\n        end\n        change size by (((100) - (size)) / (4))\n        switch costume to (angled bar v)\n    end\n    repeat until <(timer) > [4.2]>\n        left\n    end\n    switch costume to (resize v)\n    set size to (300) %\n    switch costume to (angled bar v)\n    set rotation style [left-right v]\n    point in direction (-90)\n    repeat until <(timer) > [7.7]>\n        switch costume to (wide v)\n        set x to (((-600) + (((id) - (61)) * (200))) + (((timer) * (100)) mod (400)))\n        change x by (0)\n        change size by (((100) - (size)) / (3))\n        switch costume to (angled bar v)\n    end\n    switch costume to (resize v)\n    set size to (300) %\n    switch costume to (angled bar v)\n    point in direction (90)\n    repeat until <(timer) > [13]>\n        left\n    end\n    delete this clone\nend\n\ndefine left\nswitch costume to (wide v)\nset x to (((-600) + (((id) - (61)) * (200))) + (((timer) * (-100)) mod (400)))\nchange x by (0)\nchange size by (((100) - (size)) / (6))\nswitch costume to (angled bar v)\n\nwhen I start as a clone\nif <<(id) > [70]> and <(id) < [120]>> then\n    ( [end squares] )\n    hide\n    switch costume to (costume2 v)\n    set size to (10) %\n    set rotation style [all around v]\n    clear graphic effects\n    point in direction (-90)\n    go to x: (0) y: (180)\n    set [brightness v] effect to (100)\n    wait ((([sqrt v] of ((([abs v] of ((-210) + ((((id) - (71)) - ((8) * ([floor v] of (((id) - (71)) / (8)) ))) * (60))) ) * ([abs v] of ((-210) + ((((id) - (71)) - ((8) * ([floor v] of (((id) - (71)) / (8)) ))) * (60))) )) + (((180) - ((150) - (([floor v] of (((id) - (71)) / (8)) ) * (60)))) * ((180) - ((150) - (([floor v] of (((id) - (71)) / (8)) ) * (60)))))) ) / (5)) * (0.01)) seconds\n    show\n    set [ghost v] effect to (100)\n    repeat (30)\n        set [i v] to (((i) * (0.6)) + ((((150) - (([floor v] of (((id) - (71)) / (8)) ) * (60))) - (y position)) / (3)))\n        change y by (i)\n        set [xv v] to (((xv) * (0.6)) + ((((-210) + ((((id) - (71)) - ((8) * ([floor v] of (((id) - (71)) / (8)) ))) * (60))) - (x position)) / (3)))\n        change x by (xv)\n        turn right (((90) - (direction)) / (4)) degrees\n        change size by (((116) - (size)) / (3))\n        change [ghost v] effect by (-5)\n        go to [front v] layer\n    end\n    wait (0.5) seconds\n    set [i v] to (pick random (3) to (10))\n    set [xv v] to (pick random (-4) to (4))\n    repeat (20)\n        change [ghost v] effect by (5)\n        change x by (xv)\n        change y by (i)\n        turn right (xv) degrees\n        change [i v] by (-1)\n        set [xv v] to ((xv) * (0.9))\n    end\n    delete this clone\nend\n\ndefine position (id)\ngo to x: ((-205) + (((id) - ((8) * ([floor v] of ((id) / (8)) ))) * (60))) y: ((155) - (([floor v] of ((id) / (8)) ) * (60)))\n\nclone [48] start id at [70]\n\nwhen I start as a clone\nif <(id) = [lines]> then\n    switch costume to (line1 v)\n    clear graphic effects\n    set rotation style [all around v]\n    go to x: (0) y: (0)\n    set size to (100) %\n    set [brightness v] effect to (100)\n    move (100) steps\n    show\n    repeat (7)\n        change [ghost v] effect by (7)\n        next costume\n        move (10) steps\n    end\n    delete this clone\nend\n\ndefine create (n) lines\nset [id v] to [lines]\npoint in direction (90)\nrepeat (n)\n    create clone of (_myself_ v)\n    turn right ((360) / (n)) degrees\nend\n\nreset timer\nclone [5] start id at [20]\n\nset [id v] to [10]\nrepeat (4)\n    change [id v] by (1)\n    create clone of (_myself_ v)\n    change [id v] by (1)\n    create clone of (_myself_ v)\n    wait (0.3) seconds\nend\n\nrepeat (10)\n\ngo to [front v] layer\n\nclear graphic effects\n\n\n\nwhen I start as a clone\nif <(id) = [p]> then\n    ( [particles] )\n    set size to (80) %\n    switch costume to (p4 v)\n    clear graphic effects\n    show\n    set rotation style [all around v]\n    set [ghost v] effect to (25)\n    go to x: (0) y: (0)\n    set [xv v] to (pick random (4) to (-4))\n    set [i v] to (pick random (8) to (12))\n    repeat (30)\n        float\n    end\n    repeat (15)\n        float\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\ndefine particles (n)\nset [id v] to [p]\npoint in direction (pick random (-179) to (179))\nrepeat (n)\n    create clone of (_myself_ v)\n    turn right ((360) / (n)) degrees\nend\n\nif <touching (_edge_ v)?> then\n    change [ghost v] effect by (10)\nend\n\nif <not <touching (_edge_ v)?>> then\n\nif <([abs v] of (direction) ) < [90]> then\n    turn right (((0) - (direction)) / (30)) degrees\nelse\n    if <(direction) < [0]> then\n        turn right (((-180) - (direction)) / (30)) degrees\n    else\n        turn right (((180) - (direction)) / (30)) degrees\n    end\nend\n\npoint in direction (90)\n\nwait (0.1) seconds\n\ndefine make particles\nrepeat (5)\n    particles [20]\nend\n\nwhen I receive [p v]\nif <(costume [number v]) = [1]> then\n    rings\n    repeat (5)\n        particles [20]\n        point in direction ((([sin v] of ((timer) * (400)) ) * (15)) + (90))\n    end\n    wait (0.4) seconds\n    rings\n    repeat until <(timer) > [7.7]>\n        particles [15]\n        point in direction ((([sin v] of ((timer) * (400)) ) * (15)) + (90))\n        wait (0.3) seconds\n    end\n    wait until <(timer) > [9.49]>\n    rings\n    repeat (3)\n        particles [20]\n        wait (0.05) seconds\n    end\nend\n\nset [dklf;ja;dlkjgaklj v] to (timer)\n\ngo to x: (0) y: (0)\nset size to (100) %\nswitch costume to (2curve v)\nrepeat (9)\n    next costume\n    turn right (5) degrees\nend\n\nchange size by (10)\n\nwhen I start as a clone\nif <<(id) = [-10]> or <(id) = [-11]>> then\n    go to x: (0) y: (0)\n    show\n    set size to (150) %\n    if <(id) = [-10]> then\n        point in direction (90)\n    else\n        point in direction (-90)\n    end\n    clear graphic effects\n    set [brightness v] effect to (100)\n    switch costume to (curve1 v)\n    repeat (13)\n        next costume\n        change size by (((250) - (size)) / (5))\n        change [ghost v] effect by (4)\n        turn right (5) degrees\n    end\nend\n\ndefine rings\nset [id v] to [-10]\ncreate clone of (_myself_ v)\nset [id v] to [-11]\ncreate clone of (_myself_ v)\n\nrings\n\n@Player\n\ndefine xcoll\nrepeat until <not <touching (ground v)?>>\n    if <(Xvel) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\ndefine fast\nrepeat (6)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\nend\n\ndefine ycoll\nrepeat until <not <touching (ground v)?>>\n    if <(Yvel) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [playgame v]\ngo to [front v] layer\ngo to x: (-200) y: (150)\nswitch costume to (costume1 v)\nshow\nset [level v] to [1]\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    switch costume to (costume1 v)\n    change [yvel v] by (-1.5)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (costume2 v)\n        change [xvel v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (costume3 v)\n        change [xvel v] by (-1)\n    end\n    set [xvel v] to ((Xvel) * (0.9))\n    change x by (Xvel)\n    if <touching (ground v)?> then\n        fast\n        if <touching (ground v)?> then\n            change y by (-6)\n            xcoll\n            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                set [yvel v] to [12]\n                if <([abs v] of (Xvel) ) = (Xvel)> then\n                    set [xvel v] to [-8]\n                else\n                    set [xvel v] to [8]\n                end\n            else\n                set [xvel v] to [0]\n            end\n        end\n    end\n    change y by (Yvel)\n    if <touching (ground v)?> then\n        ycoll\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(Yvel) < [0]>> then\n            set [yvel v] to [18]\n        else\n            set [yvel v] to [0]\n        end\n    end\n    if <touching (bouncepad v)?> then\n        set [yvel v] to [24]\n    end\nend\n\nwhen I receive [playgame v]\nforever\n    if <<<(y position) < [-170]> or <<touching (danger1 v)?> or <touching (danger2 v)?>>> or <touching (danger3 v)?>> then\n        go to x: (-200) y: (10)\n    end\nend\n\nwhen I receive [playgame v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume4 v)\nrepeat (6)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [playgame v]\nforever\n    if <(x position) > [230]> then\n        broadcast (Level +  v)\n        go to x: (-241) y: (10)\n    end\nend\n\nwhen I receive [playgame v]\nset volume to (100) %\nforever\n    play sound [Logic - 5am \(Instrumental\) \(online-audio-converter.com\) v] until done\nend\n\nwhen [down arrow v] key pressed\nrepeat until <not <key (down arrow v) pressed?>>\n    switch costume to (squish v)\nend\nswitch costume to (costume1 v)\n\nwhen I start as a clone\nforever\n    if <key (down arrow v) pressed?> then\n        repeat until <not <key (down arrow v) pressed?>>\n            switch costume to (squish v)\n        end\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    set [timer v] to (timer)\nend\n\nwhen [timer v] > (timer)\nhide\ngo to [back v] layer\nhide variable [☁ highscore v]\nhide variable [☁ highscore holder v]\nhide variable [time v]\n\n@Ground\n\nwhen flag clicked\nhide\n\nwhen I receive [playgame v]\nswitch costume to (lv1 v)\nshow\n\nwhen flag clicked\nforever\n    set [level v] to (costume [number v])\nend\n\nwhen I receive [level +  v]\nnext costume\n\n@BouncePad\n\nwhen flag clicked\nhide\n\nwhen I receive [playgame v]\nshow\nswitch costume to (lvl1 v)\n\nwhen I receive [level +  v]\nnext costume\n\n@Danger1\n\nwhen flag clicked\nhide\n\nwhen I receive [playgame v]\nswitch costume to (lvl 1 v)\nshow\n\nwhen I receive [level +  v]\nnext costume\n\n@Danger2\n\nwhen flag clicked\nhide\n\nwhen I receive [playgame v]\nswitch costume to (lvl 1 v)\nshow\ngo to x: (0) y: (0)\ngo to [back v] layer\nforever\n    set y to (0)\n    change y by (([cos v] of (((timer) - (3)) * (250)) ) * (12))\nend\n\nwhen I receive [level +  v]\nnext costume\n\n@Danger3\n\nwhen flag clicked\nhide\n\nwhen I receive [playgame v]\ngo to [back v] layer\nswitch costume to (lvl 1 v)\nshow\nset [vel v] to [0]\ngo to x: (0) y: (0)\nforever\n    repeat (20)\n        change [vel v] by (1)\n    end\n    repeat (40)\n        change [vel v] by (-1)\n    end\n    repeat (20)\n        change [vel v] by (1)\n    end\n    set [vel v] to [0]\nend\n\nwhen I receive [level +  v]\nchange [level v] by (1)\nnext costume\n\nwhen I receive [playgame v]\nset [level v] to [1]\nforever\n    turn right (VEl) degrees\nend\n\nwhen I receive [level +  v]\nforever\n    if <(Level) = [4]> then\n        go to x: (-50) y: (-118)\n    end\n    if <(Level) = [8]> then\n        delete all of [x v]\n        delete all of [y v]\n        add [-118 ] to [y v]\n        add [-118] to [y v]\n        add [-118] to [y v]\n        add [0] to [x v]\n        add [110] to [x v]\n        set [n v] to [1]\n        create clone of (_myself_ v)\n        set [n v] to [2]\n        create clone of (_myself_ v)\n        go to x: (-110) y: (-118)\n        wait until <not <(Level) = [8]>>\n        delete all of [x v]\n        delete all of [y v]\n    end\nend\n\nwhen I start as a clone\nshow\ngo to x: (item (N) of [x v]) y: (item (N) of [y v])\nrepeat until <not <(Level) = [8]>>\n    repeat (20)\n        change [vel v] by (1)\n    end\n    repeat (40)\n        change [vel v] by (-1)\n    end\n    repeat (20)\n        change [vel v] by (1)\n    end\n    set [vel v] to [0]\nend\ndelete this clone\n\nwhen I start as a clone\nrepeat until <not <(Level) = [8]>>\n    turn right (VEl) degrees\nend\n\n@BackRect\n\n@CloudHigh\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\nhide variable [time v]\nhide variable [☁ highscore holder v]\nhide variable [☁ highscore v]\nset [level v] to [0]\nset [time v] to [0]\n\nwhen I receive [playgame v]\nwait (.1) seconds\nrepeat until <(Level) = [12]>\n    wait (.1) seconds\n    change [time v] by (.1)\nend\nshow\nshow variable [☁ highscore v]\nshow variable [☁ highscore holder v]\nshow variable [time v]\n\nwhen I receive [playgame v]\nwait until <(Level) = [12]>\nif <(Time) < (☁ Highscore)> then\n    repeat until <<(Time) = (☁ Highscore)> and <(☁ Highscore Holder) = (username)>>\n        set [☁ highscore v] to (Time)\n        set [☁ highscore holder v] to (username)\n    end\nend\n\n@thumbnail\n\nwhen flag clicked\ngo to [front v] layer\ngo [forward v] (123456789098764321) layers\nset size to (108) %\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nshow\n\n