Enemy Wave Formations

Get help using Construct 2

Post » Tue Sep 10, 2013 5:32 am

For a top down shooting game, how do i do different enemy wave formations/styles. Like i would have 1 type formation spawn a bunch of random enemies that go top to bottom, and another that spawns them in military formation, or another that has a few enemies revolving around a central object while moving top to bottom.

anything on this? Thanks!
B
35
S
5
Posts: 411
Reputation: 3,406

Post » Tue Sep 10, 2013 8:12 am

How id do it is, you could create either a single sprite, drop and arrange it in the formations you would like off-screen and for each of that sprite you could spawn an enemy. For you different waves you could rearrange these images.

Or a single large sprite (for each formation) with multiple image points.

B
10
S
2
G
1
Posts: 77
Reputation: 1,278

Post » Tue Sep 10, 2013 1:08 pm

Interesting idea, but I'm not sure I'd have Full control over individual enemies that way. That would be good for a space invader formation though!
B
35
S
5
Posts: 411
Reputation: 3,406

Post » Tue Sep 10, 2013 1:45 pm

@bscarl88 you can also use Activate/Deactivate your waves
B
9
S
2
Posts: 82
Reputation: 914

Post » Tue Sep 10, 2013 3:08 pm

@karlmahmen like deactivate groups? I can see that I'm more ending the best way to program the different groups and their formation designs. Like an array fit the positioning or something?
B
35
S
5
Posts: 411
Reputation: 3,406

Post » Tue Sep 10, 2013 3:33 pm

Combine relative values and functions (one function for each formation/style).
Make sure, the sprite instances are clearly seperated by setting a instance variable.
By relative I mean to not work with absolute values for the sprite instances, but relatives to the concerned instances plus a general offset that is applied to all of them.

The functions then should pick only those matching the IV.

Image
B
24
S
8
G
10
Posts: 1,821
Reputation: 8,279

Post » Tue Sep 10, 2013 10:48 pm

@tulamide   hmmmmmm not quite catching on to that haha thanks for the response though! Sorry about my terrible logic skills :/bscarl882013-09-10 23:17:33
B
35
S
5
Posts: 411
Reputation: 3,406

Post » Tue Sep 10, 2013 11:34 pm

you could use an array to store the soldier formation, and use a loop to create them.
for the random one check the Rain demo (it's already included, open New Template)
B
12
S
3
G
1
Posts: 347
Reputation: 2,866


Return to How do I....?

Who is online

Users browsing this forum: jaytrott86 and 10 guests