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 / Tween Loops

Author
Message
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 24th Oct 2014 14:52
I was looking at the tween functions in V2 and can't see anyway to loop tweens.

I already use a tween library in my V1 project that supports setting loops forward / backward and a loop counter. I was considering moving the project to V2 and using the in built tween system.

Am I missing something, or is it juts not supported?
unlikely
12
Years of Service
User Offline
Joined: 5th Mar 2012
Location: Ohio, USA
Posted: 24th Oct 2014 18:50 Edited at: 24th Oct 2014 18:51
You can check if the tween is still playing using GetTweenChainPlaying() (and the like), and restart it manually when it finishes. Also, you can manually update the tweens using UpdateTweenChain() which allows negative delta time values. So, seems like nothing so simple as loop / direction parameters to the play commands, but it's possible. Would be a nice enhancement.

Login to post a reply

Server time is: 2024-11-25 09:45:53
Your offset time is: 2024-11-25 09:45:53