I have a question about Tweening. I tried to tween a Rectangle and ran into problems, and was forced to tween a Vector2 instead like in the demo, and then on my Update function applied the Vector2 into the Rectangle I was trying to tween.
Can Rectangles be tweened, and if so, is there an example of how to tween a Rectangle?
Also, I looked at the Tween class and can’t find a way to call a function when my tween is finished. I can think of a workaround, like checking to see if the tween is active during an update function, and then calling a function when this returns false, but there has to be a more efficient way to do this.
Can a function be called at the end of a Tween?