Hello, I’m new to using Corona and the Lua programming language. I have much experience using JavaScript and PHP so I already understand the basic concepts of programming already.
Here, I create an image.
example = display.newImage(“example.png”);
Is there a line of code that would change the image to “example2.png”?
Something like this (this is not the actual code):
example:changeImage(“example2.png”);
Is there a function that would let me do something like that?
I do not want to use sprite sheets or anything like that.
I have already thought of a solution which is to remove the image or change it’s X/Y coordinates out of the screen and basically swap coordinates with another image. I just don’t want to do something this complicated for something so simple.
Thank you!
