Purple Ninja (Scrolling platformer)
@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (level)\nend\n\n@Player\n\nwhen flag clicked\nhide\nforever\n    if <touching (trampoline v)?> then\n        set [yv v] to [17]\n    end\nend\n\ndefine Platform Gravity: (gravity) Jump Height: (jump height) Side Movement Speed: (side movement) Friction (friction) Slope: (slope)\nchange [yv v] by (gravity)\nchange y by (YV)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (YV) ) / (YV)) * (-1))\n    end\n    set [yv v] to (<<key (up arrow v) pressed?> and <(([abs v] of (YV) ) / (YV)) = [-1]>> * (jump height))\nend\nset [xv v] to (((XV) + ((<key (left arrow v) pressed?> * ((side movement) * (-1))) + (<key (right arrow v) pressed?> * (side movement)))) * (friction))\nchange x by (XV)\nset [slope v] to [0]\nrepeat until <<(Slope) = ((slope) * (-1))> or <not <touching (level v)?>>>\n    change y by (1)\n    change [slope v] by (-1)\nend\nif <touching (level v)?> then\n    change y by (Slope)\n    repeat until <not <touching (level v)?>>\n        change x by ((([abs v] of (XV) ) / (XV)) * (-1))\n    end\nend\n\nwhen I receive [play v]\nshow\ngo to x: (-203) y: (-50)\nset [xv v] to [0]\nset [yv v] to [1]\nforever\n    if <(level) < [10]> then\n        Platform Gravity: [-1] Jump Height: [13] Side Movement Speed: [3] Friction [.75] Slope: [8]\n    else\n        Platform Gravity: [-1.5] Jump Height: [13] Side Movement Speed: [3] Friction [.6] Slope: [8]\n    end\nend\n\nwhen I receive [restart v]\ngo to x: (-203) y: (-50)\n\nwhen I receive [next level v]\ngo to x: (-203) y: (-50)\n\nforever\n    forever\n        forever\n            forever\n                forever\n                    forever\n                        forever\n                            forever\n                                forever\n                                    forever\n                                        forever\n                                            forever\n                                                forever\n                                                    forever\n                                                        forever\n                                                            forever\n                                                                forever\n                                                                    forever\n                                                                        forever\n                                                                            forever\n                                                                                forever\n                                                                                    forever\n                                                                                        forever\n                                                                                            forever\n                                                                                                forever\n                                                                                                    forever\n                                                                                                        forever\n                                                                                                            forever\n                                                                                                                forever\n                                                                                                                    forever\n                                                                                                                        forever\n                                                                                                                            forever\n                                                                                                                                forever\n                                                                                                                                    forever\n                                                                                                                                        forever\n                                                                                                                                            forever\n                                                                                                                                                forever\n                                                                                                                                                    forever\n                                                                                                                                                        forever\n                                                                                                                                                            forever\n                                                                                                                                                                forever\n                                                                                                                                                                    forever\n                                                                                                                                                                        forever\n                                                                                                                                                                            forever\n                                                                                                                                                                                forever\n                                                                                                                                                                                    forever\n                                                                                                                                                                                        forever\n                                                                                                                                                                                            forever\n                                                                                                                                                                                                forever\n                                                                                                                                                                                                    forever\n                                                                                                                                                                                                        forever\n                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            forever\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                stop [all v]\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                                end\n                                                                                                                                                                                                                            end\n                                                                                                                                                                                                                        end\n                                                                                                                                                                                                                    end\n                                                                                                                                                                                                                end\n                                                                                                                                                                                                            end\n                                                                                                                                                                                                        end\n                                                                                                                                                                                                    end\n                                                                                                                                                                                                end\n                                                                                                                                                                                            end\n                                                                                                                                                                                        end\n                                                                                                                                                                                    end\n                                                                                                                                                                                end\n                                                                                                                                                                            end\n                                                                                                                                                                        end\n                                                                                                                                                                    end\n                                                                                                                                                                end\n                                                                                                                                                            end\n                                                                                                                                                        end\n                                                                                                                                                    end\n                                                                                                                                                end\n                                                                                                                                            end\n                                                                                                                                        end\n                                                                                                                                    end\n                                                                                                                                end\n                                                                                                                            end\n                                                                                                                        end\n                                                                                                                    end\n                                                                                                                end\n                                                                                                            end\n                                                                                                        end\n                                                                                                    end\n                                                                                                end\n                                                                                            end\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (player v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (player2 v)\n    end\n    if <<key (up arrow v) pressed?> and <key (right arrow v) pressed?>> then\n        switch costume to (player4 v)\n    end\n    if <<key (up arrow v) pressed?> and <key (left arrow v) pressed?>> then\n        switch costume to (player5 v)\n    end\n    if <<key (up arrow v) pressed?> and <not <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>>>> then\n        switch costume to (player6 v)\n    end\n    if <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> then\nend\n\n@Level\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [play v]\nshow\nforever\n    switch costume to (level)\nend\n\nwhen I receive [start v]\nforever\n    play sound [Summertime - K-2 v] until done\nend\n\n@Intruh\n\ndefine Smooth Glide x position: (x) Y position: (y) Smoothness: (speed) Direction: (direction) Size: (size)\nrepeat until <<(round (x position)) = (round (x))> and <<(round (y position)) = (round (y))> and <<(round (size)) = (round (size))> and <(round (direction)) = (round (direction))>>>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\n    turn right (((round (direction)) - (round (direction))) / (speed)) degrees\n    change size by (((round (size)) - (round (size))) / (speed))\nend\n\nwhen flag clicked\nhide\nswitch costume to (profile pic v)\ncreate clone of (_myself_ v)\nswitch costume to (back v)\ncreate clone of (_myself_ v)\nswitch costume to (flash v)\ncreate clone of (_myself_ v)\nrepeat (190)\n    switch costume to (bubble v)\n    create clone of (_myself_ v)\nend\n\nSmooth Glide x position: [0] Y position: [0] Smoothness: [10] Direction: [70] Size: [100]\nSmooth Glide x position: [0] Y position: [0] Smoothness: [10] Direction: [110] Size: [100]\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [1]> then\n    go to x: (0) y: (0)\n    point in direction (90)\n    set [timer v] to [0]\n    set [brakes v] to [200]\n    repeat (40)\n        change [timer v] by (40)\n        change [brakes v] by (-5)\n        set size to (((((([sin v] of (timer) ) * (brakes)) / (timer)) * (100)) * (-1)) + (90)) %\n    end\n    forever\n        point in direction ((90) + (([cos v] of (((timer) - (3)) * (100)) ) * (10)))\n    end\nend\nif <(costume [number v]) = [2]> then\n    go to [front v] layer\n    go [forward v] (1) layers\n    switch costume to (bubble v)\n    set [ghost v] effect to (pick random (20) to (50))\n    set size to (pick random (40) to (80)) %\n    point in direction (pick random (-60) to (-90))\n    go to [front v] layer\n    set [intro v] to [20]\n    set [ghost v] effect to (pick random (40) to (82))\n    go to x: (238) y: (pick random (18) to (-182))\n    show\n    forever\n        repeat until <<(x position) = [-246]> or <(x position) < [-230]>>\n            move (Intro) steps\n        end\n        delete this clone\n    end\nend\nif <(costume [number v]) = [3]> then\n    set size to (100) %\n    point in direction (90)\n    go to x: (0) y: (0)\n    go to [back v] layer\n    go to x: (0) y: (0)\n    forever\n        point in direction ((90) + (([cos v] of (((timer) - (4)) * (100)) ) * (25)))\n    end\nend\nif <(costume [number v]) = [4]> then\n    set [ghost v] effect to (100)\n    set size to (100) %\n    point in direction (90)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    go to x: (0) y: (0)\n    repeat (3)\n        wait (1.5) seconds\n        set [ghost v] effect to (0)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n    end\nend\nif <(costume [number v]) = [5]> then\n    set [ghost v] effect to (100)\n    set size to (100) %\n    point in direction (90)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    wait (1) seconds\n    broadcast (start v)\n    delete this clone\nend\n\nwhen flag clicked\nstart sound [AP Intro v]\nwait (7.5) seconds\nswitch costume to (end v)\ncreate clone of (_myself_ v)\n\nwhen I receive [start v]\ndelete this clone\n\n@Thumb\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\n@Menu\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [start v]\nshow\ncreate clone of (_myself_ v)\n\nwhen I receive [play v]\nhide\n\nwhen I start as a clone\nswitch costume to (costume2 v)\ngo to [front v] layer\ngo to x: (0) y: (140)\nshow\npoint in direction (82)\nset [turn v] to [0]\nrepeat (4)\n    change [turn v] by (1)\n    turn right (Turn) degrees\nend\nforever\n    repeat (8)\n        change [turn v] by (-1)\n        turn right (Turn) degrees\n    end\n    repeat (8)\n        change [turn v] by (1)\n        turn right (Turn) degrees\n    end\nend\n\n@Play\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [brightness v] effect to (20)\n        point in direction (([sin v] of ((timer) * (1000)) ) + (90))\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            broadcast (play v)\n            hide\n        end\n    else\n        point in direction (90)\n        change size by (((100) - (size)) / (3))\n        set [brightness v] effect to (0)\n    end\nend\n\n@Clouds\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (3))\nset [ghost v] effect to (pick random (20) to (40))\ngo to [back v] layer\ngo to x: (200) y: (pick random (50) to (180))\nshow\nrepeat until <(x position) < [-200]>\n    change x by (-3)\nend\nrepeat (10)\n    hide\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    if <(level) < [10]> then\n        wait (3) seconds\n        create clone of (_myself_ v)\n    end\nend\n\n@Danger\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (Restart v)\n    end\n    if <(level) = [1]> then\n        go to x: (-60) y: (-97)\n    end\n    if <(level) = [3]> then\n        go to x: (0) y: (0)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@Trampoline\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\n\n@Sprite1\n\nwhen I start as a clone\nshow\ngo to x: (pick random (-200) to (200)) y: (189)\nset size to (pick random (50) to (100)) %\nrepeat until <(y position) < [-150]>\n    change y by (pick random (-5) to (-10))\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    turn right (7) degrees\n    if <touching (player v)?> then\n        broadcast (Restart v)\n        wait until <not <touching (player v)?>>\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nhide\nforever\n    if <(level) = [8]> then\n        create clone of (_myself_ v)\n        wait (.6) seconds\n    end\nend\n\n@Portal\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nset [level v] to [1]\nshow\nforever\n    if <touching (player v)?> then\n        broadcast (next level v)\n        change [level v] by (1)\n        start sound [Nestlevel v]\n        wait until <not <touching (player v)?>>\n    end\n    if <(level) = [12]> then\n        hide\n    end\nend\n\n
hello hello hello, roxy here again with my first platformer!\n\n. not mobile friendly, I apologize. .\n\n- unlike most among us platformers made so far, I would like to mention this one has somewhat of a storyline, all art by me, original characters, and small mini games.\n\n- first, show the flag no mercy! c:<\n\n  .. click the arrows to change your character\n\n          - controls (in project)\n- wad + arrows\n- space to climb the ladder\n- go right to touch the wall for next level\n          ...\n- avoid orange's spilled eggs!\n\n- have fun!\n\n...\n\nhi\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nI assume you are down here because you are in need of help. to skip a level click see inside, go to the cheat sprite, and click 'broadcast next'.\n\n\n\n\n\n\n\n\n\nyou have now reached the bottom.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\njk this is the real bottom\n\n\n\n\n\n\n\n\n\n\nI swear\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ndon't press u\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nuwu\n