Harry Potter a Platformer #all#Games#stories#tutorials

Instructions: ★Welcome to Harry Potter a Platformer!!★\n\n★★★Instructions★★★\n~ Arrow Keys or WASD to move!!\n~ Press "R" to restart.\n~ Avoid spikes, dementors and the mandrakes\n~ All levels are 100% possible!\n~ Love, fav and follow @Scratcher_No-1!\n\n★★★Credits ★★★\n~ Thanks to @class12321 for the amazing dobby art!\n~ Youtube for the Music!\n~ Cooltext.com\n~ Scratch Team for making scratch\n~ J.K Rowling for writting harry potter!!!!\n~ Google for the plant baby and hogwarts!\n~ Else everything by- @Scratcher_No-1\n\n★More★\n~ Love, fav and follow @Scratcher_No-1 for more!\n~ ❤️ and ⭐️!!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#all#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#games#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#stories#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials#tutorials\n\n\nespecially made for my sister!!

@Stage\n\n@Blank\n\n@Player\n\ndefine Gravity\nchange [change in y v] by (-1)\nchange y by (change in y)\nif <touching color (#414141)?> then\n    change y by ((-1) * (change in y))\n    set [change in y v] to [0]\nend\nchange y by (-1)\nif <touching color (#414141)?> then\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        set [change in y v] to [15]\n    end\nend\nchange y by (1)\n\ndefine Side Collsion\nif <touching color (#414141)?> then\n    change y by (1)\n    if <touching color (#414141)?> then\n        change y by (1)\n        if <touching color (#414141)?> then\n            change y by (1)\n            if <touching color (#414141)?> then\n                change y by (1)\n                if <touching color (#414141)?> then\n                    change y by (1)\n                    if <touching color (#414141)?> then\n                        change x by ((Change in x) * (-1))\n                        change y by (-5)\n                        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                            if <(Change in x) > [0]> then\n                                set [change in x v] to [-5]\n                            else\n                                set [change in x v] to [5]\n                            end\n                            set [change in y v] to [10]\n                        else\n                            set [change in x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset size to (50) %\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\ngo to x: (0) y: (0)\nset [change in y v] to [0]\nset [change in x v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [change in x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [change in x v] by (-1)\n    end\n    set [change in x v] to ((Change in x) * (0.9))\n    change x by (Change in x)\n    Side Collsion\n    Gravity\n    if <(x position) > [308]> then\n        broadcast (next level v)\n    end\n    if <<touching (spikes v)?> or <<touching (dementors v)?> or <touching (mandrakes v)?>>> then\n        broadcast (restart v)\n    end\n    if <<touching color (#002699)?> or <touching color (#4a6cd4)?>> then\n        set [change in y v] to [70]\n        set [change in x v] to [0]\n        change [change in y v] by (20)\n    end\nend\n\nwhen flag clicked\nset [change in x v] to [0]\n\nwhen [z v] key pressed\nbroadcast (next level v)\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <[308] < (x position)> then\n        broadcast (next level v)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-115) y: (-48)\nset [change in y v] to [0]\nset [change in x v] to [0]\nset [costume v] to [1]\nchange [level v] by (1)\n\nwhen I receive [restart v]\ngo to x: (-115) y: (-48)\nset [change in y v] to [0]\nset [change in x v] to [0]\n\nwhen [r v] key pressed\nbroadcast (restart v)\n\nwhen [space v] key pressed\nrepeat until <<not <touching color (#414141)?>> or <(climbing) = [2]>>\n    change y by (1)\nend\n\nwhen flag clicked\nset size to (50) %\nhide variable [score v]\nhide variable [☁ high score v]\nset [score v] to [0]\nset [☁ high score v] to [0]\nwait until <(level) = [4]>\nrepeat until <not <(level) = [4]>>\n    if <<touching (land v)?> or <touching (moving platformer v)?>> then\n        wait (2) seconds\n        if <<touching (land v)?> or <touching (moving platformer v)?>> then\n            go to (land v)\n        end\n    end\nend\nwait until <(level) = [6]>\nrepeat until <not <(level) = [6]>>\n    if <<touching (land v)?> or <touching (moving platformer v)?>> then\n        wait (2) seconds\n        if <<touching (land v)?> or <touching (moving platformer v)?>> then\n            go to (land v)\n        end\n    end\nend\nwait until <(level) = [8]>\nrepeat until <not <(level) = [8]>>\n    if <<touching (land v)?> or <touching (moving platformer v)?>> then\n        wait (2) seconds\n        if <<touching (land v)?> or <touching (moving platformer v)?>> then\n            go to (moving platformer v)\n        end\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\n\nif <not <touching (spikes v)?>> then\n\nwhen flag clicked\nforever\n    if <(level) = [5]> then\n        if <touching (sprite1 v)?> then\n            broadcast (dobby v)\n        end\n    end\nend\n\nwhen I receive [restart v]\n\nwhen flag clicked\ngo to x: (-115) y: (-48)\n\nglide (1) secs to x: (0) y: (0)\n\n\n\n@land\n\nwhen I receive [next level v]\nset [☁ high score v] to [0]\nnext costume\n\nchange [level v] by (1)\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [level v] to (costume [number v])\n\nwhen I receive [up v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [13]> then\n        broadcast (Commence THEE project v)\n    end\nend\n\n@spikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [up v]\nnext costume\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nforever\n    if <(level) = [3]> then\n        forever\n            glide (1) secs to x: (-104) y: (0)\n            glide (1) secs to x: (-23) y: (0)\n        end\n    end\nend\n\n\n\n@text\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Love fave\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    wait (pick random (40) to (50)) seconds\n    switch costume to (costume1 v)\n    go to x: (0) y: (50)\n    show\n    go to [front v] layer\n    repeat (9)\n        change y by (-6)\n    end\n    repeat (5)\n        change y by (3)\n    end\n    repeat (5)\n        change y by (-1)\n    end\n    wait (2) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\nend\n\n@Dementors\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [3]> then\n        show\n        point in direction (90)\n        glide (1) secs to x: (-104) y: (0)\n        glide (1) secs to x: (-23) y: (0)\n    else\n        hide\n    end\nend\n\nglide (1) secs to x: (-104) y: (0)\nglide (1) secs to x: (-23) y: (0)\n\ngo to x: (167) y: (111)\n\nglide (1) secs to x: (-3) y: (1)\n\n\n\npoint in direction (-90)\n\n@Sprite1\n\nwhen flag clicked\nset size to (70) %\nhide\nforever\n    if <<(level) = [5]> or > then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [dobby v]\nsay [Hello! My name is dobby write D o b b y in you're Keyboard If you need any help! :\)] for (4) seconds\n\nif <(level) = [7]> then\n    forever\n        show\n    end\nend\nif <(answer) = [add a moving platformer]> then\n    broadcast (Moving platformer v)\nend\n\n@Moving platformer\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [7]> then\n        show\n        glide (4) secs to x: (-93) y: (0)\n        glide (4) secs to x: (103) y: (0)\n    else\n        hide\n    end\nend\n\nwhen I receive [moving platformer v]\n\n\n    forever\n        go to x: (0) y: (0)\n    end\nend\n\n@Mandrakes\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [8]> then\n        show\n        switch costume to (comment- mandrake if you are seeing this!!!! v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        start sound [Mandrake Potting _ Harry Potter and the Chamber of Secrets2 v]\n    end\nend\n\n\n\nstop all sounds\n\nwhen flag clicked\nforever\n    if <(level) = [9]> then\n        show\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [10]> then\n        hide\n    end\nend\n\n@tn\n\nwhen flag clicked\nhide\n\nshow\n\ngo to [front v] layer\n\n