I have an object
var nark = add([ sprite("spr_1") ]);
How might I change the sprite to something different programatically? Ive tried both of these, but to no avail:
nark.sprite = sprite("spr_2"); nark.sprite = "spr_2";
Here, Use this https://forum.unity.com/threads/how-to-programmatically-change-sprite-of-an-object.234518/
Changing the sprite of an object in kaboom.js
I have an object
How might I change the sprite to something different programatically? Ive tried both of these, but to no avail:
Here, Use this https://forum.unity.com/threads/how-to-programmatically-change-sprite-of-an-object.234518/
Really hope it works :)