-Piggy- The platformer  #Games 

Instructions: MUST READ FULL DESCRIPTION!\nPart 2: https://scratch.mit.edu/projects/419733368/\nMOBILE IS NOW WORKING..tips(must read):\nPress jump button then the right or left button to move and jump.\nAlso, click the next skin button to change your character!\nPart 2: Coming soon!\nHello and welcome to Piggy the platformer!\nHope you like it. :D\nThere are currently 5 badges in the game.\n-1: Good ending\n-2: Bad ending\n-3: Secret ending\n-4: Creepy crawly ending\n-5: True ending\nThank you for all your support :D\nIf we get 20 likes, there will be a part 2!\nClick b if you don't want a trail.\nClick space to change into any character(More coming soon)\nClick the down button to shrink.\nIt would help if you remix!

@Stage\n\nwhen I receive [next level v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (intro v)\n\nwhen flag clicked\nforever\n    clear graphic effects\nend\n\nwhen backdrop switches to [the infected v]\nwait (5) seconds\nswitch backdrop to (choosing v)\n\nwhen flag clicked\nforever\n    play sound [Menu Theme Music - Roblox Piggy v] until done\nend\n\nwhen I receive [done v]\nstop [other scripts in sprite v]\n\n@Player\n\nwhen backdrop switches to [level 8 v]\nif <(costume [name v]) = [Giraffy]> then\n    say [Rah!] for (2) seconds\n    broadcast (Scare the memory! v)\nend\n\nwhen backdrop switches to [level 9 v]\nif <(costume [name v]) = [Giraffy]> then\n    say [Rah!] for (2) seconds\n    broadcast (Scare the memory! v)\nend\n\nwhen backdrop switches to [level 9 v]\nif <(costume [name v]) = [Parasee]> then\n    say [Rah!] for (2) seconds\n    broadcast (Scare the memory! v)\nend\n\nwhen backdrop switches to [level 8 v]\nif <(costume [name v]) = [Parasee]> then\n    say [Rah!] for (2) seconds\n    broadcast (Scare the memory! v)\nend\n\nwhen backdrop switches to [level 9 v]\nif <(costume [name v]) = [Dinopiggy]> then\n    say [Rah!] for (2) seconds\n    broadcast (Scare the memory! v)\nend\n\nwhen backdrop switches to [level 8 v]\nif <(costume [name v]) = [Dinopiggy]> then\n    say [Rah!] for (2) seconds\n    broadcast (Scare the memory! v)\nend\n\nwhen I receive [death v]\ngo to x: (-211) y: (-53)\nhide\nswitch backdrop to (level 1 death boss v)\n\nwhen backdrop switches to [level 9 v]\nif <(costume [name v]) = [Angel]> then\n    say [Rah!] for (2) seconds\n    broadcast (Scare the memory! v)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#8c0000)?> then\n        go to x: (-211) y: (-53)\n    end\nend\n\nwhen backdrop switches to [level 8 v]\nif <(costume [name v]) = [Angel]> then\n    say [Rah!] for (2) seconds\n    broadcast (Scare the memory! v)\nend\n\nwhen backdrop switches to [level 9 v]\nif <(costume [name v]) = [Devil]> then\n    say [Rah!] for (2) seconds\n    broadcast (Scare the memory! v)\nend\n\nwhen backdrop switches to [level 8 v]\nif <(costume [name v]) = [Devil]> then\n    say [Rah!] for (2) seconds\nend\n\nwhen flag clicked\nset pen color to (pick random (0) to (100))\npen down\n\nwhen I receive [next level v]\ngo to x: (-211) y: (-53)\n\nwhen backdrop switches to [choosing v]\nshow\n\nwhen backdrop switches to [choosing v]\nshow\n\nwhen flag clicked\ngo to x: (-110) y: (-54)\n\nwhen flag clicked\nforever\n    if <touching (borders v)?> then\n        broadcast (Next level v)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (intro v)\n\nwhen [down arrow v] key pressed\nset size to (25) %\n\nwhen [up arrow v] key pressed\nset size to (35) %\n\nwhen I receive [movedown v]\nset size to (25) %\n\ndefine moveup\nchange y by (1)\nrepeat until <not <touching (ground v)?>>\n    change y by (1)\nend\nchange y by (-1)\n\nwhen I receive [moveup v]\nset size to (35) %\nif <touching (ground v)?> then\n    moveup\n    set [vertical speed v] to [0]\n    if <touching (ground v)?> then\n        set [vertical speed v] to [15]\n    end\nelse\n    change [vertical speed v] by (gravity)\nend\nchange y by (vertical speed)\n\nwhen I receive [moveleft v]\nchange x by (-5)\n\nwhen I receive [moveright v]\nchange x by (5)\n\nwhen flag clicked\nset [gravity v] to [-1]\nset [vertical speed v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change x by (5)\n    end\n    if <key (left arrow v) pressed?> then\n        change x by (-5)\n    end\n    if <touching (ground v)?> then\n        moveup\n        set [vertical speed v] to [0]\n        if <key (up arrow v) pressed?> then\n            set [vertical speed v] to [15]\n        end\n    else\n        change [vertical speed v] by (gravity)\n    end\n    change y by (vertical speed)\nend\n\nwhen I receive [next costume v]\nnext costume\n\nwhen flag clicked\nforever\n    if <touching (vents v)?> then\n        if <(costume [name v]) = [Mousy]> then\n            broadcast (. v)\n        end\n    end\nend\n\nwhen [space v] key pressed\nnext costume\n\nwhen backdrop switches to [end2 v]\nhide\n\nwhen flag clicked\nswitch costume to (piggy v)\n\nwhen I receive [no trailllllll v]\nforever\n    erase all\nend\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [choosing v]\nshow\n\nwhen backdrop switches to [main menu v]\nhide\n\n@...\n\nwhen flag clicked\ncreate clone of (_myself_ v)\nshow\nrepeat (10)\n    go to [front v] layer\nend\nforever\n    turn right (3) degrees\nend\n\nwhen I start as a clone\nshow\nforever\n    turn left (3) degrees\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nwhen backdrop switches to [intro v]\nshow\n\nwhen backdrop switches to [main menu v]\nhide\n\nwhen I receive [stop intro v]\nhide\nswitch backdrop to (main menu v)\n\n@screen guis\n\nwhen backdrop switches to [main menu v]\nhide\n\nwhen backdrop switches to [intro v]\nshow\ngo to [front v] layer\nswitch costume to (costume3 v)\nrepeat (5)\n    clear graphic effects\n    repeat (20)\n        change [ghost v] effect by (5)\n        wait (0.2) seconds\n    end\n    next costume\nend\nswitch backdrop to (main menu v)\n\nwhen backdrop switches to [level 1 death boss v]\nhide\n\nwhen I receive [stop intro v]\nstop [other scripts in sprite v]\n\n@ground\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [main menu v]\nhide\n\nwhen backdrop switches to [choosing v]\nshow\n\nwhen backdrop switches to [choosing v]\nswitch costume to (level 0 v)\n\nwhen backdrop switches to [level 3 v]\nswitch costume to (level 3 v)\n\nwhen backdrop switches to [level 4 v]\nswitch costume to (level 4 v)\n\nwhen backdrop switches to [level 5 v]\nswitch costume to (level 5 v)\n\nwhen backdrop switches to [level 6 v]\nswitch costume to (level 6 v)\n\nwhen flag clicked\ngo [backward v] (1) layers\n\nwhen backdrop switches to [level 1 v]\nswitch costume to (level 1 v)\n\nwhen backdrop switches to [level 2 v]\nswitch costume to (level 2 v)\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [level 7 v]\nswitch costume to (level 7 v)\n\nwhen backdrop switches to [level 8 v]\nswitch costume to (level 8 v)\n\nwhen backdrop switches to [level 9 v]\nswitch costume to (level 9 v)\n\nwhen backdrop switches to [level 1 death boss v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [level 10 v]\nswitch costume to (level 10 v)\n\n@PLAY!\n\nwhen this sprite clicked\nhide\nswitch backdrop to (the infected v)\n\nwhen backdrop switches to [main menu v]\nshow\n\nwhen flag clicked\nswitch backdrop to (intro v)\n\nwhen backdrop switches to [intro v]\nhide\n\n@potion spills\n\nwhen backdrop switches to [main menu v]\nhide\n\nwhen backdrop switches to [level 1 v]\nswitch costume to (costume1 v)\nshow\n\nwhen backdrop switches to [level 1 v]\ngo to x: (87) y: (-78)\n\nwhen backdrop switches to [level 2 v]\ncreate clone of (_myself_ v)\ngo to x: (88) y: (-54)\ndelete this clone\n\nwhen backdrop switches to [level 2 v]\ngo to x: (-26) y: (-77)\n\nwhen backdrop switches to [level 3 v]\ndelete this clone\n\nwhen backdrop switches to [level 3 v]\ngo to x: (76) y: (-19)\n\nwhen backdrop switches to [level 1 v]\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [level 3 v]\nswitch costume to (costume4 v)\n\nwhen backdrop switches to [level 4 v]\nswitch costume to (costume2 v)\ngo to x: (78) y: (-159)\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [level 5 v]\nswitch costume to (costume3 v)\ngo to x: (10) y: (-158)\n\nwhen backdrop switches to [level 6 v]\nhide\n\nwhen backdrop switches to [level 9 v]\nswitch costume to (costume3 v)\ngo to x: (33) y: (-155)\n\nwhen backdrop switches to [level 7 v]\nshow\ngo to x: (10) y: (-158)\n\nwhen backdrop switches to [level 8 v]\nshow\ngo to x: (10) y: (-158)\n\nwhen backdrop switches to [level 8 v]\nhide\n\nwhen backdrop switches to [level 9 v]\nshow\nswitch costume to (costume2 v)\ngo to x: (247) y: (-151)\n\nwhen backdrop switches to [level 10 v]\nswitch costume to (costume3 v)\n\nwhen backdrop switches to [level 1 death boss v]\nhide\n\nwhen backdrop switches to [end2 v]\nhide\n\n@borders\n\nwhen I receive [next level v]\nhide\nwait (1) seconds\nshow\n\nwhen backdrop switches to [choosing v]\nwait (1) seconds\nshow\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [level 10 v]\nforever\n    hide\nend\n\n@Pen\n\nwhen flag clicked\nforever\n    if <key (a v) pressed?> then\n        forever\n            pen down\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (b v) pressed?> then\n        forever\n            erase all\n        end\n    end\nend\n\nwhen backdrop switches to [main menu v]\nerase all\n\nwhen flag clicked\npen down\n\nwhen flag clicked\nforever\n    set pen color to (#ff0000)\nend\n\nwhen backdrop switches to [intro v]\nerase all\n\n@Duck\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [level 7 v]\nhide\n\nwhen backdrop switches to [level 6 v]\ngo to x: (59) y: (-56)\ngo to [back v] layer\nset size to (30) %\nswitch costume to (duck v)\nshow\n\nwhen this sprite clicked\nbroadcast (done v)\ngo to x: (0) y: (0)\ngo to [front v] layer\nswitch costume to (costume1 v)\nset size to (150) %\n\n@Memories bad\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [level 7 v]\nhide\n\nwhen backdrop switches to [level 10 v]\nhide\n\nwhen backdrop switches to [level 8 v]\nshow\n\nwhen I receive [scare the memory! v]\nsay [Ahh!] for (2) seconds\nhide\n\nwhen backdrop switches to [level 9 v]\nshow\ncreate clone of (_myself_ v)\ngo to (random position v)\n\n@Boss fight!\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [level 9 v]\nhide\n\nwhen backdrop switches to [level 10 v]\nshow\nwait (5) seconds\nsay [Get back here!] for (2) seconds\nrepeat (3)\n    glide (5) secs to (player v)\nend\nsay [No!!! This can't be! You found the cure! NOO!] for (5) seconds\nhide\nforever\n    switch backdrop to (end v)\nend\n\nwhen flag clicked\ngo to x: (190) y: (104)\n\nwhen backdrop switches to [level 10 v]\nshow\ngo to x: (190) y: (104)\nforever\n    if <touching (player v)?> then\n        broadcast (death v)\n        stop [other scripts in sprite v]\n        repeat (10)\n            switch backdrop to (end2 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#8c0000)?> then\n        go to x: (-211) y: (-53)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#8c0000)?> then\n        go to x: (-211) y: (-53)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#8c0000)?> then\n        go to x: (-211) y: (-53)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#8c0000)?> then\n        go to x: (-211) y: (-53)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#8c0000)?> then\n        go to x: (-211) y: (-53)\n    end\nend\n\nwhen backdrop switches to [level 1 death boss v]\nhide\n\nwhen flag clicked\nforever\n    if <touching color (#8c0000)?> then\n        go to x: (-211) y: (-53)\n    end\nend\n\n@Sprite1\n\n@skip\n\nwhen backdrop switches to [intro v]\nshow\n\nwhen this sprite clicked\nhide\nbroadcast (stop intro v)\n\nwhen backdrop switches to [main menu v]\nhide\n\n@vents\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [level 9 v]\nset size to (100) %\nswitch costume to (costume1 v)\ngo to x: (-3) y: (-92)\nshow\n\nwhen backdrop switches to [level 10 v]\nhide\n\nwhen I receive [. v]\nswitch costume to (costume2 v)\ngo to x: (0) y: (0)\nset size to (742) %\n\n@TRUE\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [level 8 v]\nshow\n\nwhen this sprite clicked\nswitch backdrop to (backdrop1 v)\n\nwhen backdrop switches to [level 9 v]\nhide\n\n@moveright\n\nwhen flag clicked\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        broadcast (MoveRight v)\n    end\nend\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [choosing v]\nshow\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [level 1 death boss v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [intro v]\nhide\n\n@moveleft\n\nwhen flag clicked\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        broadcast (Moveleft v)\n    end\nend\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [choosing v]\nshow\n\nwhen backdrop switches to [level 1 death boss v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\n@moveup\n\nwhen flag clicked\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (moveup v)\n    end\nend\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [choosing v]\nshow\n\nwhen backdrop switches to [level 1 death boss v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\n@movedown\n\nwhen flag clicked\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        broadcast (movedown v)\n    end\nend\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [choosing v]\nshow\n\nwhen backdrop switches to [level 1 death boss v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\n@Player sense\n\nwhen I receive [moveup v]\nif <(BLANK) = [1]> then\n    go to (player v)\nelse\n    if <(BLANK) = [0]> then\n        go to x: (-170) y: (210)\n    end\nend\n\nwhen I receive [moveup v]\nset [blank v] to [1]\n\nwhen I receive [movedown v]\nset [blank v] to [0]\n\nwhen I receive [moveleft v]\nset [blank v] to [0]\n\nwhen I receive [moveright v]\nset [blank v] to [0]\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\nend\n\n@Switch Piggy\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [level 1 death boss v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [choosing v]\nshow\n\nwhen this sprite clicked\nbroadcast (Next costume v)\n\n@No trail\n\nwhen backdrop switches to [intro v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [level 1 death boss v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [end v]\nhide\n\nwhen backdrop switches to [choosing v]\nshow\n\nwhen this sprite clicked\nhide\nbroadcast (NO TRAILLLLLLL v)\n\n@Thanks!\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-9) y: (165)\nforever\n    go to [front v] layer\nend\n\nwhen this sprite clicked\nswitch costume to (costume2 v)\ngo to x: (0) y: (0)\nwait (15) seconds\nswitch costume to (costume1 v)\ngo to x: (-9) y: (165)\nforever\n    go to [front v] layer\nend\n\n