Animasi Phaser Multi Atlas
preload ()
{
this.load.path = 'assets/animations/cybercity/';
this.load.multiatlas('cybercity', 'cybercity-multi.json');
}
create ()
{
this.anims.create({ key: 'fly', frames: this.anims.generateFrameNames('cybercity', { start: 0, end: 98 }), repeat: -1 });
this.add.sprite(400, 300).setScale(2.7).play('fly');
}
Himanshu Jangid