Detect triggering object

Discussion and feedback on Construct 2

Post » Wed Apr 25, 2012 12:28 am

Once i tried making WarCraft 3 maps with Map Maker (later MM), very similar to Construct 2 (later C2).

In MM the event sheet is separated in 3 parts:

1. Event or trigger - this must happen to continue, for ex. unit enter region1; unit1 is attached
2. Condition - here are AND and OR logic conditions, for ex. unit is owned by Blue Player; Damage done > 10
3. Action - if it is triggered and all/or some conditions are met, this will happen, for ex. destroy triggering unit; subtract (damage done) from owner of the attached unit.

I want to concentrate on the "Action" part. With this detection of ANY triggering unit i can do something to it. By comparison, now in construct two i have to make as many events as there are units and in all of them to perform the same actions.

I have searched for this feature with search engine on Scirra, but nothing came up. I don't have paid version so maybe on the paid there is this feature. If not, i like to hear your thoughts about this, and maybe have this feature in upcoming releases.
B
17
S
3
G
3
Posts: 9
Reputation: 3,326

Post » Wed Apr 25, 2012 4:40 am

Have you tried the 'Families' feature? You can make a family called 'Units', add all your unit objects to it, then an event like "Mouse clicked on family Units" will work for all the objects in the family.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Wed Apr 25, 2012 10:35 am

I have free version of C2, so i don't have that feature. But with families, can you for example click any unit in the family and then destroy that object?
B
17
S
3
G
3
Posts: 9
Reputation: 3,326

Post » Wed Apr 25, 2012 10:52 am

Yes you can.
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Wed Apr 25, 2012 5:54 pm

Ok then, sorry for underestimating C2 power :D
B
17
S
3
G
3
Posts: 9
Reputation: 3,326


Return to Construct 2 General

Who is online

Users browsing this forum: MrMaciej and 1 guest