What is "Trigger once while true".

Just started using Construct 2? Post your questions here

Post » Fri Nov 20, 2015 5:10 pm

Hello, please, the condition "Trigger once while true".

It is the equivalent of this ?.

if (var == 0)
var = 1;
play_sound (...);

end

That is, once true, it no longer is rerun.

But ... when it will true again?.

As I can write "Trigger once while true" in programming code?
It would help me to understand it better.
Last edited by The Mnk on Sat Nov 21, 2015 10:56 am, edited 1 time in total.
B
30
S
13
G
21
Posts: 839
Reputation: 14,658

Post » Fri Nov 20, 2015 5:22 pm

trigger once while true, triggers the actions attached once while the conditions of the event are true..

If any of the conditions changes it isn't true anymore so after that it will trigger once again when all conditions return to true..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Nov 20, 2015 6:26 pm

Ok I understand, thanks as always.
B
30
S
13
G
21
Posts: 839
Reputation: 14,658


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests