GXEntityFrameSet - boxgaming/gx GitHub Wiki
Set the current animation frame for a specified entity.
Syntax
GXEntityFrameSet entityId%, seq%, frame%
Parameters
- Entity for which the animation frame will be advanced is specified by the entityId% parameter. This id is returned by the GXEntityCreate function or can be accessed by its user id by the GX function.
- The id of the animation sequence is specified by the seq% parameter.
- The specific frame in the animation sequence is specified by the frame% parameter.
Examples
Example1: Create an entity and set the current animation frame.
CONST WALK = 1
CONST CHARGE = 2
CONST IDLE = 3
DIM SHARED warhog AS LONG
warhog = GXEntityCreate("img/warhog.png", 16, 16, 5)
GXEntityFrameSet warhog, WALK, 3
See Also
GXEntityAnimateMode GXEntityAnimate GXEntityAnimateMode GXEntityFrameSet GXEntityCreate GX