BB-8 A Platformer

Instructions: s is my second platformer , hope you like it !\n=========WELCOME TO BB-8 A PLATFORMER===========\n -Use WASD or Arrow keys to move\n -Dodge Fire and Water because it DANGER\n -Jump on Green energy to Bounce\nREMEMBER,ANYTHING CAN HAPPEN WHEN YOU HAVE THE FORCE !!!!!\n==================================================\nSTORY:BB-8 go playing around and being lost from the rebel's spaceship,helps he go through all the difficults and get him safe back !!!\n==================================================\nIf you like this platformer , please Like , Love or FOLLOW me !!!!\n                                THANKS !!!!!!!!!!:DDD\nMore levels coming soon!!!\nLevel now have : 12\nREMIX TO MAKE BB-8 FAMOUS !!!\nThere something special wating for you !

@Stage\n\n@platform\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\n    go to x: (57) y: (21)\n    if <(costume [number v]) = [12]> then\n        broadcast (home v)\n    end\nend\n\nwhen I receive [next level v]\nnext costume\n\n@bb-8 head\n\nwhen flag clicked\nshow\npoint in direction (90)\nswitch costume to (center v)\nforever\n    go to (bb-8 ball v)\n    set size to (200) %\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (135)\n        if <(jet_on) = [1]> then\n            switch costume to (right-jump v)\n        else\n            switch costume to (right v)\n        end\n    else\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            point in direction (45)\n            if <(jet_on) = [1]> then\n                switch costume to (left-jump v)\n            else\n                switch costume to (left v)\n            end\n        else\n            if <(jet_on) = [1]> then\n                switch costume to (center-jump v)\n            else\n                switch costume to (center v)\n            end\n            point in direction (90)\n        end\n    end\nend\n\nwhen [g v] key pressed\nforever\n    go to (bb-8 ball v)\nend\n\nwhen I receive [start v]\nforever\n    go to (bb-8 ball v)\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [240]> then\n        set x to (-239)\n    end\n    if <<touching color (#003fff)?> or <touching color (#ff0000)?>> then\n        start sound [Lightsaber Sound Effect HQ - HD..mp3 v]\n        set x to (-214)\n        set y to (-85)\n        go to x: (-214) y: (-85)\n        broadcast (you too v)\n    end\nend\n\nwhen I receive [thank you ! v]\nsay (join [ Thank you for saving me ] (username)) for (2) seconds\nstop all sounds\nwait (0.2) seconds\nstart sound [BB-8 Sound Effects.mp2 v]\n\n@Sprite9\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (1) to (3)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo [backward v] (100000) layers\nswitch costume to (pick random (1) to (2))\ngo to x: (240) y: (pick random (-189) to (180))\nrepeat (100)\n    change x by (-2.5)\nend\ndelete this clone\n\n@ word\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo [backward v] (10) layers\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [start now v]\nstart sound [Ashes Remain - On My Own \[HD Animated Lyrics!\].mp3 v]\nstart sound [Ashes Remain - On My Own \[HD Animated Lyrics!\].mp3 v]\n\n@Sprite1\n\nwhen flag clicked\nhide\n\n@bb-8 ball\n\nwhen flag clicked\nshow\nset [size v] to [100]\nset [roll v] to [3]\nset [speed v] to [ 0.8]\nset [jump v] to [15.25]\ngo to x: (0) y: (0)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    set size to (200) %\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (Speed)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (() - (Speed))\n    end\n    set [xv v] to ((Xv) * (0.94))\n    change x by (Xv)\n    turn right ((Xv) * (Roll)) degrees\n    if <touching (platform v)?> then\n        change y by (1)\n        if <touching (platform v)?> then\n            change y by (1)\n            if <touching (platform v)?> then\n                change y by (1)\n                if <touching (platform v)?> then\n                    change y by (1)\n                    if <touching (platform v)?> then\n                        change y by (1)\n                        if <touching (platform v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w 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 (platform v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (platform v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to (Jump)\n        end\n    end\n    change y by (1)\nend\n\nchange y by (10)\n\nwhen I receive [you too v]\nset x to (-214)\n\nwhen flag clicked\nshow\nforever\n    change y by (-1)\n    if <touching (platform v)?> then\n        set [jet_on v] to [0]\n    else\n        set [jet_on v] to [1]\n    end\n    change y by (1)\n    if <(x position) > [240]> then\n        broadcast (Next level v)\n        set x to (-239)\n    end\n    if <<touching color (#ff0000)?> or <touching color (#003fff)?>> then\n        start sound [SPECIAL v]\n        set x to (-214)\n        set y to (-85)\n        go to x: (-214) y: (-85)\n    end\n    if <touching color (#00ff55)?> then\n        set [jump v] to [15]\n        wait (1) seconds\n        set [jump v] to [17]\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nshow\ngo to x: (95) y: (-49)\ngo [backward v] (100) layers\nbroadcast (Thank you ! v)\n\n@ Thumbnail\n\nwhen flag clicked\nshow\ngo to [front v] layer\n\nwhen this sprite clicked\nset [ghost v] effect to (100)\nbroadcast (START NOW v)\n\n