Lazarus

Programming => Graphics => Graphics and Multimedia => BGRABitmap and LazPaint => Topic started by: pixelink on April 03, 2020, 10:12:53 pm

Title: [Done] SpriteAnim Control - Make Anim Faster
Post by: pixelink on April 03, 2020, 10:12:53 pm
How can I make the Sprite Animation Control play my animation faster?
Setting the Speed to "1" isn't quite fast enough for true Sprite animation speed.

Thanks
Title: Re: SpriteAnim Control - Make Anim Faster
Post by: circular on April 03, 2020, 11:37:38 pm
I suppose it is based on a TTimer so that the minimum is in fact something like 16 ms or 60 Hz. Or is it slower than that?
Title: Re: SpriteAnim Control - Make Anim Faster
Post by: lainz on April 04, 2020, 01:07:39 am
That control has the limit impossed by the Timer. Also a bit slower since it resamples the image to fit the control size.
Title: Re: SpriteAnim Control - Make Anim Faster
Post by: circular on April 04, 2020, 10:35:04 am
Makes sense. Is there an option to use simple stretch?
Title: Re: SpriteAnim Control - Make Anim Faster
Post by: pixelink on April 04, 2020, 01:45:34 pm
Thanks guys... was just wondering.

It's not a deal breaker for what I am doing.
Title: Re: [Done] SpriteAnim Control - Make Anim Faster
Post by: lainz on April 04, 2020, 02:23:24 pm
Makes sense. Is there an option to use simple stretch?

Yes, is available in the object inspector.
TinyPortal © 2005-2018