你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
Monica - 知识达人
赞同来自:
unclepi
_proto_.onAnimation_BirdSing = function () { this.aniBirdSing = new Laya.Animation(); this.aniBirdSing.loadAtlas("res/atlas/birdsing.json"); this.aniBirdSing.interval = 35; // 设置播放间隔(单位:毫秒) this.aniBirdSing.index = 0; // 当前播放索引 this.aniBirdSing.zOrder = 1; this.aniBirdSing.play(); this.aniBirdSing.pivot(0, 120); this.aniBirdSing.pos(94+0, 259+120); this.aniBirdSing.size(120, 120); console.log(this.aniBirdSing.width, this.aniBirdSing.height); this.aniBirdSing.mouseEnable = true; Laya.stage.addChild(this.aniBirdSing); }
要回复问题请先登录
2 个回复
Monica - 知识达人
赞同来自:
ani.size设置的是动画的真实宽高
unclepi
赞同来自:
根据这个代码,我认为鼠标点击区域在图片左下区域,但结果是图片左上区域,求解?
如果我想让图片的点击区域是图片左下区域,应该如何出来,谢谢