Trigger Once

For questions about using Classic.

Post » Thu Nov 05, 2009 8:27 am

I can't seem to get the Trigger Once condition to work... Have I misunderstood it's usage?

In this example, shouldn't the button only add something to the text box once?

http://dl.getdropbox.com/u/1378330/triggeronce.cap
B
55
S
12
G
8
Posts: 339
Reputation: 9,314

Post » Thu Nov 05, 2009 4:05 pm

Yeah, that's not how it works. I think the best way to explain it would be to compare "On collision" and "Object is overlapping".

With "Object is overlapping", when the two objects specified are overlapping eachother, the event will evaluate to true until they stop overlapping. On the other hand, with "On collision", if the two objects are overlapping the event will only evaluate true the first time they are detected to be overlapping. After this, the event will return false until the two objects are no longer overlapping, at which point they can overlap again and the event can return true.

So, essentially, the "On collision" action is an "Object is overlapping" condition with a "Trigger once condition".

I hope I got the point across well enough. Hope that helps. :)
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692

Post » Thu Sep 08, 2011 8:11 pm

Thanks
B
45
S
9
G
10
Posts: 194
Reputation: 8,165


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests