// create()
this.anims.create({
key: "playerAnimation",
defaultTextureKey: "player",
duration: 1, // 1 ms, close enough to 0
frames: [
{ frame: 0, duration: 100 },
{ frame: 1, duration: 150 },
{ frame: 2, duration: 200 }
]
});
// create()
this.anims.create({
key: "playerAnimation",
defaultTextureKey: "player",
duration: 1, // 1 ms, close enough to 0
frames: [
{ frame: 0, duration: 100 },
{ frame: 1, duration: 150 },
{ frame: 2, duration: 200 }
]
});