OK I found a possible solution…
This thread : [SOLVED] Setting texture of spriteFrame applies to all instances
Lead me to change
var image = cc.url.raw("resources/texture/game/newsprite.png");
var texture = cc.textureCache.addImage(image);
this.playerDeadNode.getComponent(cc.Sprite).spriteFrame.setTexture(texture);
to
var image = cc.url.raw("resources/texture/game/newsprite.png");
var texture = cc.textureCache.addImage(image);
this.playerDeadNode.getComponent(cc.Sprite).spriteFrame= new cc.SpriteFrame(texture);
its using the new cc.SpriteFrame(texture); that made the difference.
However I am getting this warning when running browser…
“It’s not recommended to use SpriteFrame constructor (new SpriteFrame) because its memory usage can’t be tracked in native environment, if you know what you are doing, you may need to manually retain it after creation then release it when you no longer need it.”
Would be cool to get some feed back on this from cocos guys.
Thanks