[]loadAnimation无法获取动画文件
Main.as类:
gameCol = new GameControl();
gameCol.gameLoad();
GameControllei类:
动画文件统一在GameAni.ani内制作
private var aniArr:Array = [
"res/atlas/role/hero.atlas",
"res/atlas/role/monster/monsterA/die.atlas",
"res/atlas/role/monster/monsterA/move.atlas"
];
Laya.loader.load(aniArr, Handler.create(this, onAni), null, Loader.ATLAS);
private function onAni():void
{
var role:SimpleRole = new SimpleRole();
Laya.stage.addChild(role);
}
SimpleRole类:
public function SimpleRole()
{
roleAni = new Animation();
roleAni.loadAnimation("GameAni.ani");
}
Not found: GameAni.ani#
求帮忙看下原因
gameCol = new GameControl();
gameCol.gameLoad();
GameControllei类:
动画文件统一在GameAni.ani内制作
private var aniArr:Array = [
"res/atlas/role/hero.atlas",
"res/atlas/role/monster/monsterA/die.atlas",
"res/atlas/role/monster/monsterA/move.atlas"
];
Laya.loader.load(aniArr, Handler.create(this, onAni), null, Loader.ATLAS);
private function onAni():void
{
var role:SimpleRole = new SimpleRole();
Laya.stage.addChild(role);
}
SimpleRole类:
public function SimpleRole()
{
roleAni = new Animation();
roleAni.loadAnimation("GameAni.ani");
}
Not found: GameAni.ani#
求帮忙看下原因
没有找到相关结果
已邀请:
2 个回复
170*****650
赞同来自:
cuixueying
赞同来自: 170*****650