Alcinoe icon indicating copy to clipboard operation
Alcinoe copied to clipboard

TALFloatPropertyAnimation "CurrentTime" missing

Open pieomy opened this issue 6 years ago • 4 comments

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?

pieomy avatar Feb 07 '20 04:02 pieomy

no answer :/ thank you

pieomy avatar Feb 17 '20 23:02 pieomy

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

loki5100 avatar Feb 18 '20 09:02 loki5100

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.

pieomy avatar Feb 18 '20 09:02 pieomy

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.

Spelt avatar Feb 18 '20 11:02 Spelt