Table of Contents

 
SetCurrentFrame
 

Purpose

Sets the current animation frame

 

Protoype

void CTileMngr::SetCurrentFrame (int i_frame)
 

Parameters

frame the frame of the animation to jump to
 

Description

This function sets the current frame of a tile animation. Remember that all animation sequences begin with 0!

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

 

Use

CTileMngr tile_mngr;
tile_mngr.SetCurrentFrame(3);
 

Prev: SetAnimDelay