我设置的一个 240x240的动画,代码如下[code]_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);
}[/code]
根据这个代码,我认为鼠标点击区域在图片左下区域,但结果是图片左上区域,求解?
如果我想让图片的点击区域是图片左下区域,应该如何出来,谢谢