How do I prevent deactivated group's events working?

Get help using Construct 2

Post » Thu Jan 14, 2016 2:37 pm

Here's a quick summary of the situation......

Group1
- Event1: When Space key pressed, do Action1.
Group2
- Event2: When Space key pressed, do Action2.

With this, I deactivated Group1, and pressed Space key, then activated Group1 after 1.0 second wait after Action2 is done. But here, after the 1.0 second, Action1 is executed!

I thought pressing of Space key is done while Group1 is deactivated, so Action1 would never be executed, but it is been executing, just after waiting for the group's activation. How can I stop this being executed???
B
13
S
2
Posts: 31
Reputation: 862

Post » Thu Jan 14, 2016 11:45 pm

on start of layout group 1 disabled if action is inside group it will not run.
B
29
S
13
G
10
Posts: 355
Reputation: 8,317

Post » Sat Jan 16, 2016 8:48 am

Carbincopy wrote:on start of layout group 1 disabled if action is inside group it will not run.

You mean the group should be disabled from the start, not on the way...? I got to test this as well... thanks!
B
13
S
2
Posts: 31
Reputation: 862

Post » Sat Jan 16, 2016 2:50 pm

Hajin wrote:
Carbincopy wrote:on start of layout group 1 disabled if action is inside group it will not run.

You mean the group should be disabled from the start, not on the way...? I got to test this as well... thanks!


yes on start of layout disactivated not disabled from the group title area as if disabled it will not play at all. even if called to activate from the event sheet.

on click, keypress, on wait, on loop, or any other method call for toggle activate group or activate group as you wish to use them and disactivate then same way.
B
29
S
13
G
10
Posts: 355
Reputation: 8,317


Return to How do I....?

Who is online

Users browsing this forum: NN81, Sumyjkl, Yahoo [Bot] and 3 guests