dop2000
Hi, I have top down enemies with bullet behavior randomly spawning outside the layout and different enemies have different bullet speed, enemies are spawned at random x,y location every random(0.5-2) seconds on top of layout.
so does anybody knows how we can avoid enemies from overlapping by detecting if the last created enemy is within a certain area then the object being created will be positioned according to that or moved aside horizontally, also how can we adjust the speed of the enemy if there is an enemy in front within a certain distance on the fly or any other way to do it.