MaxAg

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. MaxAg

    LoadTexture

    thanks for your answer but when I use : player.setTexture('dudeGun'); It's not modifying the texture. No error message niether...
  2. MaxAg

    LoadTexture

    Hi, I'm trying to change texture of a sprite but it's not working.... player = this.physics.add.sprite(200, 100, 'dude'); player.loadTexture('dudeGun', 0, false); but i have this error message : player.loadTexture is not a function Apparently this method is only for this.add.sprite, not for physics... do we have any equivalent method when we use physics? Thanks!