How to change/replace/update sprite to another image?

Is possible to change sprite on runtime without using animation frame ?

So, there are a sprite called ‘Apple’ and i want to change/replace this sprite to ‘Banana’ and so on, without losing it’s custom keys, just change their sprite image.

How to do this?

UPDATE:

Fixed method game_object.setTexture(‘sprite_key’);

You can use the setTexture method to change the texture. Pass it the key you want to use.

1 Like

Thanks