Hi guys anyone knows how to put an AI similar to Pacman ? im having a problem with it please help me …
yes but still i dont know how to code it :’( teach me pls …
I could teach you to code AI but it would take months as it is a very complicated subject. Suggest you research and start with a real basic scenario.
If I’m not mistaken, pacman is a tile based game and its ghosts have a random direction based by getting the next tiles available for movement. It is like pathfinding.
You are mistaken… There is way more logic than “I’m at a junction where do I go next”. Having written a pacman style game I somewhat qualified on this subject. There are three modes: roam, hunt, avoid. Each mode needs to pick a point and navigate there. The code to calculate routes like A* are very complicated.
@adrianm nice article, the movement described really explains the ghost movements as I remember them. It contradicts one of my AI books which said that the original pac-man had random movement (which makes less sense after reading the article) and that made the game less predictable, which in turn made people perceive the AI as smarter than it was. I remember this because I set the AI to random in one of my apps with 30 artificial life forms and my play-testers perceived all kinds of intent and intelligence out of the randomness.
@mhochiru - I think you should start with an easier project and work your way up to a pac-man style AI. There are a lot of decisions you will face in constructing your game and you will be able to ask better questions and, therefore, get better advice once you’ve put some more time into figuring out Lua and Corona SDK.
Check YouTube for Corona tutorials and find a few sample apps here
Learn lua online or with a book
Here are some recent forum threads related to AI but before they make sense, you will probably need to put time into learning how to code. I doubt anyone here will want to teach you to code but if you put some sweat into it, I think you’ll find there are many people in the Corona community who will cheer you on and lend advice. That’s how I learned.
Object State Tracking Techniques
Good luck!
In my game I had two types of ghost. Green ones aimlessly wandered the maze whilst purple ones hunted you down. Each ghost had an area of vision and that made them “see” you from differing distances. This simulated randomness and aggression. Even though each ghost was a separate instance they would often appear to team up.
Humans are great at finding patterns in randomness!
What makes a developer a developer is being able to code solutions to problems.
I could give you a ghost class but you wouldn’t be able to use it with your code as you wouldn’t have the correct framework for it.
I could give you the framework too but then that would mean giving you an entire game for free!
okay okay … T_T
yes but still i dont know how to code it :’( teach me pls …
I could teach you to code AI but it would take months as it is a very complicated subject. Suggest you research and start with a real basic scenario.
If I’m not mistaken, pacman is a tile based game and its ghosts have a random direction based by getting the next tiles available for movement. It is like pathfinding.
You are mistaken… There is way more logic than “I’m at a junction where do I go next”. Having written a pacman style game I somewhat qualified on this subject. There are three modes: roam, hunt, avoid. Each mode needs to pick a point and navigate there. The code to calculate routes like A* are very complicated.
@adrianm nice article, the movement described really explains the ghost movements as I remember them. It contradicts one of my AI books which said that the original pac-man had random movement (which makes less sense after reading the article) and that made the game less predictable, which in turn made people perceive the AI as smarter than it was. I remember this because I set the AI to random in one of my apps with 30 artificial life forms and my play-testers perceived all kinds of intent and intelligence out of the randomness.
@mhochiru - I think you should start with an easier project and work your way up to a pac-man style AI. There are a lot of decisions you will face in constructing your game and you will be able to ask better questions and, therefore, get better advice once you’ve put some more time into figuring out Lua and Corona SDK.
Check YouTube for Corona tutorials and find a few sample apps here
Learn lua online or with a book
Here are some recent forum threads related to AI but before they make sense, you will probably need to put time into learning how to code. I doubt anyone here will want to teach you to code but if you put some sweat into it, I think you’ll find there are many people in the Corona community who will cheer you on and lend advice. That’s how I learned.
Object State Tracking Techniques
Good luck!
In my game I had two types of ghost. Green ones aimlessly wandered the maze whilst purple ones hunted you down. Each ghost had an area of vision and that made them “see” you from differing distances. This simulated randomness and aggression. Even though each ghost was a separate instance they would often appear to team up.
Humans are great at finding patterns in randomness!
What makes a developer a developer is being able to code solutions to problems.
I could give you a ghost class but you wouldn’t be able to use it with your code as you wouldn’t have the correct framework for it.
I could give you the framework too but then that would mean giving you an entire game for free!
okay okay … T_T