Table of Contents

 
_UpdateAnimation
 

Purpose

Updates a given animation (changes to next frame, resets timers, etc)

 

Protoype

void CSpriteMngr::_UpdateAnimation (animation_handle h_anim)
 

Parameters

anim

internal pointer to the animation object to update

 

Description

This function is called everytime a sprite is rendered (visible or not) and has an active animation. The function checks the animation's delay timers for expiration and then advances to the next animation frame in the sequence if it can. It also loops the animation back to the beginning if looping is enabled.

 

Use

This is a private member function

 

Prev: Table of Contents