Posted By
|
Message
|
Matt Kap
Registered 10/08/2005
Points 17
|
14th June, 2011 at 19:14:03 -
Hey guys, I was wondering if someone could help me with super simple enemy AI.
So far, I have the enemies move 1 px in the direction they're going, but when they are overlapping an obstacle (or active obstacle), they change direction (only one action when event loops).
This was working great, but I get more glitchiness as I add more enemies to the level, and they start going through walls. I read up on it too, and it seems that with so many of the same type of enemy, MMF doesn't know to target a specific one, probably screws up when 2 or more enemies touch a wall at the same time. So I spread an ID value to all the enemies (NObjects). Now I get to the point where I'm supposed to make a fastloop that checks the collisions of these baddies, but I don't know much about fast loops, and I don't know how to go about doing this. Can anyone help plz?
n/a
|
Fordom Nordanrikets konung
Registered 12/02/2009
Points 190
|
14th June, 2011 at 21:09:17 -
You need the force that it was traveling to the opposite direction.
This forum is full of trolls and disinfo agents.
|
|
|