call function with family as parameter

Get help using Construct 2

Post » Fri May 17, 2013 10:41 pm

Hello,
i have several layouts. Logic is the same but objects are different. So what im trying to avoid is having to repeat for each event sheet the same code.

I have iteraccion like Foreach FamilyObjectA do something.
On the second layout i do the same but with other Family type.

Is it possible to pass a family as parameter ou dynamically change family members ?

Thanks a lot
B
5
Posts: 17
Reputation: 359

Post » Sat May 18, 2013 1:23 am

ummm.... Have you tried using the Dictionary Object?

You can also Include Event sheets in other event sheets
AND you can use the same Event sheet for multiple layout

Also Functions are cross Evensheet if included.

jayderyu2013-05-18 01:25:31
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Sat May 18, 2013 10:59 am

thanks for the reply ... i will see if dictionary helps here so that i can make the loops agnostics to the families.



B
5
Posts: 17
Reputation: 359


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 29 guests