tween_fromto

Syntax:

tween_fromto(target_object, duration, from_vars, to_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)
from_vars array The special vars array for the starting properties. For more info about the vars array see the Animation documentation.
to_vars array The special vars array for the ending properties. For more info about the vars array see the Animation documentation.

Returns: (Tween) The newly created tween instance

Description:

Allows you to define both the starting and ending values (as opposed to tween_to and tween_from tweens which are based on the target's current values at one end or the other).

Note: If you define some property in from_vars, but not in to_vars or viceversa, the missing values will be detected automatically by the tweenline engine.