tweenline_fromto

Syntax:

tweenline_fromto(target_object, duration, from_vars, to_vars, [position]);
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.
position string|real The special position parameter. See tweenline_add for more info.

Returns: (Tween) The newly created tween instance

Description:

Adds a tween_fromto tween to the end (or elsewhere using the position parameter) of the last created Tweenline or the Tweenline that is currently in edit mode. See tweenline_edit for more info about edit mode.

Note: For a complete description of the arguments and the usage mode, please refer to tween_to.

See tweenline_add for the reference for the optional position parameter.

Returns the index of the tween that has been created.