Help on variables

Get help using Construct 2

Post » Sat Jul 13, 2013 12:26 am

Hello,

I need some help here...
I know current tilt value (Touch.Beta) but how to check/compare is it increasing or decreasing in order to set proper motion.
How to compare it self with his previous value?

Thank you!
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Sat Jul 13, 2013 12:37 am

I just wrote a nice explanation, but the damn thing timed out AGAIN!!!

Basically, it was:

Var1 = Current
Var2 = Previous

Every 0.001: Set Previous value to Current Value & Set Current value to tilt.

You can then compare greater or less than.

Hating this forum lately! Grrr!
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 961
Reputation: 10,717

Post » Sat Jul 13, 2013 1:02 am

Excellent advice!
Thank You!
B
26
S
11
G
2
Posts: 669
Reputation: 5,038


Return to How do I....?

Who is online

Users browsing this forum: Davlin, tarek2 and 5 guests