Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

Pacman Ghost Help

$
0
0
Alright so I've been programing a pacman game and am currently working on the ghost. How I have them work right now is that when it hits a wall it will generate a random number and if it is between two numbers then it will go towards or away pacman. My only problem now is making it turn without hiting walls. I was just going to make it move towards him when possible but then even if the ghost goes the wrong way it will turn around and go towards pacman

Viewing all articles
Browse latest Browse all 2703

Trending Articles