[]示例 骨骼动画换装 加不上点击事件
示例是每一秒换一次装,我想改为点击小人换装
例如这样的:http://pixijs.github.io/examples/index.html?s=spine&f=dragon.js&title=Dragon&plugins=pixi-spine&v=#/spine/goblins.js
可是我加了点击事件,根本不触发,另外鼠标在小人上时,鼠标指针要变成可点击的指针“小手的样子”,求大神解析
例如这样的:http://pixijs.github.io/examples/index.html?s=spine&f=dragon.js&title=Dragon&plugins=pixi-spine&v=#/spine/goblins.js
可是我加了点击事件,根本不触发,另外鼠标在小人上时,鼠标指针要变成可点击的指针“小手的样子”,求大神解析
function parseComplete() {
mArmature = mFactory.buildArmature(1);
mArmature.x = mStartX;
mArmature.y = mStartY;
//mArmature.scale(0.5, 0.5);
Laya.stage.addChild(mArmature);
//mArmature.on(Event.LABEL, this, onEvent);
mArmature.on(Event.STOPPED, this, completeHandler);
mArmature.on(Event.CLICK, this, onChangeSkin);
mArmature.showSkinByName(mSkinList[0]);
play();
//changeSkin();
//Laya.timer.loop(1000, this, changeSkin);
}
没有找到相关结果
已邀请:
要回复问题请先登录
10 个回复
cuixueying
赞同来自:
houkaihua888
赞同来自:
就像pixi.js的一样
大神求示例
houkaihua888
赞同来自:
cuixueying
赞同来自:
houkaihua888
赞同来自:
点击区域始终在小人的脚下,不会动的
houkaihua888
赞同来自:
houkaihua888
赞同来自:
houkaihua888
赞同来自:
能像这样吗?
houkaihua888
赞同来自:
cuixueying
赞同来自: