cocos lua csb动画返回到开始处

来源:互联网 发布:网络推广新闻发布 编辑:程序博客网 时间:2024/05/13 04:32
    -- body
  if  self.ai == nil then
        return;
    end
       local map = parent.maps["map13"];
      if map == nil  then
      release_print("111111*******");
      end

 
    local node = map.AniNode["tree"];
    if node == nil  then
      release_print("*******");
      end
    release_print("11111");
    node:runAction(self.ai);
    self.ai:setTimeSpeed(1);
    self.ai:gotoFrameAndPlay(0,10, false)
    release_print("22222");
    node:stopActionByTag(1);
    release_print("test1")