GameMaker (2.3)
Icon

VariableEaseingAnimation

烟汐忆梦_YM

You must be logged in to obtain assets

Description

This extension allows you to ease a variable from one value to another using just one function

How to use : After loading the plugin, add the anim_update() function to the step event of a persistent object.

Then, use the anim_create() function to enter: anim_create (target, variable name, easing type, start value, end value, ease duration);

The target can be a global, an array, an instance, or even a struct Variable names need to be used with caution, in instances and structs it is normal variable names.

Inside the array, it is an array index of a real number. (Strings are fine if you want) Inside global variables, you can set the target to "global" or "global.xxxxx", but note that whatever you write, you need to use the variable name as a string It is very important to fill in the names of the global variables!

Regarding easing types, you have 34 different easing types You can access it in the form of macro constants (which are actually integers from 0-33):

ANIM_LINEAR

ANIM_IN

ANIM_OUT

ANIM_INOUT

ANIM_IN_QUAD

ANIM_OUT_QUAD

ANIM_INOUT_QUAD

ANIM_IN_CUBIC

ANIM_OUT_CUBIC

ANIM_INOUT_CUBIC

ANIM_IN_QUART

ANIM_OUT_QUART

ANIM_INOUT_QUART

ANIM_IN_QUINT

ANIM_OUT_QUINT

ANIM_INOUT_QUINT

ANIM_IN_SINE

ANIM_OUT_SINE

ANIM_INOUT_SINE

ANIM_IN_EXPO

ANIM_OUT_EXPO

ANIM_INOUT_EXPO

ANIM_IN_CIRC

ANIM_OUT_CIRC

ANIM_INOUT_CIRC

ANIM_IN_BACK

ANIM_OUT_BACK

ANIM_INOUT_BACK

ANIM_IN_ELASTIC

ANIM_OUT_ELASTIC

ANIM_INOUT_ELASTIC

ANIM_IN_BOUNCE

ANIM_OUT_BOUNCE

ANIM_INOUT_BOUNCE

Needless to say, the start and end values go from <StartValue> ease to <EndValue>and frame is spent in the period<EaseDuration>

It is worth mentioning that the easing duration must be filled with integers

Easing functions/easing curve : https://easings.net/

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2.3 - Version 0.0.5. Published February 25, 2023

Fixed the bug of deleting easing scripts, fixed the bug caused by sloppiness.XD

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait