'Phaser 3: Add extra Frame to Animation
I have an animation for which I generate my frames with generateFrameNames. However as the last frame I need to add a frame with an entirely different Prefix. Is there any way I can generate my frames using this method, and then "add" the last frame extra? How would I do that?
Currently my code looks like this:
this.anims.create({
key: "nom",
frameRate: 12,
frames: this.anims.generateFrameNames("chara", {
prefix: "nom_000",
start: 0,
end: 5}),
repeat: 2,
});
The frame I need to add is in the same Spritesheet and is called idle_0000.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
