Qbasicnews.com

Full Version: smart AI in action games
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need AI for Action games, games like Pacman (the ghosts) they sometimes follow you and some times not..
so I want to see how this works...
or how I create AI that look just like it was controlled by human in action games? Smile
you're talking about two different things. In older arcade games (1980s) things like ghosts were not controlled by "ai", they moved in simple, predictable patterns. I think the ghosts in pacman moved around randomly and chased after pac when he moved within a certain range but i'm not sure.

Good game AI for a humanlike simulation is usually very difficult, and it involves a lot of programming i can't help you with.
is the a challenge? or a help?
In fact, pacman ghosts have some AI. each one follows a different strategy. I have to do more research. I think that one approaches, another one tries to cross in your way, and stuff like that.
Quote:In fact, pacman ghosts have some AI. each one follows a different strategy. I have to do more research. I think that one approaches, another one tries to cross in your way, and stuff like that.
thats cool
Info to start with:

Quote:[...]To give the game some tension, some clever AI was programmed into the game. The ghosts would group up, attack the player, then disperse. Each ghost had its own AI. Blinky chases Pacman, Pinky is positioned a few dots in front of Pacman's mouth. The others move randomly. The game took 1 1/2 years to complete, and had five people on its team. [...]

More research soon Smile

EDIT: More:

Quote:In "traditional" 2d pacman, the hardest part is actually an often ignored aspect of the ghost AI -- in most versions of pacman, after ghosts are eaten, they trace along a path back to their spawning point. They don't just disappear, they actually "move" back to the center.
cool!