Koala Platformer 

Instructions: I Finally finished it!!!!! I love it like and fav for \n                        Koala\n                                Platformer\n                                                 2!!!!!!!!! 

@Stage\n\nwhen flag clicked\nswitch backdrop to (start v)\n\nwhen backdrop switches to [backdrop9 v]\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen this sprite clicked\nbroadcast (Level Restart v)\nhide\nswitch backdrop to (backdrop2 v)\n\n@Koala\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (0.7)\n        point in direction (90)\n        switch costume to (tenor v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-0.7)\n        point in direction (90)\n        switch costume to (costume1 v)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-8]\n                                else\n                                    set [xv v] to [8]\n                                end\n                            else\n                                set [yv v] to [10]\n                            end\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nset [time v] to [0]\nrepeat until <(backdrop [name v]) = [ 2 ]>\n    set [time v] to (timer)\n    wait (0.01) seconds\nend\n\nwhen I receive [level restart v]\nshow\ngo to x: (-226) y: (4)\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (Level Restart v)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [587069_-Endgame-.mp3 v] until done\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching color (#fff000)?> then\n        broadcast (Coin v)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (start v)\ngo to x: (-226) y: (4)\nrepeat until <(backdrop [name v]) = [ backdrop3 ]>\n    if <(x position) > [238]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-226) y: (4)\n    end\nend\n\n@Coins\n\nwhen flag clicked\nset [coins v] to [0]\nswitch costume to (costume2 v)\n\nwhen I receive [coin v]\nnext costume\nnext backdrop\n\nwhen backdrop switches to [backdrop11 v]\nhide\n\n@Sprite2\n\nwhen backdrop switches to [backdrop8 v]\nshow\nforever\n    wait (1) seconds\n    wait (2) seconds\n    change [ghost v] effect by (25)\n    wait (2) seconds\n    change [ghost v] effect by (25)\n    wait (1) seconds\n    change [ghost v] effect by (25)\n    wait (1) seconds\n    change [ghost v] effect by (25)\n    wait (1) seconds\n    change [ghost v] effect by (25)\n    clear graphic effects\n    set [ghost v] effect to (0)\n    show\nend\n\nwhen flag clicked\nhide\n\nrepeat (1)\n\nwhen backdrop switches to [backdrop9 v]\nhide\nforever\n    stop [other scripts in sprite v]\nend\n\nwhen backdrop switches to [backdrop9 v]\n\nforever\n    wait (1) seconds\n    wait (2) seconds\n    change [ghost v] effect by (25)\n    wait (2) seconds\n    change [ghost v] effect by (25)\n    wait (1) seconds\n    change [ghost v] effect by (25)\n    wait (1) seconds\n    change [ghost v] effect by (25)\n    wait (1) seconds\n    change [ghost v] effect by (25)\n    clear graphic effects\n    set [ghost v] effect to (0)\n    show\nend\n\nforever\n    wait (1) seconds\n    wait (2) seconds\n    change [ghost v] effect by (25)\n    wait (2) seconds\n    change [ghost v] effect by (25)\n    wait (1) seconds\n    change [ghost v] effect by (25)\n    wait (1) seconds\n    change [ghost v] effect by (25)\n    wait (1) seconds\n    change [ghost v] effect by (25)\n    clear graphic effects\n    set [ghost v] effect to (0)\n    show\nend\n\n