Gio,
I have a situation in a game I am working on where certain iso characters move away from another iso character in a fleeing like behavior.
Sometimes, the fleeing iso characters end up in the same iso cell. I then want to separate them and make one move away randomly.
Right now, my separation pseudo code is like this
- Check if this object has overlapping objects - sceneObject.getOverlappingObjects()
- Check if overlapping object is in same isometric cell - custom function using getPosition() and getCellCoordinates()
- Check if overlapping object is not moving - sceneObject.isMoving()
If all three conditions are true, then move away in a random direction.
I don't want to use collisions or collision maps.
My question is - is there a more succinct way of doing this ?
thanks,
Shri
P.S. Thanks for posting the description and code for the zirma menu.