Difference between on fall and is falling

Discussion and feedback on Construct 2

Post » Tue Apr 02, 2013 4:57 pm

What is the difference between the Platform: Animation Trigger ''on fall'' and ''is falling''? I tried both here following the tutorials and I couldn't notice any difference.
B
16
S
4
G
4
Posts: 56
Reputation: 2,942

Post » Tue Apr 02, 2013 5:26 pm

I believe "On fall" will only trigger once the Sprite begins falling, whereas "Is falling" constant triggers whilst the Sprite falls.
Say you have a variable that starts at 0, and you use "On fall- Add 1 to variable", and make the Sprite fall, the variable would only reach "1". Whereas having "Is falling- Add 1 to variable", the variable will continue to go up until the Sprite is no longer falling.
Hope this helps!
B
45
S
19
G
10
Posts: 562
Reputation: 9,543

Post » Tue Apr 09, 2013 3:07 am

[QUOTE=Jase00] I believe "On fall" will only trigger once the Sprite begins falling, whereas "Is falling" constant triggers whilst the Sprite falls.
Say you have a variable that starts at 0, and you use "On fall- Add 1 to variable", and make the Sprite fall, the variable would only reach "1". Whereas having "Is falling- Add 1 to variable", the variable will continue to go up until the Sprite is no longer falling.
Hope this helps![/QUOTE]

Yes, you really helped. Thanks a lot Jase00 ;)
B
16
S
4
G
4
Posts: 56
Reputation: 2,942

Post » Tue Apr 09, 2013 4:36 am

Sure thing, man!
B
45
S
19
G
10
Posts: 562
Reputation: 9,543


Return to Construct 2 General

Who is online

Users browsing this forum: randomly, Yahoo [Bot] and 11 guests