Rick-C0X2A Posted April 27, 2020 Share Posted April 27, 2020 Hi, According to the documentation, there is suffix and prefix option : https://github.com/photonstorm/phaser/blob/v3.22.0/src/animations/typedefs/GenerateFrameNames.js But when i try to use prefix on my typescript implementation, i got this error : "not assignable" this.scene.anims.create({ key: 'idle', frames: this.scene.anims.generateFrameNumbers(this.texture.key, { start: 0, end: 10, prefix: 'wizard/side/idle/sorcerer_idle', suffix : ".png" }), frameRate: 5, repeat: -1, }); Do you know what's the problem ?. regards, Link to comment Share on other sites More sharing options...
Rick-C0X2A Posted May 1, 2020 Author Share Posted May 1, 2020 (this post still need to be approved for severals days, so just put this for later information: i was just using the wrong method generatedFrameNumbers => generatedFrameNames) Link to comment Share on other sites More sharing options...
Recommended Posts