Harry potter platformer
@Stage\n\n@Harry potter\n\nwhen flag clicked\nshow\nswitch backdrop to (backdrop1 v)\ngo to x: (-213) y: (-70)\nswitch costume to (costume1 v)\ngo to [front v] layer\nforever\n    change [y v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\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 y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to [10]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\nend\n\nwhen I receive [fg v]\n\nwhen I receive [fg v]\n\nwhen I receive [next level v]\ngo to x: (-213) y: (-55)\nswitch backdrop to (next backdrop v)\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        broadcast (next level v)\n    end\n    if <touching color (#cc0000)?> then\n        go to x: (-213) y: (-70)\n    end\nend\n\nwhen [space v] key pressed\nswitch costume to (costume2 v)\nwait (1) seconds\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <<touching (drawing-cloaks-dementor-2 v)?> or <<touching (drawing-cloaks-dementor-12 v)?> or <touching (spider-clipart-easy-cartoon v)?>>> then\n        go to x: (-216) y: (-96)\n    end\nend\n\nwhen [timer v] > (0.3)\nrepeat (5)\n    go to [back v] layer\nend\n\n@expecto patronum\n\nwhen flag clicked\nforever\n    if <key (1 v) pressed?> then\n        switch costume to (expecto patronum v)\n        wait (0.1) seconds\n        hide\n    end\n    if <key (2 v) pressed?> then\n        switch costume to (costume1 v)\n        wait (0.1) seconds\n        hide\n    end\n    if <key (3 v) pressed?> then\n        switch costume to (stupfey v)\n        wait (0.1) seconds\n        hide\n    end\n    if <key (3 v) pressed?> then\n        switch costume to (stupfey v)\n        wait (0.1) seconds\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    wait until <key (space v) pressed?>\n    go to (harry potter v)\n    show\n    point in direction (90)\n    repeat until <touching (_edge_ v)?>\n        move (8) steps\n    end\n    hide\nend\n\n@Sprite2\n\n@drawing-cloaks-dementor-12\n\nwhen backdrop switches to [backdrop11 v]\nshow\nforever\n    wait until <touching color (#c5c5c5)?>\n    hide\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (120) y: (96)\nshow\nforever\n    wait until <touching color (#c5c5c5)?>\n    hide\nend\n\nwhen backdrop switches to [backdrop15 v]\nshow\ngo to x: (117) y: (-55)\nforever\n    wait until <touching color (#c5c5c5)?>\n    hide\nend\n\nwhen backdrop switches to [backdrop15 v]\nforever\n    glide (1) secs to x: (-9) y: (-55)\n    glide (1) secs to x: (124) y: (-57)\nend\n\n@drawing-cloaks-dementor-2\n\nwhen backdrop switches to [backdrop6 v]\nshow\nforever\n    wait until <touching color (#c5c5c5)?>\n    hide\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop4 v]\nshow\nforever\n    wait until <touching color (#c5c5c5)?>\n    hide\nend\n\n@Sprite3\n\nwhen backdrop switches to [backdrop6 v]\nshow\nforever\n    wait until <touching color (#00ff6a)?>\n    hide\nend\n\nwhen flag clicked\nhide\n\n@spider-clipart-easy-cartoon\n\nwhen backdrop switches to [backdrop8 v]\nshow\nforever\n    wait until <touching color (#64ffe7)?>\n    hide\nend\n\nwhen flag clicked\nhide\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nrepeat (10)\n    change [ghost v] effect by (15)\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop11 v]\nshow\nforever\n    glide (0.5) secs to x: (-61) y: (-1)\n    wait (0.5) seconds\n    glide (0.5) secs to x: (72) y: (-3)\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [backdrop12 v]\nhide\n\n
Can we please get this top loved!?? :O\n\nThis is my first platform, i hope you like it, more levels are comming soon\nif you enjoyed please love fav and follow!\n\nkey 1 is patronus\nkey 2 is expelliarmus \nkey 3 is stupefy\n\nMore spells and levels comming soon!