Let’s say I have this code:
moon = display.newImageRect("moon.png", W/4, H/4)
moon:setReferencePoint(display.CenterReferencePoint)
moon.x = 200
moon.y = 100
and later in the code logic I wish to change moon.png by newmoon.png. Can I use the existing moon reference and do something like:
moon:setImage("newmoon.png") --???
I read the API but didn’t find a way to set an new image to an existing display.newImageRect reference.
Thanks in advance for your help. [import]uid: 23471 topic_id: 8564 reply_id: 308564[/import]
[import]uid: 23471 topic_id: 8564 reply_id: 30862[/import]