Spawning Enemies using a table?

I want my enemies to continuously spawn at their certain (X,Y) positions on the map every 2.5 seconds and some every 5 seconds. I've read that using a table is better than using an actor I created called "Spawner" and placing that in the game. Inside "Spawner" I have two timers set up one for 2.5 seconds and the other for 5 seconds, Then I put multiple Spawn Actor Actions inside the timers with the enemies (X,Y) positions set in each of the separate Spawn Actor Actions. So can someone walk me through how to use a table to spawn all these enemy actors continuosly and in their specific (X,Y) location

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    In my experience spawning with the Spawn Behavior works fine and does not degrade performance. I say just use Spawn Behaviors.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I don't see how using a table would be an improvement. Tables are useful if you need to retrieve a lot of data, so if you have set positions for each spawnable actor, you would use a table to store and look up those positions but you'd still need a spawn behavior.
Sign In or Register to comment.