Table of Contents | ||||
|
||||
LoadAnimation | ||||
Purpose Loads a new animation to be played |
||||
Protoype void CSpriteMngr::LoadAnimation (string str_anim_id, bool b_play = true) |
||||
Parameters
|
||||
Description This function takes the animation passed in via str_anim_id and assigns it as the current animation to the locked sprite object. Now whenever PlayAnimation() is called, it will affect this animation. The same goes for any animation access functions with no alternative specified animation. If you want the animation to play immediately, then you can pass in TRUE for b_play, otherwise pass in FALSE.
|
||||
Use CSpriteMngr sprite; sprite.LoadAnimation("my_anim", true); |
||||
|
||||
|