This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-10-08 08:01:33

cammyjon
New Scratcher
Registered: 2011-10-08
Posts: 1

Pacman game

Can anyone help me I am knew to scratch and have made a game similar to pacman and need to make my bad guy randomly change direction when he hits a wall...

Offline

 

#2 2011-10-08 08:42:01

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Pacman game

Making pacman in Scratch is tricky, especially because of some of the built-in lag in Scratch.  A technique I used once was have a sprite at all the intersections and if a ghost was touching it, it would access a list of all the directions of all the intersections, pick its own intersection, and see which directions were available to it.  This is time consuming, especially on Scratch, and you may be able to make sensors to do it for you.  I'm interested to see what others come up with.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer