i am trying to make this really cool move to spawn these one at a time then plays the animation but i do not know how to make them spawn one at a time i am trying to make one spawn on each enemy every 0.2 seconds so it is not as fast and i want my player to teleport to each enemy to really quick to do an attack animation
here it is in action
and right here is the code
Develop games in your browser. Powerful, performant & highly capable.
Give the enemy an instance variable to track when it's been teleported to or 'used'. Then say every 0.2 seconds, system pick a random instance of enemy where variable=0, then with actions set player position to enemy, and set enemy variable to 1.
All of this would be inside a condition that player has LOS of enemy to pick only those enemies you need. Of course after such animations you pick all enemies and reset the variable to 0.
I will try that in the morning I am Really tired right now