tween_to(target_object, duration, vars);
Argument name Type Description
target_object Object | instance | array of objects or instances or mixed Target object whose properties should be affected. The target can be any game maker object. You can also pass an array of objects or instances.
duration real Duration in seconds (or frames if "useframes" true is set in the vars parameter)
vars array The special vars array. For more info about the vars array see the Animation documentation.

Returns: (Tween) The newly created tween instance


Creates a new tween that animates the target_object variables to the specified destination values (from the current values) and returns its index.