Hello.
Is it possible to clone a display object
For example, I have this code.
local oBitmap1 = display.newImageRect("images.png", 128, 128)
oBitmap1.x = 100
oBitmap1.y = 100
local oBitmap2 = display.newImageRect("images.png", 128, 128)
oBitmap2.x = 300
oBitmap2.y = 150
I guess solar2D will load the image 2 times in 2 different memory space.
Should I use a ImageSheet (while I have only 1 graph in my images.png file), or is it possible to clone all the oBitmap1 properties to oBitmap2
Something like
local oBitmap1 = display.newImageRect("images.png", 128, 128)
oBitmap1.x = 100
oBitmap1.y = 100
oBitmap2 = clone oBitmap1
oBitmap2.x = 300
oBitmap2.y = 150
Thank’s!
I like Solar2D. I use it since few weeks, it’s very easy