Need help. Making a pacman game, but I am unsure how to make the food move to different places after he eats it.
http://scratch.mit.edu/projects/stapletonju/2030425
Offline
Let's say you have 5 different food pieces. Give each this script:
[blocks]<forever>
<if><touching[ Pacman
<change{ score}by( 1
<go to x <pick random( 180 )to( -180)y: ( <pick random( 180 )to( -180[/blocks]
Set the pick random to whatever numbers you need. This script works, though.
Hope this helps!
Last edited by PlutoIsHades (2011-09-15 15:55:18)
Offline
Okay, that works for moving the food, but now pacman goes through the walls. How can I make him not ?
Offline