Table of Contents | ||
|
||
GetAnimDelay | ||
Purpose Returns the animation delay in milliseconds |
||
Protoype int CSpriteMngr::GetAnimDelay (string str_anim_id = "") |
||
Parameters
|
||
Description This function extracts the number of milliseconds in an animation's loop delay. If there is already an animation loaded with LoadAnimation(), then you can extract the value from that animation without having to specify it. However if there is no loaded animation or you want to access an animation not loaded, then you must pass in its ID for str_anim_id.
|
||
Use CSpriteMngr sprite; // there is an animation loaded - get that animation's delay int i_anim_delay = sprite.GetAnimDelay(); // get another animation's delay int i_anim_delay2 = sprite.GetAnimDelay("nuther_anim"); |
||
|
||
|