gtbt.net
当前位置:首页 >> CoCos%js ADDAnimAtion和sEtAnimAtion的区别 >>

CoCos%js ADDAnimAtion和sEtAnimAtion的区别

setAnimation是告诉该控件我待会要执行什么动画,而startAnimation告诉该控件,我要立马执行该动画 顾名思义。。set 设置 start开始

setFlipX(true);不就行吗

function MyGameScene:createAnimation() ccs.ArmatureDataManager:getInstance():addArmatureFileInfo("img/role0.png","role0.plist","img/role.ExportJson") local animation = ccs.Armature:create("role") animation:setPosition(self.wind...

网站首页 | 网站地图
All rights reserved Powered by www.gtbt.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com