Closed matrefeytontias closed 8 years ago
Hi,
haven't tested it, but IIRC you have to register the tween by calling addTween(n)
(condider it a really barebone Entity), so that it can be automatically updated every frame by the engine.
Side note: I always found HXP.tween() to be more intuitive to use, as it also adds it.
In your case that would be something like this (assuming you want to tween the x
property of object
):
object.x = 512;
...
HXP.tween(object, { x: 741 }, 1.0, { ease: Ease.quadInOut });
Sorry for the late answer ; of course it now works, thanks for that.
Hi,
I've put together this simple test file to showcase that NumTween never updates:
I tried this on neko and cpp and it kept displaying 512 ; I tried with flash and html5 and nothing was being displayed. No reason why other tweens would work, but I didn't try.