Table of Contents | ||
|
||
GetDirection | ||
Purpose Returns the current direction that the animation is playing in |
||
Protoype int CSpriteMngr::GetDirection (string str_anim_id = "") |
||
Parameters
|
||
Description This function extracts the current direction that the animation is playing in - FORWARD or REVERSE. 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; // access loaded animation int i_dir = sprite.GetDirection(); // access another animation int i_dir2 = sprite.GetDirection("nuther_anim"); |
||
|
||
|