꧁ Harry Potter Platformer ꧂
@Stage\n\nwhen flag clicked\nswitch backdrop to (1 v)\n\nwhen I receive [quiz!!! :d v]\nswitch backdrop to (arrière plan1 v)\n\nwhen I receive [finale!!! ooo v]\nswitch backdrop to (outside v)\n\nwhen I receive [crowd v]\nswitch backdrop to (arrière plan3 v)\nwait (2) seconds\nswitch backdrop to (arrière plan4 v)\nwait (2) seconds\nbroadcast (Finale!!! OoO v)\n\nwhen flag clicked\nforever\n    if <(voldy life) = [done]> then\n        forever\n            if <(house) = [Gryffindor]> then\n                switch backdrop to (gryffindor common room v)\n            end\n            if <(house) = [Hufflepuff]> then\n                switch backdrop to (hufflepuff common room v)\n            end\n            if <(house) = [Slytherin]> then\n                switch backdrop to (slytherin common room v)\n            end\n            if <(house) = [Ravenclaw]> then\n                switch backdrop to (ravenclaw common room v)\n            end\n        end\n    end\nend\n\n@thumbnail\n\nwhen flag clicked\nhide variable [level v]\ngo to [front v] layer\nset [ghost v] effect to (0)\nchange [ghost v] effect by (100)\n\nwhen flag clicked\nforever\n    play sound [harry potter theme song on piano v] until done\nend\n\n@player\n\nwhen flag clicked\nset [the level v] to [1]\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((X Velocity) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (level v)?> then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [y velocity v] to [0]\n        if  then\n    end\n    change y by (-1)\n    if <<touching (level v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [the level v] by (1)\n    end\n    if <touching (danger v)?> then\n        broadcast (Reset v)\n    else\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n        if <touching (danger v)?> then\n            broadcast (Reset v)\n        end\n    end\nend\n\nwhen [1 v] key pressed\nswitch costume to (harry v)\n\nwhen [2 v] key pressed\nswitch costume to (hermione v)\n\nwhen [3 v] key pressed\nswitch costume to (ron v)\n\nwhen [4 v] key pressed\nswitch costume to (ginny v)\n\nwhen [5 v] key pressed\nswitch costume to (neville v)\n\nwhen [6 v] key pressed\nswitch costume to (cho v)\n\nwhen [7 v] key pressed\nswitch costume to (luna v)\n\nwhen flag clicked\nforever\n    if <touching (exit v)?> then\n        go to x: (-166) y: (-88)\n        next backdrop\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nforever\n    if <<touching (danger v)?> or <<touching (spider v)?> or <touching (dementor v)?>>> then\n        change [ghost v] effect by (100)\n        wait (0.5) seconds\n        show\n        change [ghost v] effect by (-100)\n        go to x: (-166) y: (-88)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (1 v)\n\nwhen [8 v] key pressed\nswitch costume to (draco v)\n\nwhen [9 v] key pressed\nswitch costume to (lavender v)\n\nwhen [0 v] key pressed\nswitch costume to (dobby v)\n\nwhen flag clicked\nforever\n    if <touching (shrinker v)?> then\n        set size to (45) %\n    end\nend\n\nwhen flag clicked\nset size to (70) %\n\nwhen [r v] key pressed\ngo to x: (-166) y: (-88)\n\nwhen flag clicked\nforever\n    if <touching (bigger v)?> then\n        change y by (10)\n        set size to (70) %\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (quiz exit v)?> then\n        hide\n        switch backdrop to (arrière plan1 v)\n        broadcast (QUIZ!!! :D v)\n    end\nend\n\nwhen backdrop switches to [arrière plan1 v]\nhide\n\nwhen backdrop switches to [outside v]\ngo to x: (-166) y: (-88)\nshow\n\nwhen flag clicked\nforever\n    if <touching (voldy spell v)?> then\n        change [player life v] by (-1)\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(voldy life) = [done]> then\n        hide\n    end\nend\n\nwhen flag clicked\nswitch costume to (harry v)\ngo to x: (-166) y: (-88)\n\nwhen I receive [reset v]\ngo to x: (-166) y: (-88)\n\nwhen I receive [next level v]\ngo to x: (-166) y: (-88)\n\nwhen flag clicked\nshow\n\n@level\n\nwhen backdrop switches to [1 v]\nswitch costume to (1 v)\n\nwhen backdrop switches to [2 v]\nswitch costume to (2 v)\n\nwhen backdrop switches to [3 v]\nswitch costume to (3 v)\n\nwhen backdrop switches to [4 v]\nswitch costume to (4 v)\n\nwhen backdrop switches to [5 v]\nswitch costume to (5 v)\n\nwhen backdrop switches to [6 v]\nswitch costume to (6 v)\n\nwhen backdrop switches to [8 v]\nswitch costume to (8 v)\n\nwhen backdrop switches to [7 v]\nswitch costume to (7 v)\n\nwhen backdrop switches to [9 v]\nswitch costume to (9 v)\n\nwhen backdrop switches to [10 v]\nswitch costume to (10 v)\n\nwhen backdrop switches to [11 v]\nswitch costume to (11 v)\n\nwhen backdrop switches to [13 v]\nswitch costume to (13 v)\n\nwhen backdrop switches to [14 v]\nswitch costume to (14 v)\n\nwhen backdrop switches to [15 v]\nswitch costume to (15 v)\n\nwhen backdrop switches to [16 v]\nswitch costume to (16 v)\n\nwhen backdrop switches to [17 v]\nswitch costume to (17 v)\n\nwhen backdrop switches to [18 v]\nswitch costume to (18 v)\n\nwhen backdrop switches to [19 v]\nswitch costume to (19 v)\n\nwhen backdrop switches to [20 v]\nswitch costume to (20 v)\n\nwhen backdrop switches to [arrière plan1 v]\nhide\n\nwhen flag clicked\nshow\n\nwhen I receive [finale!!! ooo v]\nshow\nswitch costume to (21 v)\n\nwhen flag clicked\nforever\n    if <(voldy life) = [done]> then\n        hide\n    end\nend\n\nwhen I receive [next level v]\nnext costume\n\n@exit\n\nwhen flag clicked\nshow\ngo to x: (36) y: (28)\n\nwhen backdrop switches to [20 v]\nhide\n\n@danger\n\nwhen backdrop switches to [3 v]\nswitch costume to (3 v)\n\nwhen backdrop switches to [2 v]\nswitch costume to (2 v)\n\nwhen backdrop switches to [1 v]\nswitch costume to (1 v)\n\nwhen backdrop switches to [4 v]\nswitch costume to (4 v)\n\nwhen backdrop switches to [5 v]\nswitch costume to (5 v)\n\nwhen backdrop switches to [11 v]\nswitch costume to (11 v)\n\nwhen backdrop switches to [13 v]\nswitch costume to (13 v)\n\nwhen backdrop switches to [14 v]\nswitch costume to (14 v)\n\nwhen backdrop switches to [12 v]\nswitch costume to (12 v)\n\nwhen backdrop switches to [17 v]\nswitch costume to (17 v)\n\nwhen backdrop switches to [18 v]\nswitch costume to (18 v)\n\nwhen backdrop switches to [19 v]\nswitch costume to (19 v)\n\nwhen backdrop switches to [20 v]\nswitch costume to (20 v)\n\n@wand\n\nwhen flag clicked\ngo to (mouse-pointer v)\nshow\nforever\n    glide (0.00001) secs to (mouse-pointer v)\nend\n\nhide\n\n@Mouse trail\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    point in direction (pick random (-180) to (180))\n    wait (0.05) seconds\nend\n\nhide\n\nwhen I start as a clone\nshow\ngo to (mouse-pointer v)\nmove (7) steps\nrepeat (30)\n    change size by (-3.5)\n    move (1) steps\nend\ndelete this clone\n\n@Spider\n\nwhen backdrop switches to [1 v]\nhide\n\nwhen backdrop switches to [5 v]\ngo to x: (149) y: (-137)\nshow\nrepeat until <(backdrop [number v]) = [6]>\n    glide (1) secs to x: (-91) y: (-137)\n    wait (0.9) seconds\n    glide (1) secs to x: (91) y: (-137)\nend\nhide\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [6]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n@book\n\nwhen flag clicked\nset [school material v] to [0]\nhide variable [school material v]\nhide\n\nwhen backdrop switches to [6 v]\nshow\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        hide\n        change [school material v] by (1)\n    end\nend\n\nwhen backdrop switches to [7 v]\nhide\n\n@crystal ball\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        hide\n        change [school material v] by (1)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [8 v]\nshow\n\nwhen backdrop switches to [9 v]\nhide\n\n@cauldron\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [9 v]\nshow\n\nwhen backdrop switches to [10 v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        hide\n        change [school material v] by (1)\n    end\nend\n\n@shrinker\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [10 v]\nshow\n\nwhen backdrop switches to [11 v]\nhide\n\n@bigger\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [14 v]\nshow\n\nwhen backdrop switches to [15 v]\nhide\n\n@Dementor\n\nwhen backdrop switches to [1 v]\nhide\n\nwhen backdrop switches to [15 v]\ngo to x: (149) y: (-137)\nshow\nrepeat until <(backdrop [number v]) = [16]>\n    glide (1) secs to x: (-91) y: (-137)\n    wait (0.9) seconds\n    glide (1) secs to x: (91) y: (-137)\nend\nhide\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [16]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spell v)?> then\n        hide\n    end\nend\n\n@Broom\n\nwhen backdrop switches to [16 v]\nshow\n\nwhen backdrop switches to [17 v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        hide\n        change [school material v] by (1)\n    end\nend\n\nwhen flag clicked\nhide\n\n@spell\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen [space v] key pressed\ngo to (player v)\nshow\nchange x by (10)\nwait (1) seconds\nwait (0.1) seconds\nhide\n\nwhen I receive [finale!!! ooo v]\nswitch costume to (costume2 v)\n\nwhen flag clicked\nforever\n    if <touching (voldemort v)?> then\n        hide\n    end\nend\n\n@quill\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        hide\n        change [school material v] by (1)\n    end\nend\n\nwhen flag clicked\nswitch costume to (quill v)\nhide\n\nwhen backdrop switches to [19 v]\nhide\n\nwhen backdrop switches to [18 v]\nshow\n\n@mcgannogal\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [20 v]\nshow\n\nwhen backdrop switches to [arrière plan1 v]\nhide\n\n@quiz exit\n\nwhen flag clicked\nhide\ngo to x: (36) y: (28)\n\nwhen backdrop switches to [20 v]\nshow\n\nwhen backdrop switches to [arrière plan1 v]\nhide\n\n@Question\n\nwhen flag clicked\nhide\n\nwhen I receive [quiz!!! :d v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [next question v]\nnext costume\n\nwhen I receive [next question v]\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (Results! v)\n    end\nend\n\nwhen I receive [results! v]\nhide\n\n@Gryffindor answer\n\nwhen flag clicked\nhide\n\nwhen I receive [quiz!!! :d v]\nswitch costume to (costume1 v)\nshow\n\nwhen this sprite clicked\nchange [gryffindor v] by (1)\nbroadcast (Next question v)\n\nwhen flag clicked\nset [gryffindor v] to [0]\nset [hufflepuff v] to [0]\nset [slytherin v] to [0]\nset [ravenclaw v] to [0]\n\nwhen I receive [next question v]\nnext costume\n\nwhen I receive [next question v]\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (Results! v)\n    end\nend\n\nwhen I receive [results! v]\nhide\n\nwhen flag clicked\ngo to [front v] layer\n\n@Hufflepuff answer\n\nwhen I receive [quiz!!! :d v]\nswitch costume to (costume1 v)\nshow\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nchange [hufflepuff v] by (1)\nbroadcast (Next question v)\n\nwhen I receive [next question v]\nnext costume\n\nwhen I receive [next question v]\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (Results! v)\n    end\nend\n\nwhen I receive [results! v]\nhide\n\nwhen flag clicked\ngo to [front v] layer\n\n@Slytherin answer\n\nwhen I receive [quiz!!! :d v]\nswitch costume to (costume1 v)\nshow\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nchange [slytherin v] by (1)\nbroadcast (Next question v)\n\nwhen I receive [next question v]\nnext costume\n\nwhen I receive [next question v]\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (Results! v)\n    end\nend\n\nwhen I receive [results! v]\nhide\n\nwhen flag clicked\ngo to [front v] layer\n\n@Ravenclaw answer\n\nwhen I receive [quiz!!! :d v]\nswitch costume to (costume1 v)\nshow\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nchange [ravenclaw v] by (1)\nbroadcast (Next question v)\n\nwhen I receive [next question v]\nnext costume\n\nwhen I receive [next question v]\nforever\n    if <(costume [number v]) = [6]> then\n        broadcast (Results! v)\n    end\nend\n\nwhen I receive [results! v]\nhide\n\nwhen flag clicked\ngo to [front v] layer\n\n@Result\n\nwhen I receive [results! v]\nif <<(Gryffindor) = (Hufflepuff)> and <<(Gryffindor) > (Ravenclaw)> and <(Gryffindor) > (Slytherin)>>> then\n    show\n    set [house v] to [Gryffindor]\n    set [house chosen? v] to [Yes]\n    wait (5) seconds\n    set [results out? v] to [no]\nend\nif <<(Gryffindor) = (Ravenclaw)> and <<(Gryffindor) > (Hufflepuff)> and <(Gryffindor) > (Slytherin)>>> then\n    show\n    set [house v] to [Ravenclaw]\n    set [house chosen? v] to [Yes]\n    wait (5) seconds\n    set [results out? v] to [no]\nend\nif <<(Gryffindor) = (Slytherin)> and <<(Gryffindor) > (Hufflepuff)> and <(Gryffindor) > (Ravenclaw)>>> then\n    show\n    set [house v] to [Slytherin]\n    set [house chosen? v] to [Yes]\n    wait (5) seconds\n    set [results out? v] to [no]\nend\nif <<(Hufflepuff) = (Slytherin)> and <<(Hufflepuff) > (Gryffindor)> and <(Hufflepuff) > (Ravenclaw)>>> then\n    show\n    set [house v] to [Hufflepuff]\n    set [house chosen? v] to [Yes]\n    wait (5) seconds\n    set [results out? v] to [no]\nend\nif <<(Hufflepuff) = (Ravenclaw)> and <<(Hufflepuff) > (Gryffindor)> and <(Hufflepuff) > (Slytherin)>>> then\n    show\n    set [house v] to [Ravenclaw]\n    set [house chosen? v] to [Yes]\n    wait (5) seconds\n    set [results out? v] to [no]\nend\nif <<(Slytherin) = (Ravenclaw)> and <<(Slytherin) > (Gryffindor)> and <(Slytherin) > (Slytherin)>>> then\n    show\n    set [house v] to [Slytherin]\n    set [house chosen? v] to [Yes]\n    wait (5) seconds\n    set [results out? v] to [no]\nend\n\nwhen I receive [results! v]\nif <<(Gryffindor) > (Hufflepuff)> and <<(Gryffindor) > (Ravenclaw)> and <(Gryffindor) > (Slytherin)>>> then\n    set [house v] to [Gryffindor]\n    set [house chosen? v] to [Yes]\n    wait (5) seconds\n    set [results out? v] to [no]\nend\nif <<(Hufflepuff) > (Gryffindor)> and <<(Hufflepuff) > (Ravenclaw)> and <(Hufflepuff) > (Slytherin)>>> then\n    set [house v] to [Hufflepuff]\n    set [house chosen? v] to [Yes]\n    wait (5) seconds\n    set [results out? v] to [no]\nend\nif <<(Ravenclaw) > (Gryffindor)> and <<(Ravenclaw) > (Hufflepuff)> and <(Ravenclaw) > (Slytherin)>>> then\n    set [house v] to [Ravenclaw]\n    set [house chosen? v] to [Yes]\n    wait (5) seconds\n    set [results out? v] to [no]\nend\nif <<(Slytherin) > (Gryffindor)> and <<(Slytherin) > (Hufflepuff)> and <(Slytherin) > (Ravenclaw)>>> then\n    set [house v] to [Slytherin]\n    set [house chosen? v] to [Yes]\n    wait (5) seconds\n    set [results out? v] to [no]\nend\nhide\n\nwhen flag clicked\nhide\n\nbroadcast (crowd v)\n\nwhen flag clicked\nrepeat until <(house chosen?) = [Yes]>\n    set [house v] to [Muggle]\nend\n\nwhen flag clicked\nset [house chosen? v] to [No]\n\nwait (5) seconds\nhide\nbroadcast (crowd v)\n\nwhen I receive [finale!!! ooo v]\nhide\n\nwhen backdrop switches to [outside v]\nhide\n\nwhen I receive [crowd v]\n\nhide\n\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(house) = [Gryffindor]> then\n        switch costume to (gryffindor common room v)\n        show\n        wait (5) seconds\n        broadcast (crowd v)\n        hide\n        stop [other scripts in sprite v]\n    end\n    if <(house) = [Hufflepuff]> then\n        switch costume to (hufflepuff common room v)\n        show\n        wait (5) seconds\n        broadcast (crowd v)\n        hide\n        stop [other scripts in sprite v]\n    end\n    if <(house) = [Slytherin]> then\n        switch costume to (slytherin common room v)\n        show\n        wait (5) seconds\n        broadcast (crowd v)\n        hide\n        stop [other scripts in sprite v]\n    end\n    if <(house) = [Ravenclaw]> then\n        switch costume to (ravenclaw common room v)\n        show\n        wait (5) seconds\n        broadcast (crowd v)\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [results! v]\nset [results out? v] to [yes]\nstop [this script v]\n\nwhen flag clicked\nset [results out? v] to [no]\n\nwhen backdrop switches to [arrière plan3 v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    if <(Results out?) = [no]> then\n        hide\n    end\nend\n\nhide\n\nhide\n\nwhen [space v] key pressed\nhide\n\nwhen backdrop switches to [arrière plan3 v]\nhide\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        hide\n    end\nend\n\nif <<(Gryffindor) = [0]> or <(Gryffindor) = [1]>> then\n    if <<(Ravenclaw) < <(Slytherin) < (Hufflepuff)>> or <(Ravenclaw) < <(Hufflepuff) < (Slytherin)>>> then\n        set [house v] to [Ravenclaw]\n    end\n    if <<(Hufflepuff) < <(Slytherin) < (Ravenclaw)>> or <(Hufflepuff) < <(Ravenclaw) < (Slytherin)>>> then\n        set [house v] to [Hufflepuff]\n    end\n    if <<(Slytherin) < <(Hufflepuff) < (Ravenclaw)>> or <(Slytherin) < <(Ravenclaw) < (Hufflepuff)>>> then\n        set [house v] to [Slytherin]\n    end\nend\n\n@Objects contained\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [6 v]\nshow\n\nwhen flag clicked\nforever\n    if <(school material) = [0]> then\n        switch costume to (costume1 v)\n    end\n    if <(school material) = [1]> then\n        switch costume to (costume2 v)\n    end\n    if <(school material) = [2]> then\n        switch costume to (costume3 v)\n    end\n    if <(school material) = [3]> then\n        switch costume to (costume4 v)\n    end\n    if <(school material) = [4]> then\n        switch costume to (costume5 v)\n    end\n    if <(school material) = [5]> then\n        switch costume to (costume6 v)\n    end\nend\n\nwhen backdrop switches to [arrière plan1 v]\nhide\n\n@small text\n\nwhen flag clicked\nset [ghost v] effect to (0)\nhide\n\nwhen I receive [results! v]\nwait (5) seconds\nshow\nrepeat until <(backdrop [name v]) = [arrière plan3]>\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    repeat (20)\n        change [ghost v] effect by (-5)\n    end\nend\n\n@voldemort\n\nwhen flag clicked\nhide\n\nwhen I receive [finale!!! ooo v]\nshow\n\nwhen flag clicked\nforever\n    if <touching (spell v)?> then\n        change [voldy life v] by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(voldy life) = [done]> then\n        hide\n    end\nend\n\n@voldy text\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [finale!!! ooo v]\nshow\nrepeat (5)\n    next costume\n    wait (3) seconds\nend\nhide\nbroadcast (voldy spell v)\n\n@voldy spell\n\nwhen flag clicked\nhide\nset [voldy life v] to [9]\n\nwhen I receive [voldy spell v]\nrepeat until <(voldy life) = [done]>\n    wait (pick random (1) to (5)) seconds\n    go to [front v] layer\n    show\n    wait (1) seconds\n    hide\nend\n\nwhen flag clicked\n\nforever\n    if <touching (player v)?> then\n    end\nend\n\nhide\n\nwhen flag clicked\nforever\n    if <(voldy life) = [done]> then\n        hide\n    end\nend\n\n@player life bar\n\nwhen flag clicked\nforever\n    if <(player life) = [9]> then\n        switch costume to (costume1 v)\n    end\n    if <(player life) = [8]> then\n        switch costume to (costume2 v)\n    end\n    if <(player life) = [7]> then\n        switch costume to (costume3 v)\n    end\n    if <(player life) = [6]> then\n        switch costume to (costume4 v)\n    end\n    if <(player life) = [5]> then\n        switch costume to (costume5 v)\n    end\n    if <(player life) = [4]> then\n        switch costume to (costume6 v)\n    end\n    if <(player life) = [3]> then\n        switch costume to (costume7 v)\n    end\n    if <(player life) = [2]> then\n        switch costume to (costume8 v)\n    end\n    if <(player life) = [1]> then\n        switch costume to (costume9 v)\n    end\n    if <(player life) = [0]> then\n        switch costume to (costume10 v)\n    end\nend\n\nwhen I receive [voldy spell v]\nshow\nset [player life v] to [9]\nswitch costume to (costume1 v)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [player life v] to [9]\n\nwhen I receive [finale!!! ooo v]\nhide\n\nwhen flag clicked\nforever\n    if <(voldy life) = [done]> then\n        hide\n    end\nend\n\n@voldy life bar\n\nwhen flag clicked\nforever\n    if <(voldy life) = [9]> then\n        switch costume to (costume1 v)\n    end\n    if <(voldy life) = [8]> then\n        switch costume to (costume2 v)\n    end\n    if <(voldy life) = [7]> then\n        switch costume to (costume3 v)\n    end\n    if <(voldy life) = [6]> then\n        switch costume to (costume4 v)\n    end\n    if <(voldy life) = [5]> then\n        switch costume to (costume5 v)\n    end\n    if <(voldy life) = [4]> then\n        switch costume to (costume6 v)\n    end\n    if <(voldy life) = [3]> then\n        switch costume to (costume7 v)\n    end\n    if <(voldy life) = [2]> then\n        switch costume to (costume8 v)\n    end\n    if <(voldy life) = [1]> then\n        switch costume to (costume9 v)\n    end\n    if <(voldy life) = [0]> then\n        switch costume to (costume10 v)\n    end\nend\n\nwhen I receive [voldy spell v]\nshow\nset [voldy life v] to [9]\nswitch costume to (costume1 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [finale!!! ooo v]\nhide\n\nwhen flag clicked\nforever\n    if <(voldy life) = [done]> then\n        hide\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(voldy life) = [0]> then\n        show\n        set size to (0) %\n        switch costume to (costume1 v)\n        repeat (10)\n            change size by (10)\n            change [color v] effect by (10)\n        end\n        hide\n        set [voldy life v] to [done]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(player life) = [0]> then\n        show\n        set size to (0) %\n        switch costume to (costume2 v)\n        repeat (10)\n            change size by (10)\n            change [color v] effect by (10)\n        end\n        hide\n        set [player life v] to [done]\n        broadcast (retry? v)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (Finale!!! OoO v)\nhide\n\nwhen I receive [retry? v]\nset size to (0) %\nshow\nrepeat (10)\n    change size by (10)\nend\n\n@Last text\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(voldy life) = [done]> then\n        show\n        switch costume to (costume1 v)\n        wait (15) seconds\n        forever\n            if <(school material) = [5]> then\n                switch costume to (costume2 v)\n                wait (5) seconds\n                switch costume to (costume7 v)\n                wait (5) seconds\n                stop [all v]\n            end\n            if <(school material) = [4]> then\n                switch costume to (costume3 v)\n                wait (5) seconds\n                switch costume to (costume7 v)\n                wait (5) seconds\n                stop [all v]\n            end\n            if <(school material) = [3]> then\n                switch costume to (costume4 v)\n                wait (5) seconds\n                switch costume to (costume7 v)\n                wait (5) seconds\n                stop [all v]\n            end\n            if <(school material) = [2]> then\n                switch costume to (costume5 v)\n                wait (5) seconds\n                switch costume to (costume7 v)\n                wait (5) seconds\n                stop [all v]\n            end\n            if <(school material) = [1]> then\n                switch costume to (costume6 v)\n                wait (5) seconds\n                switch costume to (costume7 v)\n                wait (5) seconds\n                stop [all v]\n            end\n        end\n    end\nend\n\n
                                 ᵉᵍᵘʳʸ²⁷ ᶦˢ ᵗʸᵖᶦⁿᵍ                    \n                 ꧁ Harry Potter Platformer ꧂\n\n         MY FIRST PLATFORMER!!!! I'm so happy :D\n⚠️WARNING you might need to click the flag 2 times ⚠️ \n\nSorry this is not mobile, it's my first platformer and I'm not a pro at platformers, I worked on this for MONTHS\n\nArrow keys or WASD to move, as usual\nr to respawn\nspace for the spell :)\n\nin this game, you have:\n-a platformer\n-a quiz\n-and the finale\n\nEach number is for a skin, so:\n1) Harry Potter\n2) Hermione Granger\n3) Ron Weasley\n4) Ginny Weasley\n5) Neville Longbottom\n6) Cho Chang\n7) Luna Lovegood\n8) Draco Malfoy\n9) Lavender Brown\n0) Dobby\n\nWhat's your favorite skin? mine's Lavender Brown! I love how I did the hair :)\n\nPlease consider loving and faving this project, and a follow would be very appreciated for all those months of work :) also pls note that I worked on it during my 7-8 month depression ;-;\n\nalso pls don't judge da bg, it ws m first krita artworks XD\n\nWOW 1000 views?!? TYSM :DDD