star wars platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [1-02 Williams_ Star Wars Theme v] until done\nend\n\n@player\n\nwhen I receive [next level v]\ngo to x: (-177) y: (-100)\n\nwhen flag clicked\nset size to (100) %\ngo to x: (-177) y: (-100)\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nforever\n    platformer\nend\n\ndefine platformer\nif <key (right arrow v) pressed?> then\n    change [xv v] by (0.75)\nend\nif <key (left arrow v) pressed?> then\n    change [xv v] by (-0.75)\nend\nset [xv v] to ((xv) * (0.9))\nchange x by (xv)\nif <touching (base v)?> then\n    change y by (1)\n    if <touching (base v)?> then\n        change y by (1)\n        if <touching (base v)?> then\n            change y by (1)\n            if <touching (base v)?> then\n                change y by (1)\n                if <touching (base v)?> then\n                    change y by (1)\n                    if <touching (base v)?> then\n                        change x by ((xv) * (-1))\n                        change y by (-5)\n                        if <key (up arrow v) pressed?> then\n                            if <(xv) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\n                            end\n                            set [yv v] to [13]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (yv)\nif <touching (base v)?> then\n    change y by ((yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <touching (base v)?> then\n    if <key (up arrow v) pressed?> then\n        set [yv v] to [15]\n    end\n    change y by (1)\nend\nif <touching (next level v)?> then\n    broadcast (next level v)\nend\nif <touching (bounce v)?> then\n    set [yv v] to [18]\nend\nif <touching (move v)?> then\n    set [yv v] to [0]\n    set [xv v] to [18]\nend\nif <key (s v) pressed?> then\n    broadcast (next level v)\n    wait (2) seconds\nend\nif <<touching (danger 1 v)?> or <touching (danger 2 v)?>> then\n    repeat (10)\n        change size by (-10)\n    end\n    go to x: (-177) y: (-100)\n    set size to (100) %\n    set [xv v] to [0]\nend\nif <(y position) < [-187]> then\n    repeat (10)\n        change size by (-10)\n    end\n    go to x: (-177) y: (-100)\n    set size to (100) %\nend\n\n@base\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@next level\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [next level v]\nnext backdrop\nif <touching (base v)?> then\n    hide\nend\n\nwhen backdrop switches to [backdrop1 v]\n\n@bounce\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@danger 1\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@move\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@front\n\nwhen flag clicked\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\nwait (2) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\n@danger 2\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n
arrow keys is how you move and jump\n\nhave fun and may the force be with you!\nMore level are coming soon!!\nsorry about the intro and the long loading