GXEntityFrameNext - boxgaming/gx GitHub Wiki

Advance to the next animation frame in the current animation sequence for a specified entity.

Syntax

GXEntityFrameNext entityId%

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.

Examples

Example1: Create an entity and advance to the next animation frame.

DIM SHARED warhog AS LONG
warhog = GXEntityCreate("img/warhog.png", 16, 16, 5)
GXEntityFrameNext warhog

See Also

GXEntityAnimateMode GXEntityAnimate GXEntityCreate GX