TALFloatPropertyAnimation "CurrentTime" missing
Hi,
Thank you for this components, all amazing TALFloatPropertyAnimation.CurrentTime missing, can you add this property
Thank you.
also what is difference TALFloatPropertyAnimation and TFloatAnimation (pros and cons), there is any document for that?
no answer :/ thank you
TALFloatPropertyAnimation don't have CurrentTime because it's don't really need it. TALFloatPropertyAnimation use internally a TALFloatAnimation who have this property.
TALFloatPropertyAnimation is simply to automatiqually update the property of a component without a line of code. normally you put on the form a TALFloatPropertyAnimation, set the control he own (exemple a trectangle) and set the property of this control he need to change on each "onTimer" (exemple it's position)
You can do exectly the same with a TALFloatAnimation, inside the onTimer event
regarding TALFloatAnimation Vs TFloatAnimation, TALFloatAnimation use Choreographer on android and DisplayLink on iOS
Thank you for explain
I need CurrentTime for speed up running animations. Example: I have running animation and I wanna 2x speed up this animation when I press button
my code: d:=_Ani.CurrentTime; _Ani.StopAtCurrent; _Ani.Duration:=((_Ani.Duration-d)/2); _Ani.Start;
(its working on TFloatAnimation but I wanna use TALFloatAnimation for my animations)
Thank you.
Yes I use this technique too.
In this way you can use one TALFloatAnimation thread and animate more properties at the same time. Much like a TFloatRectAnimation.
It speeds up animation further in this kind scenarios.
BTW: I have a few more speed improvements for this component I will be posting soon (one for all platforms and one for Windows only).
Op 18 feb. 2020 om 10:53 heeft pieomy [email protected] het volgende geschreven:
Thank you for explain
I need CurrentTime for speed up running animations. Example: I have running animation and I wanna 2x speed up this animation when I press button
my code: d:=_Ani.CurrentTime; _Ani.StopAtCurrent; _Ani.Duration:=((_Ani.Duration-d)/2); _Ani.Start;
(its working on TFloatAnimation but I wanna use TALFloatAnimation for my animations)
Thank you.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.