Pizza Quest~A Platformer Part-2

Instructions: arrow keys \nhey this has come to my notice that most of you people love and fave my project only to use the icon\nget 10 secret pizzas to complete a mission\nGET ALL WORDS TO COMPLETE A MISSION\nLOVE AND FAV TO COMPLETE A MISSION\ntouch spike -1\nbeat world record\nSCORE 100 TO COMPLETE A MISSION\nSCORE 200 COMPLETE A MISSION\nSCORE 300 COMPLETE A MISSION\nSCORE 400 COMPLETE A MISSION\nSCORE 500 COMPLETE A MISSION\n100 likes for a part3\n\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music\n#All #Animations #Stories #Trending #Art #Music#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#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#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#games#games#games#games#games#games#games#games\n\n\n\n

@Stage\n\nwhen I receive [start v]\nforever\n    if <key (right arrow v) pressed?> then\n        wait (1) seconds\n        change [score v] by (1)\n    end\nend\n\n@Sprite4\n\n@Sprite1\n\nwhen I start as a clone\ngo to [back v] layer\ngo to x: (pick random (-200) to (200)) y: (180)\npoint in direction (pick random (360) to (-360))\nshow\nset size to (pick random (20) to (26)) %\nset [ghost v] effect to (pick random (70) to (60))\nforever\n    change y by (-10)\n    if <(y position) < [-180]> then\n        go to x: (pick random (-200) to (200)) y: (180)\n    end\nend\n\nwhen I receive [start v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [change scene v]\nforever\n    create clone of (_myself_ v)\nend\n\n@player\n\nwhen flag clicked\nswitch costume to (1  v)\ngo to x: (-175) y: (114)\npoint in direction (90)\n\ndefine move-in steps (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speedx) / (steps))\n    check touching solid\n    if <(touching) > [0]> then\n        set x to (last value)\n        set [speedx v] to [0]\n    end\n    set [last value v] to (y position)\n    change y by ((pseedy) / (steps))\n    check touching solid\n    if <(touching) > [0]> then\n        set y to (last value)\n        if <(pseedy) < [0]> then\n            set [falling v] to [0]\n        end\n        set [pseedy v] to [0]\n    end\nend\n\ndefine check touching solid\nif <touching (level v)?> then\n    set [touching v] to [1]\nelse\n    set [touching v] to [0]\nend\n\nwhen I receive [tick-player v]\ncontrols-up and down\ncontrols #left#right\nmove-in steps (([abs v] of (speedx) ) + ([abs v] of (pseedy) ))\nSet Costume\n\ndefine controls-up and down\nif <<key (up arrow v) pressed?> or <mouse down?>> then\n    if <(falling) < [3]> then\n        set [pseedy v] to (jump force)\n    end\nend\nchange [pseedy v] by (gravity)\n\ndefine controls #left#right\nset [keyx v] to ((<key (right arrow v) pressed?> - <key (left arrow v) pressed?>) + <mouse down?>)\nif <(KeyX) = [0]> then\n    if <([abs v] of (speedx) ) < [1]> then\n        set [frame v] to [0]\n        set [speedx v] to [0]\n    else\n        change [frame v] by (0.5)\n    end\nelse\n    change [speedx v] by ((KeyX) * (acceleration))\n    point in direction ((KeyX) * (90))\n    change [frame v] by (1)\nend\nset [speedx v] to ((speedx) * (resistence))\n\ndefine #reset#begin#level\ngo to x: (-147) y: (-9)\nset [scene# v] to [1]\nset [pseedy v] to [0]\nset [speedx v] to [0]\nset [falling v] to [99]\nbroadcast (game loop v)\nbroadcast (change scene v)\n\nwhen I receive [game loop v]\nforever\n    broadcast (tick first v)\n    broadcast (tick-player v)\n    broadcast (tick last v)\nend\n\nwhen I receive [tick last v]\nif <(x position) > [235]> then\n    begin scene# ((scene#) + (1)) go to x: [-235]\nend\nif <(x position) < [-235]> then\n    begin scene# ((scene#) + (-1)) go to x: [235]\nend\n\ndefine begin scene# (scene#) go to x: (x)\nset [scene# v] to (scene#)\nset x to (x)\nbroadcast (change scene v)\nstop [other scripts in sprite v]\nwait (0) seconds\nset rotation style [don't rotate v]\nfix collision in direction [0]\nSet Costume\nbroadcast (game loop v)\n\ndefine fix collision in direction (dir)\nset [tempo v] to (direction)\npoint in direction (dir)\nset [distance v] to [1]\nrepeat (200)\n    check touching solid\n    if <(touching) < [1]> then\n        point in direction (tempo)\n        stop [this script v]\n    end\n    move (distance) steps\n    turn right (180) degrees\n    change [distance v] by (1)\nend\n\nwhen I receive [tick first v]\nset rotation style [don't rotate v]\n\ndefine Set Costume\nset rotation style [left-right v]\n\nwhen I receive [lose v]\ngo to x: ( -175) y: (114)\n\nwhen I receive [start v]\nset [gravity v] to [-1.5]\nset [jump force v] to [12]\nset [acceleration v] to [1.5]\nset [resistence v] to [0.8]\n#reset#begin#level\n\nwhen I receive [next cos##player v]\nswitch costume to (1 2 v)\n\n@level\n\nwhen flag clicked\nswitch costume to (scene1 v)\ngo to x: (0) y: (0)\ngo to [back v] layer\nforever\n    if <(costume [name v]) = [scene11]> then\n        change [score v] by (0)\n        set [score v] to (score)\n        broadcast (mc\ v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [change scene v]\nswitch costume to (join [scene] (scene#))\n\n@f83b4e37fcecaad2d94ae182c7cca62f\n\nwhen flag clicked\nhide\nset [☁ secret  pizzas v] to [0]\nforever\n    play sound [Freddy's Music box v] until done\nend\n\n@DJLENZ\n\nwhen flag clicked\nset size to (100) %\npoint in direction (90)\ngo to [front v] layer\ngo to x: (-124) y: (0)\nglide (1) secs to x: (30) y: (0)\nglide (1) secs to x: (-100) y: (0)\nglide (1) secs to x: (0) y: (100)\nglide (1) secs to x: (0) y: (0)\nwait (0) seconds\nrepeat (2)\n    turn right (15) degrees\n    wait (0) seconds\n    change size by (-20)\n    wait (0) seconds\n    turn left (30) degrees\n    wait (0) seconds\n    change size by (-20)\n    point in direction (90)\nend\nhide\nbroadcast (START v)\n\nwhen flag clicked\nshow\n\ndelete this clone\n\nhide\n\n@spike\n\nwhen flag clicked\nswitch costume to (scene1 v)\nset [score v] to [0]\ngo to x: (0) y: (0)\ngo to [back v] layer\nhide variable [score v]\nhide variable [☁ world record v]\nforever\n    if <touching (player v)?> then\n        broadcast (LOSE v)\n        change [score v] by (-1)\n        if <(score) > (☁ world record)> then\n            set [☁ world record v] to (score)\n        end\n    end\n    if <(score) = [100]> then\n        broadcast (SCORE1 v)\n    end\n    if <(score) = [200]> then\n        broadcast (SC2 v)\n    end\n    if <(score) = [300]> then\n        broadcast (SC3 v)\n    end\n    if <(score) = [400]> then\n        broadcast (SC4 v)\n    end\n    if <(score) = [500]> then\n        broadcast (SC5 v)\n    end\nend\n\nwhen I receive [change scene v]\nswitch costume to (join [scene] (scene#))\nif <(costume [number v]) = [10]> then\n    broadcast (mc\ v)\nend\n\nwhen I receive [start v]\nshow variable [☁ world record v]\nshow variable [score v]\n\nwhen I receive [start v]\nif <key (right arrow v) pressed?> then\n    wait (1) seconds\n    change [score v] by (1)\nend\n\n@pizza\n\nwhen flag clicked\nhide variable [☁ secret  pizzas v]\n\nwhen I receive [change scene v]\nshow\nclear graphic effects\nswitch costume to (join [scene] (scene#))\n\nglide (0.5) secs to x: (0) y: (3)\n\nwhen I receive [start v]\nshow\nshow variable [☁ secret  pizzas v]\nclear graphic effects\ngo to x: (0) y: (0)\ngo to [back v] layer\nforever\n    glide (0.5) secs to x: (0) y: (3)\n    glide (0.5) secs to x: (0) y: (-2)\n    if <touching (player v)?> then\n        glide (0.2) secs to x: (0) y: (78)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        set [☁ secret  pizzas v] to ((☁ Secret  Pizzas) + (1))\n        if <(☁ Secret  Pizzas) = [10]> then\n            broadcast (PIZZA COMPLERE v)\n        end\n    end\nend\n\n@secret pizza indicator\n\nwhen flag clicked\nset [☁ secret  pizzas v] to [0]\nhide\ngo to x: (36) y: (200)\n\nwhen I receive [pizza complere v]\nswitch costume to (costume1 v)\nshow\nglide (2) secs to x: (17) y: (60)\nwait (1) seconds\nglide (2) secs to x: (17) y: (200)\n\nwhen I receive [score1 v]\nswitch costume to (costume2 v)\nshow\nglide (2) secs to x: (17) y: (60)\nwait (1) seconds\nglide (2) secs to x: (17) y: (200)\n\nwhen I receive [sc2 v]\nswitch costume to (costume3 v)\nshow\nglide (2) secs to x: (17) y: (60)\nwait (1) seconds\nglide (2) secs to x: (17) y: (200)\n\nwhen I receive [sc3 v]\nswitch costume to (costume4 v)\nshow\nglide (2) secs to x: (17) y: (60)\nwait (1) seconds\nglide (2) secs to x: (17) y: (200)\n\nwhen I receive [sc4 v]\nswitch costume to (costume5 v)\nshow\nglide (2) secs to x: (17) y: (60)\nwait (1) seconds\nglide (2) secs to x: (17) y: (200)\n\nwhen I receive [sc5 v]\nswitch costume to (costume6 v)\nshow\nglide (2) secs to x: (17) y: (60)\nwait (1) seconds\nglide (2) secs to x: (17) y: (200)\n\nwhen I receive [mc\ v]\ngo to [front v] layer\nswitch costume to (costume7 v)\nshow\nglide (2) secs to x: (17) y: (60)\nwait (1) seconds\nglide (2) secs to x: (17) y: (200)\n\nwhen I receive [next cos##player v]\nswitch costume to (costume8 v)\nshow\nglide (2) secs to x: (17) y: (60)\nwait (1) seconds\nglide (2) secs to x: (17) y: (200)\n\nwhen I receive [word hunt complete# v]\nswitch costume to (costume9 v)\nshow\nglide (2) secs to x: (17) y: (60)\nwait (3) seconds\nglide (2) secs to x: (17) y: (200)\n\n@love and fave detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nbroadcast (next cos##player v)\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-20))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nshow\nforever\n    turn right (2) degrees\n    go to [back v] layer\n    go to (word hunt v)\nend\n\nwhen I receive [change scene v]\nshow\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [word hunt complete# v]\nforever\n    hide\n    hide variable [words completed v]\nend\n\n@WORD HUNT\n\nwhen flag clicked\nset [word hunt v] to [PIZZA]\nset [words completed v] to []\nshow\nswitch costume to (glow-p v)\ngo to x: (0) y: (0)\ngo to [back v] layer\nforever\n    glide (1) secs to x: (0) y: (15)\n    glide (1) secs to x: (0) y: (0)\n    if <touching (player v)?> then\n        glide (0.5) secs to x: (0) y: (28)\n        change [ghost v] effect by (20)\n        broadcast (hide v)\n        hide\n        change [words completed v] by (1)\n    end\n    if <(costume [number v]) = [3]> then\n        go to x: (0) y: (13)\n    end\nend\n\nwhen I receive [change scene v]\nswitch costume to (scene#)\nshow\n\nif <touching (player v)?> then\n    broadcast (hide v)\n    hide\n    broadcast (WORDS v)\nend\n\n@P\n\nwhen flag clicked\nset [words completed v] to []\nhide\nforever\n    if <<(WORDS COMPLETED) = [1]> or <(WORDS COMPLETED) > [1]>> then\n        show\n        go to x: (-223) y: (136)\n    end\nend\n\ndelete this clone\n\ncreate clone of (_myself_ v)\n\n@1\n\ndelete this clone\n\nwhen flag clicked\nhide\nforever\n    if <<(WORDS COMPLETED) = [2]> or <(WORDS COMPLETED) > [1]>> then\n        show\n        go to x: (-223) y: (95)\n    end\nend\n\n@Z\n\ndelete this clone\n\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\nforever\n    if <<(WORDS COMPLETED) = [3]> or <(WORDS COMPLETED) > [3]>> then\n        show\n        go to x: (-223) y: (55)\n    end\nend\n\n@Z2\n\ndelete this clone\n\nwhen flag clicked\nhide\nforever\n    if <<(WORDS COMPLETED) = [4]> or <(WORDS COMPLETED) > [4]>> then\n        show\n        go to x: (-223) y: (17)\n    end\nend\n\n@A\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\nforever\n    if <<(WORDS COMPLETED) = [5]> or <(WORDS COMPLETED) > [5]>> then\n        show\n        go to x: (-223) y: (-23)\n        broadcast (WORD HUNT COMPLETE# v)\n        stop [this script v]\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [next cos##player v]\nhide\n\nwhen I receive [start v]\nglide (1) secs to x: (36) y: (500)\nshow\nwait (4) seconds\nforever\n    switch costume to (pick random (1) to (2))\n    glide (2) secs to x: (36) y: (120)\n    wait (3) seconds\n    glide (2) secs to x: (36) y: (500)\n    wait (pick random (9) to (15)) seconds\nend\n\n