i am making a game with some MOBA mechanics. i have a spawner that gives me 5 enemies at a 1 second interval from one another. but as soon as i kill any enemy a new one spawns. i am trying to make it so that the "Wave" of enemies spawns every 5 seconds.
on the other hand i have the enemies and whenever the player runs to them, they just float away instead of move to the castle.
the enemies spawn and move to the castle, but if a player kills any, a new one spawns right away and if the player just walks to them, they just float away.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
353 People are following this question.
Detect whether a Rigidbody collided with a Trigger
Checking if the player jumps while not grounded
How do I move a game object only on the x axis with arrow keys?
Having UI follow player 2D C#
C# 2D Top down game how to detect if objects are touching while they can pass through each other?