How do I go to one frame forward or one frame back?

Get help using Construct 2

Post » Mon Jul 20, 2015 1:18 am

I used the 2 codes he gave me and they worked! As far as Modulo, I am honestly not sure what that is, but I would love to learn.
B
5
Posts: 37
Reputation: 299

Post » Mon Jul 20, 2015 1:30 am

% (modulo, remainder after division) https://www.scirra.com/manual/78/expressions
eg
0%4 = (0*4)+0 so returns 0
1%4 = (0*4)+1 so returns 1
2%4 = (0*4)+2 so returns 2
3%4 = (0*4)+3 so returns 3
4%4 = (1*4)+0 so returns 0
5%4 = (1*4)+1 so returns 1 etc etc

Note: animationframe can't be < 0 that's why you must add animationframecount before substract 1 to animationframe on 'left arrow pressed' condition
Image Image
B
25
S
14
G
139
Posts: 876
Reputation: 72,510

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 42 guests