Forum

api play anim bye name

17 March 2017 11:22
there is :m_anim.play(obj, finish_callbackopt, slot_numopt)

like :m_anim.play(obj, finish_callbackopt, animName)
17 March 2017 14:54
Hello
It's like
function play_anim_by_name(obj, finish_callback, anim_name) {
    var slot_num = m_anim.get_slot_num_by_anim(obj, anim_name);
    m_anim.play(obj, finish_callback, slot_num);
}
27 March 2017 12:12
ok i use it
so maybe several callback for differents frames

m_anim.play(obj, finish_callback frame 1,finish_callback frame 12,……., slot_num);
 
Please register or log in to leave a reply.