Jump to content

sharing a sprite between states


spiderworm
 Share

Recommended Posts

Hi,

 

I have a game with two states.  A sprite (called player) is created in the first state and stored in the first state.  In my second state, in create, I call:

this.game.add.existing(player);

But the player sprite never appears in the second state.  player.alive,  player.exists, player.visible, and player.renderable are all true.  Any hints on sharing sprites between states?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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