[Solved] 'Trigger once' on top breaks event?

Discussion and feedback on Construct 2

Post » Wed Aug 09, 2017 4:26 pm

Greetings! This probably is not a bug, but a big misunderstanding.
Basically, v1 (first image) works as expected.

Image

But v2 (second image) does not at all

Image

What am I missing? :( There's obviously some insight behind how C2 events work which I somehow missed.
Last edited by HellMax on Wed Aug 09, 2017 7:02 pm, edited 1 time in total.
B
6
S
3
Posts: 121
Reputation: 1,630

Post » Wed Aug 09, 2017 4:50 pm

In the first example there is nothing above trigger once, so trigger once is true on the first tick.
In the second example, there are conditions above trigger once, so trigger once will be true when the conditions above it are true.
At least that's how I understand it.
B
30
S
13
G
21
Posts: 838
Reputation: 14,656

Post » Wed Aug 09, 2017 5:42 pm

If used, the "trigger once" pseudo-trigger should always be used as the last condition. It's explicitely specified in the manual.
B
74
S
31
G
26
Posts: 994
Reputation: 20,198

Post » Wed Aug 09, 2017 7:01 pm

Magistross wrote:If used, the "trigger once" pseudo-trigger should always be used as the last condition. It's explicitely specified in the manual.


Thanks a lot, friend.
It's a bit odd that they haven't hard coded it to be last, like they had done with "On collisions" etc.
B
6
S
3
Posts: 121
Reputation: 1,630

Post » Wed Aug 09, 2017 9:10 pm

Using it as the first condition makes it similar to a "start of layout" condition while not being a trigger. I also can see why you'd use it in the middle of other conditions, although it's a less common use.
B
94
S
33
G
114
Posts: 5,357
Reputation: 73,775


Return to Construct 2 General

Who is online

Users browsing this forum: banquetburger and 4 guests