Respawning images

Hello I made a scrolling background but the buildings is different from the background cars moving in the BG. When I say different I mean in x or y axis (mostly in the x axis). How do I respawn a certain object such as my cars?

Please help,thank you

hi,

if you have a wrapper function for newImage (most people have it anyway to bend corona to their own needs), you can do:

function addImage( group, path, x, y, …)
  local img = display.newImage( group, path, x, y, …)
  img.duplicate = function() return addImage( group, path, x, y, …)

  return img
end

hi,

if you have a wrapper function for newImage (most people have it anyway to bend corona to their own needs), you can do:

function addImage( group, path, x, y, …)
  local img = display.newImage( group, path, x, y, …)
  img.duplicate = function() return addImage( group, path, x, y, …)

  return img
end