Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

通过tag 获得动作的api怎么用?

$
0
0

@232403904 写道:

            var peopleSinger = this.node.children;
            var actionMovePeople = cc.moveTo(3, cc.p(0, 0));
            actionMovePeople.setTag(1);
            peopleSinger[i].runAction(actionMovePeople);
            var as2 = peopleSinger[i].getActionByTag(1);
            cc.log('as2' + as2);

按理来说 as2 应该可以获得的。但是运行后as2 显示undefined.

帖子: 2

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>