i know there were a topics like this,
but i can precise my needs more exactly then my predecessors.
Im working on the game in which
the player is moving around with his avatar,
in top-down view.
There are some enemies, and when they see avatar
(line of obstacle) they follow him.
Making enemies find path to hero beetween static obstacles
like walls etc. is easy. But how to make them avoid each other?
They are dynamic, so when they colide, there is a need
to stop them, regenerate obstacles map, refind paths and
once again put them in the motion. This should be simple,
and good-working with few enemies, right?
It's not. The reason is that the enemies are copies of the same
instance - and when we try to regenerate map for enemy to make
it avoid other enemies, it sees itself as obstacle. Then he blocks,
or starts moving in funny ways. So here is my question - how to make
instance not see itself as obstacle, but see as obstacles other instances of same object? Is there any way?
I know someone is gonna to put here link about steering behaviors.
Its not gonna work with this type of game, and i think its very hard to implement in construct made game.
Im sure that it can be done better with regenerating map after collision.