Table of Contents

 
GetDirection
 

Purpose

Finds which direction the animation is playing in

 

Protoype

int CTileMngr::GetDirection ()
 

Description

This function returns the current animation play direction - either FORWARDS or REVERSE.

NOTE: In order for the function to work you must have a tile locked with either LockTileRC() or LockTileXY()

 

Use

CTileMngr tile_mngr;
int i_dir = tile_mngr.GetDirection();
 

Prev: GetCurrentFrame