I passed a Sprite object with a Tween behavior as a parameter to a function and also configured the next parameter for the function as “Behavior (for the previous object)”. I get the Tween options appearing for the sprite, so I can use them in actions, but they don’t work when the game runs. The Tween does nothing.
If I copy the actions out of the function and put them as events in the level directly instead, the Tween works fine.
Am I doing something wrong, or is it simply not possible to use Tween inside a function?