Does left objects part of sub-events are picked in

Discussion and feedback on Construct 2

Post » Thu Jan 16, 2014 4:23 pm

Hi.

Need clarification on something...

If i have a sub-event which pick objects and that this sub-event contain a triggered event (such keyboard key pressing) that reference thoses picked objects. Does that triggered events will have picked thoses objects aswell ? or the picking is reset ?

Thanks!
B
16
S
5
G
1
Posts: 190
Reputation: 2,489

Post » Thu Jan 16, 2014 5:02 pm

Please read the "Events run top to bottom" section of the manual.

You can't bury triggers inside of events. They should almost always be at the top level.
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Thu Jan 16, 2014 11:01 pm

Umm i already know about that but what if i need a local variable stuck in a subevent to be a condition in my trigger event ? It seem to work.. if it is buried in a sub-event but i am guessing it will still execute and ignore the subevent condition since its a trigger.

But what happen with the picking ?

It insn't clear if the picking would work the same way. So basically when there is a trigger the picking is reset or not ?Rushino2014-01-16 23:05:40
B
16
S
5
G
1
Posts: 190
Reputation: 2,489

Post » Thu Jan 16, 2014 11:19 pm

Anyway i decided to move the event at the top to avoid confusion. Thanks!
B
16
S
5
G
1
Posts: 190
Reputation: 2,489


Return to Construct 2 General

Who is online

Users browsing this forum: justifun and 11 guests