[AS3] Formula for collision?
Still working on an online zombie game, ran into a possible problem of NPC zombies running through walls.
So i have a map with bounderies, that the local user will stop at wall fine because flash just tells it can't go through there. the problem is the zombie npcs are controlled through a cron tab PHP script, which gets the map Bounderies and randommizies its next location to move to. Now your up to speed...
The zombies will not go to locations that the boundaries are set, however they will go through them to reach there destination, so how can i make a formula that will pre-calculate that the zombie will hit the wall on its way to its destination, so the php script can know ahead of time that it should send the zombie else where?
Last edited by SaladBowler; 01-07-2011 at 02:54 AM.