Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Pacman Ghost AI and Pacman Movement help C++

Author
Message
Metroid Larvae
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location:
Posted: 25th Nov 2008 21:24
Yah, so I'm having trouble geting my ghosts to move in an orderly fashion. They are so chaotic and sometimes get stuck.That is the first code I will post. The other code is for my Pacman movement. I want him to only be able to change directions whenever he is sguare in an empty or dot tile. In other words when row%30 == 0 and column%30 == 0. I can't figure out where I can place this code so it will work.

Ok here is the Ghost code




Here is the Pacman code

Login to post a reply

Server time is: 2024-11-25 07:28:30
Your offset time is: 2024-11-25 07:28:30