While I certainly don’t feel like a n00b with Corona there are times where I run across something and I just don’t get it when I should.
Here’s my situation (using Director 1.4)
I have my scene in a display.newGroup called localGroup.
I have an inventory box, that slides in and out, which is its own display.newGroup.
What I want is for the display objects inside the inventory box to be referenced Top Left, but when I set them to x,y = 0,0 for instance, they seem to put their top left corner at the center point of the inventory box.
If I set the reference point to Top Left on the inventory group, where the group shows up is all screwed up.
How do I tell my display.newImageRect to be at 0,0 in its parent group?
packObjects[i] = display.newImageRect(items[k].filenamen, items[k].width, items[i].height)
packObjects[i]:setReferencePoint(display.TopLeftReferencePoint)
localGroup:insert(packsObjects[i])
packObjects[i].x = (i-1) \* 74
packObjects[i].y = 0
[import]uid: 19626 topic_id: 16826 reply_id: 316826[/import]