How do I make a "exponential curve animation" on a value

Get help using Construct 2

Post » Thu Apr 21, 2016 3:48 pm

I get the picture yes, this is good to simulate a framerate animation btw
I like the idea of creating a step global variable to control the use of dt
The subevent
If step > 100 >>>>>>>>> set value to max
Can be used to define the maximum value to prevent overshooting as well

Thanks
B
9
S
1
Posts: 60
Reputation: 611

Post » Thu Apr 21, 2016 5:00 pm

https://
drive.google.com/open?id=0B1SSuCVV8v74di1BMjdSYnNickE
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri Apr 22, 2016 4:38 pm

Thank you so much for your example, it's being very instructive.

So as I can see you have the same problem that I had, the value is slightly overshooting because dt cannot be 100% accurate, however in your example it's more accurate.
I think the only way to counter this is by creating limits such as : if X>10 then set X to 10
you could also do :
on timer, set X to max value
if you need 100% accurate values

Also your example will be very useful to try all sort of curves based on expressions. Thanks a lot again!
B
9
S
1
Posts: 60
Reputation: 611

Previous

Return to How do I....?

Who is online

Users browsing this forum: Artcadev, kainrazial and 8 guests