Table of Contents

 
GetCurrentFrame
 

Purpose

Finds the current frame number

 

Protoype

int CTileMngr::GetCurrentFrame ()
 

Description

This function returns the current frame in which the animtion is at (remember all animation frames start at 0!)

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_curr = tile_mngr.GetCurrentFrame();
 

Prev: GetClipWidth