Referenc on newImageSheet?

Hey Guys i am creating a global ImageSheet and then use it for every instance of a class like this :
 

newJumper.manDisplay = display.newSprite( sheet, seqData )

so now if any Instance of the class changes the sequence of the sheet it works i mean every instance has his own sheet. Buy why ? i think it is just a reference and every instance just access it ?

Hi @bomke,

I might not understand your issue exactly, but when you create a sprite, its image sheet is “locked” to that instance of the sprite. You can’t just change that sheet (create a new sheet under the same namespace) and then expect the sprite to “update” to the new sheet. Is that what you’re attempting to do? Please describe your scenario in more detail…

Thanks,

Brent

Hi @bomke,

I might not understand your issue exactly, but when you create a sprite, its image sheet is “locked” to that instance of the sprite. You can’t just change that sheet (create a new sheet under the same namespace) and then expect the sprite to “update” to the new sheet. Is that what you’re attempting to do? Please describe your scenario in more detail…

Thanks,

Brent