Jump to content

generateFrameNumbers prefix ? (typescript)


Rick-C0X2A
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...