Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / SetTweenSpriteScaleX/Y

Author
Message
dooz
19
Years of Service
User Offline
Joined: 22nd Sep 2005
Location:
Posted: 27th Feb 2016 20:54
Hi, I read in the AppGameKit docs that if you want to scale a sprite, it's more efficient to use SetSpriteScaleX/Y, than SetSpriteSize, due to the recalcs that need to occur. Also, it is must easier to simply choose the scale factor, and not worry about adjusting the size.

However, I'm using tweens on sprites, and there is no SetTweenSpriteScaleX/Y, only SetTweenSpriteSizeX/Y. Strangely, the Object version of the Tween functions do have ScaleX/Y/Z, but they don't work on a sprite.

I have a solution working, by maintaining my own Scale values and multiplying by the size, however I'm concerned of the speed impact.

Thanks

Login to post a reply

Server time is: 2024-11-25 09:24:19
Your offset time is: 2024-11-25 09:24:19