Ninja Platformer v.0.2
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [game done v]\nswitch backdrop to (backdrop2 v)\n\n@Player\n\nwhen flag clicked\nforever\n    wait (0.005) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (costume3 v)\nrepeat (10)\n    change size by (0)\n    change [ghost v] effect by (8)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    turn video (off v)\nend\n\nwhen flag clicked\nhide\nset [level v] to [1]\nforever\n    play sound [Alan Walker, Sabrina Carpenter & Farruko - On My Way \(Lyrics\) v] until done\n    wait (1) seconds\n    play sound [K-391, Alan Walker & Ahrix - End of Time \(Lyrics\) v] until done\n    wait (1) seconds\n    play sound [Alan Walker & K-391 - Ignite \(Lyrics\) ft v] until done\nend\n\ndefine Die\ngo to x: (-215) y: (-50)\n\nwhen I receive [end v]\nshow\nset size to (100) %\nDie\nforever\n    go to [front v] layer\n    if <not <key (any v) pressed?>> then\n        switch costume to (standing still v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v v] by (.9)\n        switch costume to (costume2 v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v v] by (-.9)\n        switch costume to (costume1 v)\n    end\n    set [x v v] to ((X v) * (0.9))\n    change x by (X v)\n    if <<touching (level v)?> or <touching (moving platfom v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (moving platfom v)?>> then\n            change y by (1)\n            if <<touching (moving platfom v)?> or <touching (level v)?>> then\n                change y by (1)\n                if <<touching (level v)?> or <touching (moving platfom v)?>> then\n                    change y by (1)\n                    if <<touching (moving platfom v)?> or <touching (level v)?>> then\n                        change y by (1)\n                        if <<touching (moving platfom v)?> or <touching (level v)?>> then\n                            change x by ((X v) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n                                if <(X v) > [0]> then\n                                    set [x v v] to [-5]\n                                else\n                                    set [x v v] to [5]\n                                end\n                                set [y v v] to [15]\n                            else\n                                set [x v v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v v] by (-1)\n    change y by (Y v)\n    if <<touching (level v)?> or <<touching (rotating platform v)?> or <touching (moving platfom v)?>>> then\n        change y by ((Y v) * (-1))\n        set [y v v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> or <<touching (rotating platform v)?> or <touching (moving platfom v)?>>> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            set [y v v] to [12]\n        end\n    end\n    change y by (1)\n    if <<touching (spike v)?> or <<touching (ninja v)?> or <<<touching (lava v)?> or <touching (danger spike shuriken v)?>> or <touching (saws v)?>>>> then\n        Die\n    end\n    if <touching (finsh v)?> then\n        Die\n        broadcast (NEXT LEVEL v)\n        change [level v] by (1)\n    end\n    if <touching (speed boost v)?> then\n        change x by (40)\n    end\n    if <touching (trampoline v)?> then\n        set [y v v] to [21]\n    end\nend\n\nwhen I receive [next level v]\nrepeat (1)\n    wait (1) seconds\n    go to x: (-267) y: (17)\nend\n\n@Level\n\nwhen flag clicked\nforever\n    if <(level) = [1]> then\n        switch costume to (1 v)\n    end\n    if <(level) = [2]> then\n        switch costume to (2 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (3 v)\n    end\n    if <(level) = [4]> then\n        switch costume to (4 v)\n    end\n    if <(level) = [5]> then\n        switch costume to (5 v)\n    end\n    if <(level) = [6]> then\n        switch costume to (6 v)\n    end\n    if <(level) = [7]> then\n        switch costume to (7 v)\n        broadcast (Game done v)\n    end\n    if <(level) = [8]> then\n        switch costume to (8 v)\n    end\nend\n\nwhen I receive [end v]\nshow\n\n@Asset\n\n@Decoration\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    if <<(level) = [5]> or <(level) = [6]>> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [end v]\nshow\n\nset [level v] to [6]\n\n@Cloud\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to x: (-287) y: (pick random (93) to (17))\nshow\nrepeat until <(x position) > [268]>\n    change x by (pick random (3) to (5))\nend\ndelete this clone\n\nwhen I receive [nothing to see here v]\nforever\n    show\nend\n\nwhen flag clicked\nhide\ngo [backward v] (8) layers\nforever\n    create clone of (_myself_ v)\n    go to [back v] layer\n    wait (pick random (1) to (3)) seconds\nend\n\n@Spike\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [1]> then\n        switch costume to (1 v)\n    end\n    if <(level) = [2]> then\n        switch costume to (2 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (3 v)\n    end\n    if <(level) = [4]> then\n    if <(level) = [5]> then\n    if <(level) = [6]> then\n    if <(level) = [7]> then\n    if <(level) = [8]> then\nend\n\nwhen I receive [end v]\nshow\n\n@Finsh\n\nwhen I receive [end v]\nshow\n\nwhen I receive [end v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [game done v]\nhide\n\n@Saws\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    if <not > then\n        hide\n    else\n        show\n    end\n    turn right (15) degrees\nend\n\n@Ninja\n\nwhen flag clicked\nforever\n    if <not <(level) = [4]>> then\n        hide\n    end\n    if <(level) = [4]> then\n        show\n    end\n    if <touching (shuriken v)?> then\n        set [die? v] to [Yes]\n    end\n    if <not <touching (shuriken v)?>> then\n        set [die? v] to [No]\n    end\nend\n\nhide\n\n@Danger spike shuriken\n\nwhen flag clicked\nforever\n    if <(Die?) = [No]> then\n        if <(level) = [4]> then\n            if <not <touching (box sensor v)?>> then\n                go to (ninja v)\n                hide\n                wait (2) seconds\n                repeat until <touching (_edge_ v)?>\n                    change x by (-5)\n                    show\n                    turn left (15) degrees\n                end\n                hide\n                go to (ninja v)\n            end\n            if <touching (box sensor v)?> then\n                hide\n                go to (ninja v)\n            end\n        end\n    end\n    if <not <(level) = [4]>> then\n        hide\n    end\nend\n\n@Text\n\nwhen I receive [end v]\nshow\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [game done v]\nhide\n\n@Intro by @Pualio\n\ndefine Position X (x) Y (y) Z (z) Dir (dir) Size (size) Other Dir (other dir)\npoint in direction ((((dir) + (([sin v] of ((timer) * (1000)) ) * (Shake))) + (other dir)) + (Cam Dir))\nset [dir v] to (((dir) + (([sin v] of ((timer) * (1000)) ) * (Shake))) + (Cam Dir))\ngo to x: ((40) * (((((([cos v] of ((Dir) - (90)) ) * (x)) * (1)) - ((([sin v] of ((Dir) - (90)) ) * (y)) * (-1))) + ((([sin v] of ((timer) * (800)) ) * (Shake)) / (1))) / ((z) + (Cam Z)))) y: ((40) * (((((([sin v] of ((Dir) - (90)) ) * (x)) * (-1)) - ((([cos v] of ((Dir) - (90)) ) * (y)) * (-1))) + ((([sin v] of ((timer) * (700)) ) * (Shake)) / (1))) / ((z) + (Cam Z))))\nset size to (((((100) / ((z) + (Cam Z))) * (40)) - (100)) + (size)) %\n\nwhen flag clicked\nplay sound [va1ue - Join The Rhythm v] until done\nbroadcast (End v)\n\nwhen flag clicked\nset [clone id v] to [0]\nset [cam z v] to [30]\nset [cam dir v] to [0]\nswitch costume to (costume1 v)\nhide\nCreate Clones [11]\nMake Particles [40]\nMake Diamonds [14]\nMake Other Particles [80]\nMake Line Explosions [400] [16]\nMake Line Explosions [500] [16]\nMake Line Explosions [600] [16]\nMake Line Explosions [700] [16]\nMake Line Explosions [800] [16]\nMake Line Explosions [900] [16]\nMake Splines [19] [1000]\nMake Splines [19] [1100]\nMake Splines [8] [1200]\nMake Splines [8] [1300]\n\ndefine Create Clones (amount)\nrepeat (amount)\n    change [clone id v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to x: (0) y: (0)\npoint in direction (90)\nset size to (100) %\nif <(Clone ID) = [1]> then\n    switch costume to (costume3 v)\n    show\nend\nif <(Clone ID) = [100]> then\n    set [clone y v] to (pick random (-200) to (300))\n    set [var1 v] to (pick random (0) to (-80))\n    set [var2 v] to (pick random (0) to (360))\n    show\n    repeat (200)\n        switch costume to (costume1 v)\n        Position X (((-100) + ((Clone Y) * (0.4))) + (([cos v] of (((timer) + (Var2)) * (30)) ) * (20))) Y ((Clone Y) + (([sin v] of (direction) ) * (([sin v] of (((timer) + (Var2)) * (30)) ) * (20)))) Z [0] Dir [0] Size [60] Other Dir [45]\n        move (Var1) steps\n        switch costume to (costume2 v)\n    end\nend\nif <(Clone ID) = [2]> then\n    set [turn v] to [0]\n    wait (1.7) seconds\n    switch costume to (template v)\n    go to [front v] layer\n    go [backward v] (3) layers\n    show\n    set [turn v] to [0]\n    set [var1 v] to [-40]\n    set [var2 v] to [2]\n    set [var3 v] to [0]\n    repeat (15)\n        Position X [0] Y [0] Z [0] Dir [0] Size (Var1) Other Dir [90]\n        set [var3 v] to (((Var3) * (0.6)) + (((60) - (Var1)) / (6)))\n        change [var1 v] by (Var3)\n        change [var2 v] by ((Var2) / (4))\n        set [cam dir v] to (Var2)\n    end\n    broadcast (Fractal v)\n    repeat (3)\n        Position X [0] Y [0] Z [0] Dir [0] Size (Var1) Other Dir [90]\n        set [var3 v] to (((Var3) * (0.6)) + (((60) - (Var1)) / (6)))\n        change [var1 v] by (Var3)\n        change [var2 v] by (40)\n        set [cam dir v] to (Var2)\n    end\n    repeat (23)\n        Position X [0] Y [0] Z [0] Dir [0] Size (Var1) Other Dir ((Var2) + (90))\n        set [var3 v] to (((Var3) * (0.6)) + (((60) - (Var1)) / (6)))\n        change [var1 v] by (Var3)\n        change [var2 v] by (((360) - (Var2)) / (8))\n        set [cam dir v] to (Var2)\n    end\n    repeat (19)\n        Position X [0] Y [0] Z [0] Dir [0] Size (Var1) Other Dir ((Var2) + (90))\n        change [var1 v] by (-5)\n        change [var2 v] by (((720) - (Var2)) / (12))\n        change [cam dir v] by (((360) - (Cam Dir)) / (6))\n    end\n    set [var2 v] to [720]\n    switch costume to (temp v)\n    repeat (14)\n        Position X [0] Y [0] Z [0] Dir [0] Size (Var1) Other Dir ((Var2) + (90))\n        set [var4 v] to (((Var4) * (0.7)) + (((60) - (Var1)) / (6)))\n        change [var1 v] by (Var4)\n        change [var2 v] by (((720) - (Var2)) / (6))\n        change [cam dir v] by (((360) - (Cam Dir)) / (6))\n    end\n    set [var3 v] to [0]\n    repeat (26)\n        Position X (Var3) Y [0] Z [0] Dir [0] Size (Var1) Other Dir ((Var2) + (90))\n        set [var4 v] to (((Var4) * (0.7)) + (((60) - (Var1)) / (6)))\n        change [var1 v] by (Var4)\n        change [var2 v] by (((720) - (Var2)) / (6))\n        change [var3 v] by (((37) - (Var3)) / (6))\n    end\n    set [var5 v] to [0]\n    set [turn v] to [1]\n    repeat (60)\n        Position X (Var3) Y [0] Z [0] Dir (Var5) Size (Var1) Other Dir ((Var2) + (90))\n        set [var4 v] to (((Var4) * (0.7)) + (((60) - (Var1)) / (6)))\n        change [var1 v] by (Var4)\n        change [var2 v] by (((720) - (Var2)) / (6))\n        change [var3 v] by (((37) - (Var3)) / (6))\n        change [var5 v] by (((-360) - (Var5)) / (8))\n    end\nend\nif <(Clone ID) = [3]> then\n    wait (4.6) seconds\n    switch costume to (late v)\n    go to [front v] layer\n    go [backward v] (3) layers\n    show\n    set [var1 v] to [-40]\n    set [var2 v] to [2]\n    repeat until <(Turn) = [1]>\n        Position X [-37] Y [0] Z [0] Dir [0] Size (Var1) Other Dir [90]\n        set [var4 v] to (((Var4) * (0.7)) + (((64) - (Var1)) / (6)))\n        change [var1 v] by (Var4)\n    end\n    set [var5 v] to [0]\n    repeat (60)\n        Position X [-37] Y [0] Z [0] Dir (Var5) Size (Var1) Other Dir [90]\n        set [var4 v] to (((Var4) * (0.7)) + (((64) - (Var1)) / (6)))\n        change [var1 v] by (Var4)\n        change [var5 v] by (((-360) - (Var5)) / (8))\n    end\nend\nif <(Clone ID) = [4]> then\n    switch costume to (costume5 v)\n    go to [front v] layer\n    show\nend\nif <(Clone ID) = [5]> then\n    switch costume to (costume4 v)\n    go to [front v] layer\n    go [backward v] (1) layers\n    set [ghost v] effect to (100)\n    show\n    repeat (1000)\n        change [ghost v] effect by (4)\n    end\nend\nif <(Clone ID) = [6]> then\n    switch costume to (costume1 v)\n    go to [back v] layer\n    set [shake v] to [0]\n    repeat (1000)\n        change [shake v] by (((0) - (Shake)) / (6))\n    end\nend\nif <(Clone ID) = [200]> then\n    show\n    set [var2 v] to [0]\n    set [var3 v] to [0]\n    repeat (1000)\n        switch costume to (costume7 v)\n        Position X [0] Y [0] Z [0] Dir [0] Size (Var1) Other Dir [0]\n        set [var1 v] to ((Var2) + (Diamond Position))\n        change [diamond position v] by ((0.5) + ((((Var1) + (30)) / (24)) * <((Var1) + (30)) > [0]>))\n        change [var2 v] by (((Var3) - (Var2)) / (4))\n        if <(Var1) > [-30]> then\n            show\n        else\n            hide\n        end\n        switch costume to (costume6 v)\n    end\nend\nif <(Clone ID) = [7]> then\n    set [start v] to [1]\n    switch costume to (costume9 v)\n    set size to (100) %\n    show\n    repeat (168)\n        go to [front v] layer\n    end\nend\nif <(Clone ID) = [8]> then\n    wait (5.6) seconds\n    show\n    switch costume to (costume10 v)\n    go to x: (-500) y: (0)\n    repeat (200)\n        go to [front v] layer\n        change x by (((325) - (x position)) / (12))\n    end\nend\nif <(Clone ID) = [300]> then\n    wait (1.65) seconds\n    go to [front v] layer\n    go [backward v] (4) layers\n    show\n    switch costume to (costume11 v)\n    set [clone x v] to (pick random (160) to (-380))\n    set [clone y v] to (pick random (220) to (-220))\n    set [var1 v] to (pick random (-20) to (10))\n    repeat (1000)\n        Position X (Clone X) Y (Clone Y) Z [0] Dir [0] Size (Var1) Other Dir [0]\n        change [clone x v] by ((2) + (((Var1) + (5)) / (26)))\n        if <([abs v] of (x position) ) > [236]> then\n            hide\n        else\n            show\n        end\n    end\nend\nif <(Clone ID) = [400]> then\n    wait (1.72) seconds\n    go to [front v] layer\n    go [backward v] (4) layers\n    show\n    switch costume to (costume13 v)\n    set [brightness v] effect to (Var6)\n    set [var3 v] to [-20]\n    set [var4 v] to [12]\n    set [var5 v] to [17]\n    repeat until <(Var5) > [26]>\n        Position X (([sin v] of ((Var2) + (90)) ) * (Var3)) Y (([cos v] of ((Var2) + (90)) ) * (Var3)) Z [0] Dir [0] Size [60] Other Dir (Var2)\n        change [var3 v] by (Var4)\n        set [var4 v] to ((Var4) * (0.88))\n        change [var5 v] by (0.3)\n        switch costume to ([floor v] of (Var5) )\n    end\n    delete this clone\nend\nif <(Clone ID) = [500]> then\n    wait (3.74) seconds\n    go to [front v] layer\n    go [backward v] (4) layers\n    show\n    switch costume to (costume13 v)\n    set [brightness v] effect to (Var6)\n    set [var3 v] to [-20]\n    set [var4 v] to [10]\n    set [var5 v] to [17]\n    repeat until <(Var5) > [26]>\n        Position X (([sin v] of ((Var2) + (90)) ) * (Var3)) Y (([cos v] of ((Var2) + (90)) ) * (Var3)) Z [0] Dir [0] Size [60] Other Dir (Var2)\n        change [var3 v] by (Var4)\n        set [var4 v] to ((Var4) * (0.88))\n        change [var5 v] by (0.3)\n        switch costume to ([floor v] of (Var5) )\n    end\n    delete this clone\nend\nif <(Clone ID) = [600]> then\n    wait (3.74) seconds\n    go to [front v] layer\n    go [backward v] (4) layers\n    show\n    switch costume to (costume13 v)\n    set [brightness v] effect to (Var6)\n    set [var3 v] to [-20]\n    set [var4 v] to [8]\n    set [var5 v] to [17]\n    repeat until <(Var5) > [26]>\n        switch costume to (costume7 v)\n        set size to (400) %\n        Position X ((([sin v] of ((Var2) + (90)) ) * (Var3)) + (90)) Y ((([cos v] of ((Var2) + (90)) ) * (Var3)) + (180)) Z [0] Dir [0] Size [60] Other Dir (Var2)\n        change [var3 v] by (Var4)\n        set [var4 v] to ((Var4) * (0.88))\n        change [var5 v] by (0.3)\n        switch costume to ([floor v] of (Var5) )\n    end\n    delete this clone\nend\nif <(Clone ID) = [700]> then\n    wait (3.74) seconds\n    go to [front v] layer\n    go [backward v] (4) layers\n    show\n    switch costume to (costume13 v)\n    set [brightness v] effect to (Var6)\n    set [var3 v] to [-20]\n    set [var4 v] to [8]\n    set [var5 v] to [17]\n    repeat until <(Var5) > [26]>\n        switch costume to (costume7 v)\n        set size to (400) %\n        Position X ((([sin v] of ((Var2) + (90)) ) * (Var3)) + (-90)) Y ((([cos v] of ((Var2) + (90)) ) * (Var3)) + (180)) Z [0] Dir [0] Size [60] Other Dir (Var2)\n        change [var3 v] by (Var4)\n        set [var4 v] to ((Var4) * (0.88))\n        change [var5 v] by (0.3)\n        switch costume to ([floor v] of (Var5) )\n    end\n    delete this clone\nend\nif <(Clone ID) = [800]> then\n    wait (3.74) seconds\n    go to [front v] layer\n    go [backward v] (4) layers\n    show\n    switch costume to (costume13 v)\n    set [brightness v] effect to (Var6)\n    set [var3 v] to [-20]\n    set [var4 v] to [8]\n    set [var5 v] to [17]\n    repeat until <(Var5) > [26]>\n        switch costume to (costume7 v)\n        set size to (400) %\n        Position X ((([sin v] of ((Var2) + (90)) ) * (Var3)) + (-90)) Y ((([cos v] of ((Var2) + (90)) ) * (Var3)) + (-180)) Z [0] Dir [0] Size [60] Other Dir (Var2)\n        change [var3 v] by (Var4)\n        set [var4 v] to ((Var4) * (0.88))\n        change [var5 v] by (0.3)\n        switch costume to ([floor v] of (Var5) )\n    end\n    delete this clone\nend\nif <(Clone ID) = [900]> then\n    wait (3.74) seconds\n    go to [front v] layer\n    go [backward v] (4) layers\n    show\n    switch costume to (costume13 v)\n    set [brightness v] effect to (Var6)\n    set [var3 v] to [-20]\n    set [var4 v] to [8]\n    set [var5 v] to [17]\n    repeat until <(Var5) > [26]>\n        switch costume to (costume7 v)\n        set size to (400) %\n        Position X ((([sin v] of ((Var2) + (90)) ) * (Var3)) + (90)) Y ((([cos v] of ((Var2) + (90)) ) * (Var3)) + (-180)) Z [0] Dir [0] Size [60] Other Dir (Var2)\n        change [var3 v] by (Var4)\n        set [var4 v] to ((Var4) * (0.88))\n        change [var5 v] by (0.3)\n        switch costume to ([floor v] of (Var5) )\n    end\n    delete this clone\nend\nif <(Clone ID) = [10]> then\n    wait (4.7) seconds\n    go to [front v] layer\n    go [backward v] (5) layers\n    set [brightness v] effect to (100)\n    show\n    set [var1 v] to [27]\n    set [var2 v] to [2]\n    repeat until <(Var1) > [37]>\n        Position X [0] Y [0] Z [0] Dir [0] Size [65] Other Dir (Var2)\n        change [var2 v] by ((Var2) / (3))\n        change [var1 v] by (1)\n        switch costume to (Var1)\n    end\n    repeat (3)\n        Position X [0] Y [0] Z [0] Dir [0] Size [65] Other Dir (Var2)\n        change [var2 v] by ((Var2) / (3))\n        switch costume to (Var1)\n    end\n    repeat (10)\n        Position X [0] Y [0] Z [0] Dir [0] Size [65] Other Dir (Var2)\n        change [var2 v] by (((360) - (Var2)) / (6))\n        switch costume to (Var1)\n    end\n    repeat (20)\n        Position X [0] Y [0] Z [0] Dir [0] Size [65] Other Dir (Var2)\n        change [var2 v] by (((360) - (Var2)) / (6))\n        change [var1 v] by (((26) - (Var1)) / (8))\n        switch costume to (Var1)\n    end\nend\nif <(Clone ID) = [11]> then\n    wait (4.6) seconds\n    switch costume to (blue_fractal v)\n    show\n    set [var1 v] to [-50]\n    go to [front v] layer\n    go [backward v] (6) layers\n    set [color v] effect to (100)\n    set [ghost v] effect to (40)\n    repeat until <(size) > [100]>\n        Position X [0] Y [0] Z [0] Dir [0] Size (Var1) Other Dir [0]\n        change [var1 v] by (30)\n    end\n    repeat (100)\n        switch costume to (costume12 v)\n        Position X [0] Y [0] Z [0] Dir [0] Size (Var1) Other Dir [0]\n        change [var1 v] by (30)\n        switch costume to (blue_fractal v)\n    end\nend\nif <(Clone ID) = [1000]> then\n    wait ((2.4) + ((Var1) / (60))) seconds\n    switch costume to (costume23 v)\n    show\n    go to [front v] layer\n    go [backward v] (6) layers\n    set [var2 v] to [90]\n    repeat (200)\n        Position X ((([sin v] of ((Var2) + (90)) ) * (Var3)) + (120)) Y ((([cos v] of ((Var2) + (90)) ) * (Var3)) + (220)) Z [0] Dir [0] Size [40] Other Dir (Var2)\n        change [var3 v] by (10)\n        change [var2 v] by (0.8)\n        if <([abs v] of (x position) ) > [240]> then\n            hide\n        else\n            show\n        end\n    end\nend\nif <(Clone ID) = [1100]> then\n    wait ((2.4) + ((Var1) / (60))) seconds\n    switch costume to (costume23 v)\n    show\n    go to [front v] layer\n    go [backward v] (10) layers\n    set [var2 v] to [-90]\n    repeat (200)\n        Position X ((([sin v] of ((Var2) + (90)) ) * (Var3)) + (-120)) Y ((([cos v] of ((Var2) + (90)) ) * (Var3)) + (-220)) Z [0] Dir [0] Size [40] Other Dir (Var2)\n        change [var3 v] by (10)\n        change [var2 v] by (0.8)\n        if <([abs v] of (x position) ) > [240]> then\n            hide\n        else\n            show\n        end\n    end\nend\nif <(Clone ID) = [1200]> then\n    wait ((2.36) + ((Var1) / (60))) seconds\n    switch costume to (costume23 v)\n    show\n    go to [front v] layer\n    go [backward v] (4) layers\n    set [brightness v] effect to (100)\n    set [var2 v] to [-90]\n    repeat (200)\n        Position X ((([sin v] of ((Var2) + (90)) ) * (Var3)) + (-120)) Y ((([cos v] of ((Var2) + (90)) ) * (Var3)) + (-220)) Z [0] Dir [0] Size [20] Other Dir (Var2)\n        change [var3 v] by (10)\n        change [var2 v] by (0.8)\n        if <([abs v] of (x position) ) > [240]> then\n            hide\n        else\n            show\n        end\n    end\nend\nif <(Clone ID) = [1300]> then\n    wait ((2.36) + ((Var1) / (60))) seconds\n    switch costume to (costume23 v)\n    show\n    go to [front v] layer\n    go [backward v] (4) layers\n    set [brightness v] effect to (100)\n    set [var2 v] to [90]\n    repeat (200)\n        Position X ((([sin v] of ((Var2) + (90)) ) * (Var3)) + (120)) Y ((([cos v] of ((Var2) + (90)) ) * (Var3)) + (220)) Z [0] Dir [0] Size [20] Other Dir (Var2)\n        change [var3 v] by (10)\n        change [var2 v] by (0.8)\n        if <([abs v] of (x position) ) > [240]> then\n            hide\n        else\n            show\n        end\n    end\nend\n\ndefine Make Particles (amount)\nset [clone id v] to [100]\nrepeat (amount)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nwait (1.7) seconds\nrepeat (10)\n    broadcast (Sync v)\n    wait (0.43) seconds\nend\n\nwhen I receive [sync 2 v]\nset [cam z v] to [28]\nwait (0) seconds\nset [cam z v] to [25]\n\nwhen flag clicked\nforever\n    change [cam z v] by (((30) - (Cam Z)) / (6))\nend\n\nwhen flag clicked\nwait (1.65) seconds\nrepeat (9)\n    broadcast (Sync 2 v)\n    wait (0.43) seconds\nend\n\nwhen I receive [sync 2 v]\nif <(Clone ID) = [5]> then\n    change [ghost v] effect by (-10)\n    wait (0) seconds\n    change [ghost v] effect by (-40)\nend\nif <(Clone ID) = [6]> then\n    change [shake v] by (0.5)\n    wait (0) seconds\n    change [shake v] by (1.5)\nend\nif <(Clone ID) = [200]> then\n    change [var3 v] by ((12) + ((((Var1) + (30)) / (1)) * <((Var1) + (30)) > [0]>))\nend\nif <(Clone ID) = [7]> then\n    if <(Start) = [1]> then\n        switch costume to (costume7 v)\n        set size to (15) %\n    end\n    set [start v] to [0]\n    switch costume to (costume8 v)\n    repeat (100)\n        switch costume to (costume7 v)\n        go to [front v] layer\n        change size by (((348) - (size)) / (10))\n        switch costume to (costume8 v)\n    end\nend\n\ndefine Make Diamonds (amount)\nset [clone id v] to [200]\nset [diamond position v] to [0]\nrepeat (amount)\n    create clone of (_myself_ v)\n    change [diamond position v] by (-15)\nend\n\nwhen flag clicked\nwait (7.5) seconds\nbroadcast (End v)\n\nwhen I receive [end v]\nif <(Clone ID) = [8]> then\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nelse\n    delete this clone\nend\n\ndefine Make Other Particles (amount)\nset [clone id v] to [300]\nrepeat (amount)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [fractal v]\nif <(Clone ID) = [9]> then\n    switch costume to (blue_fractal v)\n    show\n    set [var1 v] to [-50]\n    go to [front v] layer\n    go [backward v] (4) layers\n    set [color v] effect to (100)\n    set [ghost v] effect to (20)\n    repeat until <(size) > [100]>\n        Position X [0] Y [0] Z [0] Dir [0] Size (Var1) Other Dir [0]\n        change [var1 v] by (30)\n    end\n    repeat (100)\n        switch costume to (costume12 v)\n        Position X [0] Y [0] Z [0] Dir [0] Size (Var1) Other Dir [0]\n        change [var1 v] by (30)\n        switch costume to (blue_fractal v)\n    end\nend\n\nwhen flag clicked\nwait (8.2) seconds\nstop [other scripts in sprite v]\n\ndefine Make Line Explosions (id) (amount)\nset [clone id v] to (id)\nset [var2 v] to [0]\nset [var1 v] to ((360) / (amount))\nrepeat (amount)\n    create clone of (_myself_ v)\n    change [var2 v] by (Var1)\n    if <(Var6) = [100]> then\n        set [var6 v] to [0]\n    else\n        set [var6 v] to [100]\n    end\nend\n\ndefine Make Splines (amount) (id)\nset [clone id v] to (id)\nset [var1 v] to [0]\nrepeat (amount)\n    create clone of (_myself_ v)\n    change [var1 v] by (1)\nend\n\n@Lava\n\nwhen flag clicked\nreset timer\nforever\n    go to x: (33) y: (-156)\n    go to [back v] layer\n    set y to ((([sin v] of ((timer) * (200)) ) * (5)) + (-99.9))\nend\n\n@Trampoline\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [6]> then\n        show\n    else\n        hide\n    end\nend\n\n@Snow\n\nwhen I start as a clone\nshow\nchange size by (pick random (1) to (20))\ngo to x: (pick random (-240) to (240)) y: (180)\nglide (pick random (5) to (9)) secs to x: (pick random (-240) to (240)) y: (-180)\ndelete this clone\n\ndefine Snow\nSnow\n\nwhen I start as a clone\nforever\n    if <touching (level v)?> then\n        delete this clone\n    end\n    if <<touching color (#fdfdfd)?> and <(SCREEN) = [1]>> then\n        delete this clone\n    end\n    if <(SCREEN) = [0]> then\n        go [backward v] (10) layers\n    end\nend\n\ngo [backward v] (1) layers\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nif <<(current [month v]) = [12]> and <<(current [date v]) = [24]> or <<(current [date v]) = [25]> or <(current [date v]) = [26]>>>> then\n    switch costume to (costume1 v)\n    wait (0.5) seconds\n    hide\n    go [backward v] (1) layers\n    forever\n        if <(SCREEN) = [1]> then\n            create clone of (_myself_ v)\n            wait (0.05) seconds\n        else\n            create clone of (_myself_ v)\n            wait (0.07) seconds\n        end\n    end\nelse\n    if <<(current [month v]) = [10]> and <(current [date v]) = [31]>> then\n        switch costume to (costume2 v)\n        wait (0.5) seconds\n        hide\n        go [backward v] (1) layers\n        forever\n            if <(SCREEN) = [1]> then\n                create clone of (_myself_ v)\n                wait (0.05) seconds\n            else\n                create clone of (_myself_ v)\n                wait (0.07) seconds\n            end\n        end\n    else\n        switch costume to (costume3 v)\n        turn right (15) degrees\n        wait (0.5) seconds\n        hide\n        go [backward v] (1) layers\n        forever\n            if <(SCREEN) = [1]> then\n                create clone of (_myself_ v)\n                wait (0.05) seconds\n            else\n                create clone of (_myself_ v)\n                wait (0.07) seconds\n            end\n        end\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Pickup shuriken\n\n@shuriken\n\n@Next level\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen flag clicked\nhide\ngo to x: (-267) y: (17)\n\nwhen I receive [next level v]\nshow\nSmooth Glide x: (428) y: (17) speed: (9)\ngo to [front v] layer\nhide\ngo to x: (-267) y: (17)\n\n
Use WAD or arrow keys to move.\nClick green flag 2X times\nI will add more levels every 2 week.\nTHIS GAME IS NOT MOBILE FRIENDLY!\nDon't touch saws,spikes,shuriken and lava.\nTouch the green flag to go to the next level.\n⚠WARNING⚠ : This game may have glitches so if you find any glitch tell me in the comments.\nMake sure to leave a like,fav and follow because i work on this project for sooooo long.\nAlso for the video sensing one i misclicked it so just ignore that :/.\n-----------------------------------------------------------------------\nUPDATES : \n-7/32/2021 = Game Released\n-7/27/2021 = Next level animation added\n\n