Table of Contents | ||
|
||
IsRepeating | ||
Purpose Determines whether or not the animation is allowed to loop |
||
Protoype bool CSpriteMngr::IsRepeating (string str_anim_id = "") |
||
Parameters
|
||
Description This function determines whether the animation passed in via str_anim_id is capable of looping, or repeating itself automatically. The function returns a boolean value of either TRUE or FALSE depending on the outcome of the test. 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; if (sprite.IsRepeating("my_anim")) // animation loops |
||
|
||
|