I have some doubts about this API, display.NewImage() . Can someone help me?
I wrote this code:
my variables are: “nombreCat” and “idPal” for changing image
imagen = display.newImage( nombreCat…"/img/img_"…idPal…".jpg", 50, 80 )
imagen.anchorX, imagen.anchorY = 0, 0
imagen.width, imagen.height = 180, 200
I want to change image but I would like using same variable "imagen", because I want my new image appears on the same position, replacing previous image. Is it possible changing only the filename? or is it necessary declare all properties again?
Regards!