☆Star Wars Platformer☆

Instructions: :*:･ﾟ★,｡･:*:･ﾟ☆｡･:*:･ﾟ★,｡･:*:･ﾟ☆｡･:*:･★,｡･☆｡･:*:･★,｡\nHappy May the 4th\n:*:･ﾟ★,｡･:*:･ﾟ☆｡･:*:･ﾟ★,｡･:*:･ﾟ☆｡･:*:･★,｡･☆｡･:*:･★,｡Arrow and WASD for movement.\nJumping in this is different in this game.\nPress R to restart level\nRed is bad\nGreen is the ground\nAll levels are possible\nThere is 15 levels right now\n:*:･ﾟ★,｡･:*:･ﾟ☆｡･:*:･ﾟ★,｡･:*:･ﾟ☆｡･:*:･★,｡･☆｡･:*:･★,｡\nI will add 5 more levels as promised ASAP\nUpdate: Now 2 more levels for me to make\n:*:･ﾟ★,｡･:*:･ﾟ☆｡･:*:･ﾟ★,｡･:*:･ﾟ☆｡･:*:･★,｡･☆｡･:*:･★,｡

@Stage\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [#?]> then\nend\n\nwhen flag clicked\nforever\n    set volume to (50) %\n    play sound [Star Wars Main Theme \(Full\) v] until done\nend\n\n@BB-8 (main sprite)\n\nwhen I receive [message1 v]\ngo to x: (-242) y: (-110)\nswitch costume to (bb-8 v)\nforever\n    set rotation style [left-right v]\n    show\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (1)\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-1)\n        point in direction (-90)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#00ff55)?> then\n        change y by (1)\n        if <touching color (#00ff55)?> then\n            change y by (1)\n            if <touching color (#00ff55)?> then\n                change y by (1)\n                if <touching color (#00ff55)?> then\n                    change y by (1)\n                    if <touching color (#0aff5b)?> then\n                        change y by (1)\n                        if <touching color (#0aff5b)?> 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 [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#00ff55)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#00ff55)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#00ffff)?> then\n        go to x: (-242) y: (-110)\n        wait (0.0000005) seconds\n        switch backdrop to (next backdrop v)\n    end\n    if <touching (kylo ren lightsaber v)?> then\n        broadcast (message1 v)\n        broadcast (dead v)\n        change [death v] by (1)\n    end\n    set size to (20) %\n    if <touching color (#ff0000)?> then\n        broadcast (message1 v)\n        broadcast (dead v)\n        change [death v] by (1)\n    end\nend\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nset [death v] to [0]\nswitch backdrop to (backdrop1 v)\nbroadcast (message1 v)\n\nwhen I receive [dead v]\nstop [other scripts in sprite v]\nrepeat (9)\n    next costume\n    wait (0.005) seconds\nend\nbroadcast (message1 v)\n\nset [☁ record deaths v] to [25]\n\nwhen [r v] key pressed\ngo to x: (-242) y: (-110)\n\nset [☁ record deaths v] to [23]\n\n@Kylo Ren Lightsaber\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen I receive [lightsaber action v]\n\nwhen backdrop switches to [backdrop6 v]\nswitch costume to (costume1 v)\nshow\ngo to x: (-31) y: (-108)\nLight saber action\n\nwhen backdrop switches to [backdrop8 v]\nswitch costume to (costume1 v)\nhide\nstop [other scripts in sprite v]\nbroadcast (Lightsaber duplication v)\n\nwhen I receive [lightsaber duplication v]\nshow\nforever\n    set size to (pick random (50) to (150)) %\n    turn right (pick random (0) to (360)) degrees\n    wait (.25) seconds\n    set size to (pick random (50) to (150)) %\n    turn left (pick random (0) to (360)) degrees\n    wait (.25) seconds\nend\n\nwhen I receive [lightsaber stop v]\nstop [other scripts in sprite v]\n\ndefine Light saber action\nforever\n    set size to (pick random (1) to (100)) %\n    turn right (pick random (0) to (360)) degrees\n    wait (.25) seconds\n    set size to (pick random (1) to (100)) %\n    turn left (pick random (0) to (360)) degrees\n    wait (.25) seconds\nend\n\nwhen backdrop switches to [backdrop9 v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [dead v]\nplay sound [explosion v] until done\n\nwhen backdrop switches to [backdrop13 v]\nset size to (40) %\npoint in direction (90)\ngo to x: (-21) y: (-121)\nswitch costume to (costume2 v)\nshow\n\nwhen backdrop switches to [backdrop14 v]\nhide\n\n@pop up\n\nwhen flag clicked\nforever\n    if <<<(current [month v]) = [5]> and <(current [date v]) = [4]>> and <([backdrop # v] of [_stage_ v]) = [2]>> then\n        go to x: (11) y: (13)\n        switch costume to (may 4th v)\n        show\n    else\n        hide\n    end\n    if <<(backdrop [number v]) = [1]> and <(Death) < (☁ Record Deaths)>> then\n        switch costume to (highscore v)\n        go to x: (3) y: (90)\n        set [☁ record deaths v] to (Death)\n        repeat until <not <(backdrop [number v]) = [1]>>\n            show\n        end\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide variable [death v]\nhide variable [☁ record deaths v]\nshow\nwait (pick random (1) to (5)) seconds\nrepeat (20)\n    change [brightness v] effect by (5)\n    wait (0.00000000005) seconds\nend\nshow variable [☁ record deaths v]\nshow variable [death v]\nclear graphic effects\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (3) y: (1)\nend\n\n