Create object "Family" creates only 1 object.

Discussion and feedback on Construct 2

Post » Wed Jun 12, 2013 10:34 pm

Hi,

I'm having a problem with creating a whole family of objects on the screen.

I have 7 different particle sprays combined into 1 family in order to use all of them at the same time, as a bundle.

I also have this trigger.

When Object1 destroyed -> Object 1 spawn Family 'Particles'.

But when it executes, it only spawns 1 of the objects in the Family, not all. How does one go around this?Xionor2013-06-12 22:54:10
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Wed Jun 12, 2013 11:11 pm

If I remember correctly the spawn event spawns one object (chosen randomly) from the family. YOu can also choose which object to spawn. If you want to spawn one of each you most likely need to adjust your logic and have it spawn 7 objects instead of one...
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,568

Post » Wed Jun 12, 2013 11:21 pm

That appears so. But how do I make it spawn all 7 objects from the family?

I tried "Repeat 7 times" but that only spawns 7 random objects from that family, not all.
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Wed Jun 12, 2013 11:51 pm

it's only 7 events...just spawn them manually...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Thu Jun 13, 2013 12:28 am

It's 7 events NOW. It might get more later.

Also the creation happens many places and often, not just once. Including each one manually for each event is gonna make like 30% of my events the respawning of the same 7 objects.

Maybe I could just make the 7 spawn with a function...
B
10
S
3
Posts: 233
Reputation: 1,537

Post » Thu Jun 13, 2013 4:09 am

Sounds to me that you should be looking into containers and not families.
B
24
S
9
G
7
Posts: 756
Reputation: 7,292

Post » Thu Jun 13, 2013 4:21 am

Oh yea, I forgot about that property of the containers!

Thanks!

I'll try that out.Xionor2013-06-13 04:21:24
B
10
S
3
Posts: 233
Reputation: 1,537


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests