Hello, I’m new here with using Corona SDK and just started building my app. I was wondering how I would go about parenting an image onto another so that it’s position is relative to its parent and not the screen.
This might help explain what I mean.
local screenW, screenH = display.contentWidth, display.contentHeight local imageParent = display.newImageRect("image.png", 200, 200) imageParent.x = screenW/2 imageParent.y = screenH/2 local imageChild = display.newImageRect("image2.png", 50, 50) imageChild.x = 0 imageChild.y = 0 --It is not in the top left corner of screen, but in the top left of imageParent