How do I create an object of 1 member of a family

Get help using Construct 2

Post » Sun Aug 16, 2015 12:07 pm

I have a family of 6 sprites. I want to have a generic way to create instance of the members based upon a parameter.

This is how I do it but it's not working:
Image
B
15
S
6
Posts: 105
Reputation: 1,356

Post » Mon Aug 17, 2015 11:40 am

Does anyone have an idea?
B
15
S
6
Posts: 105
Reputation: 1,356

Post » Mon Aug 17, 2015 11:43 am

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Aug 17, 2015 12:28 pm

"Pick" won't work because that picks existing objects. You might just want to have your trigger event fire and then do something like

>If Parameter=0, spawn ParticleObject0
>If Parameter=1, spawn ParticleObject1
>etc...

Brute force, but it works, and easy to do since you only have six in the family.
B
28
S
5
G
1
Posts: 62
Reputation: 2,392

Post » Tue Aug 18, 2015 1:15 am

I finally use the plugin rex_nickname http://c2rexplugins.weebly.com/rex_nickname.html.

Thanks for your advices.
B
15
S
6
Posts: 105
Reputation: 1,356


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests