Table of Contents

 
SetDirection
 

Purpose

Sets the play direction of the animation

 

Protoype

void CTileMngr::SetDirection (int i_dir)
 

Parameters

dir the direction of the animation
 

Description

This function sets a new direction for the animation to play in. For beginning to end play, use FORWARD. For end to beginning play, use REVERSE. If you want to flip the play direction, use SWITCH. The change in play direction takes effect immediately.

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.SetDirection(SWITCH);
 

Prev: SetCurrentFrame