anim_destroy

Syntax:

anim_destroy(anim);
Argument name Type Description
anim Animation The tween or tweenline instance

Returns: (undefined) It allways return undefined. Check the example for more info about why is this.

Description:

Destroys the passed Animation instance

Example:

// To free the memory you need to call it like this:
my_tween = anim_destroy(anim);
// Otherwise, the tween or tweenline will be destroyed,
// but it would not be garbage collected by GameMaker.