Jump to content

replacing a spritesheet in the preload() function


Nek0
 Share

Recommended Posts

looking for a way to replace a preloaded spritesheet's image file. something like:

game.load.spritesheet('player', 'img/player.png', 32, 64)

changes to:

game.load.spritesheet('player', 'img/player2.png', 32, 64)

i've tried calling the second line after the preload function but it doesn't seem to work.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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