Elements 6:The Finale || A Scrolling Platformer #games #all
@Stage\n\nwhen [m v] key pressed\nshow variable [mouse v]\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [,] ((mouse y) + (SCROLL Y))))\n\nwhen [t v] key pressed\nhide variable [mouse v]\n\nwhen flag clicked\nswitch backdrop to (intro v)\n\nwhen I receive [start v]\nstop all sounds\nset volume to (100) %\nswitch backdrop to (castle v)\nforever\n    play sound [Super World v] until done\nend\n\nwhen I receive [start v]\nforever\n    if <key (m v) pressed?> then\n        if <(volume) = [100]> then\n            set volume to (0) %\n        else\n            set volume to (100) %\n        end\n        wait until <not <key (m v) pressed?>>\n    end\nend\n\nwhen I receive [win!! v]\nrepeat (50)\n    change volume by (-2)\nend\nstop [other scripts in sprite v]\nstop all sounds\nset volume to (100) %\n\n@Blank\n\n@Player\n\nwhen I receive [start v]\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [win]> then\n        Game - Win\n    else\n        if <(EXIT) = [end]> then\n            Game - End\n            stop [this script v]\n        else\n            Game - Die\n        end\n    end\nend\n\ndefine Game On\nset [x v] to [0]\nset [y v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset size to (340) %\nclear graphic effects\nshow\n\nwhen I receive [green flag v]\nhide\n\ndefine Tick\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    change [sx v] by (-2)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [sx v] by (2)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>> then\n    if <(in air) < [4]> then\n        set [sy v] to [16]\n    end\nend\nchange [sy v] by (-2)\nChange Player y by (sy)\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (7)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <<(y) < [-180]> or <touching (spikes v)?>> then\n    set [exit v] to [die]\nend\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nif <<touching (platforms v)?> or <touching (moving platforms v)?>> then\n    repeat (15)\n        change [y v] by (1)\n        Position\n        if <not <<touching (platforms v)?> or <touching (moving platforms v)?>>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-15)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <<touching (platforms v)?> or <touching (moving platforms v)?>>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <<touching (platforms v)?> or <touching (moving platforms v)?>>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Game - Die\nset [exit v] to []\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\n\ndefine Game - Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\n\nwhen flag clicked\nhide\n\ndefine Game - End\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nwait (1) seconds\nbroadcast (WIN!! v)\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Platforms\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1.1 v)\n    Clone at x: [470] y: [0]\n    Clone at x: [470] y: [0]\n    Clone at x: [470] y: [0]\n    Clone at x: [470] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2.1 v)\n        Clone at x: [470] y: [0]\n        Clone at x: [470] y: [0]\n        Clone at x: [470] y: [0]\n        Clone at x: [470] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3.1 v)\n            Clone at x: [470] y: [0]\n            Clone at x: [470] y: [0]\n            Clone at x: [470] y: [0]\n            Clone at x: [470] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4.1 v)\n                Clone at x: [470] y: [0]\n                Clone at x: [470] y: [0]\n                Clone at x: [470] y: [0]\n                Clone at x: [470] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5.1 v)\n                    Clone at x: [470] y: [0]\n                    Clone at x: [470] y: [0]\n                    Clone at x: [470] y: [0]\n                    Clone at x: [470] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6.1 v)\n                        Clone at x: [470] y: [0]\n                        Clone at x: [470] y: [0]\n                        Clone at x: [470] y: [0]\n                        Clone at x: [470] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (level 7.1 v)\n                            Clone at x: [0] y: [360]\n                            Clone at x: [470] y: [0]\n                            Clone at x: [0] y: [-360]\n                            Clone at x: [470] y: [0]\n                            Clone at x: [470] y: [0]\n                            Clone at x: [470] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 8.1 v)\n                                Clone at x: [1220] y: [0]\n                                Clone at x: [800] y: [330]\n                                Clone at x: [470] y: [0]\n                                Clone at x: [600] y: [-330]\n                                Clone at x: [470] y: [0]\n                            else\n                                if <(LEVEL) = [9]> then\n                                    switch costume to (level 9.1 v)\n                                    Clone at x: [700] y: [330]\n                                    Clone at x: [1240] y: [0]\n                                    Clone at x: [470] y: [0]\n                                else\n                                    if <(LEVEL) = [10]> then\n                                        switch costume to (level 10.1 v)\n                                        Clone at x: [470] y: [0]\n                                        Clone at x: [470] y: [0]\n                                        Clone at x: [470] y: [0]\n                                        Clone at x: [470] y: [0]\n                                        Clone at x: [470] y: [0]\n                                        Clone at x: [470] y: [0]\n                                    else\n                                        if <(LEVEL) = [11]> then\n                                            switch costume to (level 11.1 v)\n                                            Clone at x: [470] y: [0]\n                                            Clone at x: [470] y: [0]\n                                            Clone at x: [950] y: [0]\n                                            Clone at x: [470] y: [0]\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nset [x v] to [-99999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\nhide\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1.1 v)\n    Clone at x: [470] y: [0]\n    Clone at x: [470] y: [0]\n    Clone at x: [470] y: [0]\n    Clone at x: [470] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2.1 v)\n        Clone at x: [470] y: [0]\n        Clone at x: [470] y: [0]\n        Clone at x: [470] y: [0]\n        Clone at x: [470] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3.1 v)\n            Clone at x: [470] y: [0]\n            Clone at x: [470] y: [0]\n            Clone at x: [470] y: [0]\n            Clone at x: [470] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4.1 v)\n                Clone at x: [470] y: [0]\n                Clone at x: [470] y: [0]\n                Clone at x: [470] y: [0]\n                Clone at x: [470] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5.1 v)\n                    Clone at x: [470] y: [0]\n                    Clone at x: [470] y: [0]\n                    Clone at x: [470] y: [0]\n                    Clone at x: [470] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6.1 v)\n                        Clone at x: [470] y: [0]\n                        Clone at x: [470] y: [0]\n                        Clone at x: [470] y: [0]\n                        Clone at x: [470] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (level7.1 v)\n                            Clone at x: [0] y: [360]\n                            Clone at x: [470] y: [0]\n                            Clone at x: [0] y: [-360]\n                            Clone at x: [470] y: [0]\n                            Clone at x: [470] y: [0]\n                            Clone at x: [470] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level8.1 v)\n                                Clone at x: [1220] y: [0]\n                                Clone at x: [800] y: [330]\n                                Clone at x: [470] y: [0]\n                                Clone at x: [470] y: [0]\n                            else\n                                if <(LEVEL) = [9]> then\n                                    switch costume to (level9.1 v)\n                                    Clone at x: [700] y: [330]\n                                    Clone at x: [1240] y: [0]\n                                    Clone at x: [470] y: [0]\n                                else\n                                    if <(LEVEL) = [10]> then\n                                        switch costume to (level10.1 v)\n                                        Clone at x: [470] y: [0]\n                                        Clone at x: [470] y: [0]\n                                        Clone at x: [470] y: [0]\n                                        Clone at x: [470] y: [0]\n                                        Clone at x: [470] y: [0]\n                                        Clone at x: [470] y: [0]\n                                    else\n                                        if <(LEVEL) = [11]> then\n                                            switch costume to (level11.1 v)\n                                            Clone at x: [470] y: [0]\n                                            Clone at x: [470] y: [0]\n                                            Clone at x: [950] y: [0]\n                                            Clone at x: [470] y: [0]\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nset [x v] to [-99999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\nhide\n\n@Exit\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    if <(LEVEL) < [11]> then\n        set [exit v] to [win]\n    else\n        set [exit v] to [end]\n    end\nend\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (exit v)\n    Clone at x: [1725] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        Clone at x: [1705] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            Clone at x: [1490] y: [175]\n        else\n            if <(LEVEL) = [4]> then\n                Clone at x: [1725] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    Clone at x: [1600] y: [140]\n                else\n                    if <(LEVEL) = [6]> then\n                        Clone at x: [1440] y: [25]\n                    else\n                        if <(LEVEL) = [7]> then\n                            Clone at x: [1700] y: [25]\n                        else\n                            if <(LEVEL) = [8]> then\n                                Clone at x: [2840] y: [335]\n                            else\n                                if <(LEVEL) = [9]> then\n                                    Clone at x: [2245] y: [540]\n                                else\n                                    if <(LEVEL) = [10]> then\n                                        Clone at x: [2640] y: [0]\n                                    else\n                                        if <(LEVEL) = [11]> then\n                                            Clone at x: [2200] y: [0]\n                                        else\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\nhide\n\n@Moving Platforms\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nif <(direction) = [h]> then\n    Position (((x) - (SCROLL X)) + (([cos v] of ((timer) * (speed)) ) * (distance))) ((y) - (SCROLL Y))\nelse\n    Position ((x) - (SCROLL X)) (((y) - (SCROLL Y)) + (([cos v] of ((timer) * (speed)) ) * (distance)))\nend\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [8]> then\n    Clone at x: [570] y: [-45] Distance [200] Speed [70] Direction [h] Costume [1]\n    Clone at x: [1600] y: [70] Distance [200] Speed [70] Direction [v] Costume [2]\nelse\n    if <(LEVEL) = [9]> then\n        Clone at x: [230] y: [70] Distance [200] Speed [70] Direction [v] Costume [3]\n        Clone at x: [1300] y: [330] Distance [200] Speed [70] Direction [h] Costume [4]\n    else\n        if <(LEVEL) = [11]> then\n            Clone at x: [1320] y: [-45] Distance [200] Speed [70] Direction [h] Costume [1]\n        end\n    end\nend\nset [x v] to [-99999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y) Distance (distance) Speed (speed) Direction (direction) Costume (costume)\npoint in direction (90)\nset [direction v] to (direction)\nset [distance v] to (distance)\nset [speed v] to (speed)\nset [x v] to (x)\nset [y v] to (y)\nswitch costume to (costume)\ncreate clone of (_myself_ v)\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\nhide\n\n@Win Screen\n\nwhen I receive [win!! v]\nset [ghost v] effect to (100)\nshow\nswitch costume to (blank v)\nset size to (150) %\nswitch costume to (win screen v)\nrepeat until <(size) < [101]>\n    go to [front v] layer\n    switch costume to (blank v)\n    change size by (((100) - (size)) / (7))\n    switch costume to (win screen v)\n    change [ghost v] effect by (-5)\n    set x to (((((pick random (0) to (1)) * (2)) - (1)) * ((size) - (100))) * (0.75))\n    set y to (((((pick random (0) to (1)) * (2)) - (1)) * ((size) - (100))) * (0.75))\nend\ngo to x: (0) y: (0)\nwait until <mouse down?>\nrepeat (20)\n    change [brightness v] effect by (-5)\nend\nwait (0.7) seconds\nhide\nbroadcast (Outro v)\n\nwhen flag clicked\nhide\n\n@Intro\n\nwhen I start as a clone\nif <(Clone) = [Particles]> then\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    switch costume to (particle v)\n    set size to (100) %\n    show\n    set [x v] to (pick random (-15) to (15))\n    set [y v] to (pick random (20) to (30))\n    repeat until <<touching (_edge_ v)?> or <touching (level v)?>>\n        change [y v] by (-2)\n        set [x v] to ((x) * (0.9))\n        set [y v] to ((y) * (0.9))\n        change x by (x)\n        change y by (y)\n    end\n    delete this clone\nend\n\ndefine Clone Sprite ID (id) # (#)\nset [clone v] to (id)\nrepeat (#)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nhide\nClone Sprite ID [Back] # [1]\nwait (0.7) seconds\nClone Sprite ID [Dot] # [1]\n\nwhen I start as a clone\nif <(Clone) = [Back]> then\n    show\n    go to [back v] layer\n    switch costume to (back v)\n    forever\n        point in direction ((([cos v] of ((timer) * (100)) ) * (15)) + (90))\n    end\nend\n\nwhen I start as a clone\nif <(Clone) = [Dot]> then\n    go to x: (0) y: (200)\n    show\n    go to [front v] layer\n    switch costume to (dot v)\n    set [i v] to [-1]\n    repeat (20)\n        change [i v] by (join [-] (([abs v] of (I) ) / (4)))\n        change y by ((I) / (2.5))\n    end\n    repeat (5)\n        switch costume to (nothing v)\n        change size by (((10000) - (size)) / (16))\n        switch costume to (dot v)\n    end\n    wait (0.5) seconds\n    Clone Sprite ID [JC] # [1]\nend\n\nwhen I start as a clone\nif <(Clone) = [JC]> then\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    switch costume to (jc v)\n    set size to (2) %\n    Grow to size [100]\n    wait (0.7) seconds\n    switch costume to (spin1 v)\n    repeat (30)\n        switch costume to ((costume [number v]) + (2))\n        if <(costume [number v]) > [12]> then\n            switch costume to (spin1 v)\n        end\n    end\n    broadcast (Name v)\nend\n\ndefine Grow to size (size)\nset [bounce v] to [0]\nrepeat until <([abs v] of (((0.85) * (Bounce)) + (((size) - (size)) / (8))) ) < [0.05]>\n    set [bounce v] to (((0.85) * (Bounce)) + (((size) - (size)) / (8)))\n    change size by (Bounce)\nend\n\nwhen I start as a clone\nif <(Clone) = [J]> then\n    go to x: (-135) y: (-130)\n    show\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (letter1 v)\n    Jump to y [-120]\nend\n\ndefine Jump to y (y)\nset [bounce v] to [0]\nrepeat until <([abs v] of (((0.85) * (Bounce)) + (((y) - (y position)) / (8))) ) < [0.05]>\n    set [bounce v] to (((0.85) * (Bounce)) + (((y) - (y position)) / (8)))\n    change y by (Bounce)\nend\n\nwhen I receive [name v]\nrepeat (1)\n    delete this clone\nend\nClone Sprite ID [Ninja] # [1]\nwait (0) seconds\nClone Sprite ID [J] # [1]\nwait (0) seconds\nClone Sprite ID [C] # [1]\nwait (0) seconds\nClone Sprite ID [_] # [1]\nwait (0) seconds\nClone Sprite ID [P] # [1]\nwait (0) seconds\nClone Sprite ID [r] # [1]\nwait (0) seconds\nClone Sprite ID [o1] # [1]\nwait (0) seconds\nClone Sprite ID [G] # [1]\nwait (0) seconds\nClone Sprite ID [o2] # [1]\nwait (0) seconds\nClone Sprite ID [l] # [1]\nwait (0) seconds\nClone Sprite ID [d] # [1]\nwait (1.5) seconds\nClone Sprite ID [Square] # [1]\nwait (0.7) seconds\nClone Sprite ID [Logo] # [1]\n\nwhen I start as a clone\nif <(Clone) = [C]> then\n    go to x: (-105) y: (-130)\n    show\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (letter2 v)\n    Jump to y [-120]\nend\n\nwhen I start as a clone\nif <(Clone) = [_]> then\n    go to x: (-75) y: (-130)\n    show\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (letter3 v)\n    Jump to y [-120]\nend\n\nwhen I start as a clone\nif <(Clone) = [P]> then\n    go to x: (-45) y: (-130)\n    show\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (letter4 v)\n    Jump to y [-120]\nend\n\nwhen I start as a clone\nif <(Clone) = [r]> then\n    go to x: (-15) y: (-130)\n    show\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (letter5 v)\n    Jump to y [-120]\nend\n\nwhen I start as a clone\nif <(Clone) = [o1]> then\n    go to x: (15) y: (-130)\n    show\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (letter6 v)\n    Jump to y [-120]\nend\n\nwhen I start as a clone\nif <(Clone) = [G]> then\n    go to x: (45) y: (-130)\n    show\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (letter7 v)\n    Jump to y [-120]\nend\n\nwhen I start as a clone\nif <(Clone) = [o2]> then\n    go to x: (75) y: (-130)\n    show\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (letter8 v)\n    Jump to y [-120]\nend\n\nwhen I start as a clone\nif <(Clone) = [l]> then\n    go to x: (105) y: (-130)\n    show\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (letter9 v)\n    Jump to y [-120]\nend\n\nwhen I start as a clone\nif <(Clone) = [d]> then\n    go to x: (135) y: (-130)\n    show\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (letter10 v)\n    Jump to y [-120]\nend\n\nwhen I start as a clone\nif <(Clone) = [Ninja]> then\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    switch costume to (ninja v)\n    set size to (2) %\n    Grow to size [100]\nend\n\ndefine Smooth (x) (y) (s) (d) (g)\nrepeat until <<(round (x position)) = (x)> and <<(round (y position)) = (y)> and <<(round (size)) = (s)> and <(round (direction)) = (d)>>>>\n    change x by (((x) - (x position)) / (5))\n    change y by (((y) - (y position)) / (5))\n    change size by (((s) - (size)) / (5))\n    turn right (((d) - (direction)) / (5)) degrees\n    change [ghost v] effect by (g)\nend\n\nwhen I start as a clone\nif <(Clone) = [Square]> then\n    show\n    go to [front v] layer\n    go to x: (0) y: (1000)\n    switch costume to (square v)\n    Smooth [0] [-370] [100] [90] [0]\nend\n\nwhen I start as a clone\nif <(Clone) = [Logo]> then\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    switch costume to (logo v)\n    set size to (2) %\n    Grow to size [100]\n    wait (0.7) seconds\n    Clone Sprite ID [Particles] # [15]\n    glide (0.1) secs to x: (226) y: (-100)\n    hide\n    wait (1.5) seconds\n    broadcast (Start v)\nend\n\nwhen I start as a clone\nif <(Clone) = [Logo]> then\n    Clone Sprite ID [Particles] # [15]\n    repeat (18)\n        turn right (20) degrees\n    end\nend\n\nwhen flag clicked\nset volume to (100) %\nstart sound [Intro v]\nwait (10) seconds\nrepeat (50)\n    change volume by (-2)\nend\n\nwhen flag clicked\nforever\n    if <<key (space v) pressed?> or <mouse down?>> then\n        broadcast (Start v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nstop all sounds\nstop [other scripts in sprite v]\nrepeat (1)\n    delete this clone\nend\n\n@Outro\n\nwhen I receive [outro v]\nClone Sprite ID [Back] [1]\nClone Sprite ID [OC] [1]\nClone Sprite ID [Name] [1]\nClone Sprite ID [Projects] [1]\nbroadcast (Show v)\n\nwhen flag clicked\nhide\nswitch costume to (text v)\nset [ghost v] effect to (100)\n\nwhen I start as a clone\nif <(Clone) = [OC]> then\n    show\n    set [ghost v] effect to (100)\n    go to x: (0) y: (-30)\n    go to [front v] layer\n    switch costume to (oc v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    set [tan v] to [0]\n    forever\n        if <touching (mouse-pointer v)?> then\n            change size by (((150) - (size)) / (2))\n            point in direction (((90) + (([sin v] of ((timer) * (200)) ) * (10))) + ([tan v] of (TAN) ))\n            change [tan v] by (1)\n        else\n            change size by (((100) - (size)) / (2))\n            point in direction (((90) + (([sin v] of ((timer) * (200)) ) * (10))) + ([tan v] of (TAN) ))\n            change [tan v] by (1)\n        end\n    end\nend\n\ndefine Clone Sprite ID (id) (#)\nset [clone v] to (id)\nrepeat (#)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(Clone) = [Projects]> then\n    show\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    switch costume to (projects v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    forever\n        set y to (([sin v] of ((timer) * (300)) ) * (7))\n    end\nend\n\nwhen I receive [outro v]\nforever\n    play sound [Outro v] until done\nend\n\nwhen I start as a clone\nif <(Clone) = [Name]> then\n    show\n    set [ghost v] effect to (100)\n    go to x: (0) y: (130)\n    go to [front v] layer\n    switch costume to (name v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    forever\n        point in direction ((([sin v] of ((timer) * (500)) ) * (7)) + (90))\n    end\nend\n\nwhen I start as a clone\nif <(Clone) = [Back]> then\n    show\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\n    go to [back v] layer\n    switch costume to (back v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    forever\n        point in direction ((([cos v] of ((timer) * (100)) ) * (15)) + (90))\n    end\nend\n\nwhen I receive [show v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@TN\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [ghost v] effect to (100)\n\nhide\n\n
Welcome to Elements 6. Yes, I know, this may not seem like my best effort but I actually started working on it like 8 months ago. Then I took a big break. So don't be mean and say it isn't my best work.\n\n★★★ CONTROLS ★★★\n• Move - Arrow keys, WASD or use the mouse\n• Wall jump - Jump onto a wall and hold the up arrow key and either the right or left arrow key depending on which side the of the wall you are on\n\nThat is it...