|
-
Need Some Help With AI
K, I have a game where you can do certain moves at certain times, I represent those times by having a variable set to true whenever you can and false when you cant. This works fine with one enemy on screen, but when I add the second one the variable gets messed up by the second enemy so it wont work right. I fixed some of that by limited the enemy's distance of AI, though eventually you'll be able to bring the 2 enemies close to each other so that doesnt help much. Right now I have 1 option and its to use different Variable for each enemy, this will mean that I have to have a if statement for every variable I use. Which will probably turn into a big mess. So any ideas on how I can fix this? Sorry if its confusing, but there isnt really an easy way to put this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|