iTween Multiple ValueTo running on same GameObject

I’ve just been setting up a couple variable transitions for my game using iTween.ValueTo and I’ve run into a problem. I have 2 variables on my GameObject speed and score.

If I set a tween to update one variable and the durning that tween I set the other to tween it will cancel the first one. Is there a work around to this? One that hopefully doesn’t involve running the tweens on 2 separate game objects. I read in another post that this is possible in later versions of iTween but I just updated to the most recent and it still cancels other tweens on the same object.

Im just using

iTween.ValueTo(gameObject, ht);

I’m not sure about the possibilities of this regarding future releases of iTween, but in the mean time I’d recommend to grab the current value that is being tweened, and then when you start your new tween, tween both values. Unfortunately this limits your ability to have different speeds/durations for both tweens.

Not the most elegant solution unfortuantely. Multiple GameObjects might be the only way to go. I don’t know the structure of your game, but it sounds like score could be abstracted out (yes… still a pain in the butt).

Alternatively, animating value’s like that is pretty easy not using iTween (I find iTween’s strengths are more animating in 3D space with easing), you could create your own script for it I suppose. That’s probably the easiest solution rather than multiple GameObjects.