Table of Contents

 
RestartAnimation
 

Purpose

Restarts the animation from the beginning

 

Protoype

void CTileMngr::RestartAnimation (bool b_play)
 

Parameters

play whether to play the animation on restart (TRUE) or not (FALSE)
 

Description

This function resets the current tile animation frame to 0. If you want the animation to continue playing upon reset, pass in TRUE, otherwise pass in FALSE to stop the animation.

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.RestartAnimation(true);
 

Prev: ResizeClipWindow
Next: SaveMap