Discuss Scratch

sbalakhanei20
New Scratcher
2 posts

Pac-Man Ghost Glitch.

To play is Green Flag and Space, arrows move pacman and P is to use a power pellet (4 total). When you use a power pellet and hit Blinky (Red Ghost) he does not disappear and just stays there. Pinky has the same code and if you touch him he hides and resets. Why doesn't blinky follow the code? Game is not complete yet but I need him to be fixed to move on. My username is Sbalakhanei20 and the game is on my page. If you can't find it here is the link. https://scratch.mit.edu/projects/90245658/#editor

Last edited by sbalakhanei20 (Dec. 23, 2015 15:18:00)

footsocktoe
Scratcher
1000+ posts

Pac-Man Ghost Glitch.

They don't have the same code. There are three separate “when space key pressed” scripts in Pinky, but ony two in Blinky.
sbalakhanei20
New Scratcher
2 posts

Pac-Man Ghost Glitch.

The third one in Pinky (the longest one) is just for movement and it has nothing to do with power pellets. In blinky the movement is in the if else block.
gtoal
Scratcher
1000+ posts

Pac-Man Ghost Glitch.

sbalakhanei20 wrote:

To play is Green Flag and Space, arrows move pacman and P is to use a power pellet (4 total). When you use a power pellet and hit Blinky (Red Ghost) he does not disappear and just stays there. Pinky has the same code and if you touch him he hides and resets. Why doesn't blinky follow the code? Game is not complete yet but I need him to be fixed to move on. My username is Sbalakhanei20 and the game is on my page. If you can't find it here is the link. https://scratch.mit.edu/projects/90245658/#editor

Don't duplicate sprites - have one sprite and multiple clones. Change costume according to Clone ID.

G

Powered by DjangoBB