Hi,
I need to display one of many full-screen images at any one time, as controlled in separate functions. I’m using global values for their assignment (e.g. background1 = display.newImage("[file.png]") etc.). I’m then controlling their appearance with ‘tranition.to’.
Currently, I’m assigning these global values in the relevant function, and then releasing them (e.g. background1:removeSelf) in the subsequent function that is called.
Is this the most efficient way of doing it? Or would it make no difference if I assigned all the global values (for these many display.newImage’s) first, and then just released them when finished with? (which would result in tidier and more manageable code - if nothing else).
Hope this makes sense.
Thanks in advance.
Dave. [import]uid: 82595 topic_id: 15529 reply_id: 315529[/import]
[import]uid: 52491 topic_id: 15529 reply_id: 57458[/import]