playMaker

Author Topic: Enemy Wave Spawner  (Read 743 times)

curb47

  • Sr. Member
  • ****
  • Posts: 256
Enemy Wave Spawner
« on: August 25, 2020, 11:09:43 AM »
Hi everyone,

I hope you're all well.

I've been looking into spawning waves of enemies for my 2.5D space shooter, and have hit a brick wall. I've got a wave spawning thing going on, using Pooled objects, but at the moment, the enemies spawn one after the other (albeit very quickly), but I'd like them to spawn simultaneously (up to 20 at a time) in a grid array, or a spiral etc, rather than from the same spot.

Can this be achieved in Playmaker?

I've looked on the Unity store and found various scripts for what looks good, but I'd like to keep it inside the Playmaker framework.

Thanks.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7619
    • jinxtergames
Re: Enemy Wave Spawner
« Reply #1 on: August 25, 2020, 03:38:25 PM »
Hi.
Maybe you could have an array with 'spawn points' (empty object) to get a position and then use that to set the position of the object.

you can loop thru the array to place the spawned objects.

Here is a video about arrays :


curb47

  • Sr. Member
  • ****
  • Posts: 256
Re: Enemy Wave Spawner
« Reply #2 on: August 25, 2020, 05:28:45 PM »
Hi Dino,

Thank you. I will check that out in the morning and get back to you.

Cheers.