Hi everybody,
I'm trying to animate the region_rect property of a sprite with a tween node, and so far, it doesn't work.
I was able to animate other properties, but not this one, maybe because it uses a Rect2 var?
this is what I use:
var sprite = getnode("Sprite")
var currentcoordinates = sprite.getregionrect()
var targetcoordinates = currentcoordinates
targetcoordinates.pos.x += 280
tween.interpolateproperty(sprite, "regionrect", currentcoordinates, targetcoordinates, 1.5, Tween.TRANSEXPO, Tween.EASE_OUT, 0)