jman, I once tried to make a pacman game to, but I gave up, thinking of all the levels I'd have to do.
But for a better movement I recemend making multiple actors(change there visibility state to don't draw but allow events)around the maze and on the ghost actors have a create timer action, and after the timer goes of have the ghost move to the first movement actor by the ghost home. So say the after the timer is triggered, on the moveto event move towards Movementactor.0 . Then when it collides with Movementactor (make sure there is no number by the collision name!) Enter this script,(say there are 10 movement actors)
- Code: Select all
int n;
n = rand(10);
if(n==0)//The moveto event to Movementactor.0 would be here. Just go to actions and functions menu and choose moveto\\
//continue utill all movement actors are in the script the click add, immediate action\\