In the example of the screenshot, the last line doesn't work: the new sprite doesn't turn to red.
I want to do these 3 actions in the same function:
1. create a new sprite instance
2. read data from an other instance
3. modify the new instance according to this data
But it seems that the new sprite is not recognized, except if I bring the last line out of the function... and I can't do this in my full code, I have to do everything in the same function.
How can I make it work?