Considering 2D roguelike, i added some basic random movement in Makinom schematics... But i have an issue: when two enemies (spawned through ORK) are near there is the possibility to move on the same tile at the same moment, and the game is blocked with this error:
Basically the schematic choose one random direction (NSWE), check if there is an object with Blocking Layer and if the spot is available moves... But when two enemies are near they could see the spot as "free" and the both move on the same tile, at that point the game is stopped and i get the error.
As the enemy can be identical clones (i could have used priority or some other setting if they were always different), is there any way to prevent this happening? As far as i understood all enemy schematics are performed in the same moment, so i have now way to avoid this situation at the moment. :)
EDIT: i updated the error message, i missed first part.