Been banging my head against a brick wall this morning for an hour or so trying to work out why a GTween wouldn't respect setPaused straight after creation - the reason I'm doing this is to load back in a game state if the app was exited whilst you were in the middle of a game. Anyway, after trying to change code in GTween I decided to RTFM (well there is no manual, but I looked through the class for hints). There's an option that you can set called autoPlay - set this to false to stop the tween from automatically running, e.g:
<pre>
self.tween = GTween.new(self.image, 20, {scaleX=0}, {autoPlay=false}) |
Anyway, just thought I'd post it here in case other people encounter the same problem.
Comments
Also for those interested and to extend that discovery, autoPlay = false is the way to chain tweens.
Likes: ar2rsawseen, moopf