Greetings, everyone,
I’m a SQL developer who has been playing around with LUA and Corona SDK on his off-time to learn a bit about application development. I’ve learned a whole lot, but there are two issues that are still throwing me for a loop. I’ve done a bit of research, and don’t have answers for them. I’m at work now, so I don’t have access to the specific code, but hopefully someone will be able to shed some light on these for me.
1. The Lack of Z-Coordinate Definition
Let’s say that I have two groups:
groupA contains groupAObjectA, groupAObjectB, and groupAObjectC, inserted in that order.
groupB contains groupBObjectA, groupBObjectB, and groupBObjectC, inserted in that order.
I can move individual groups in front of each other-- for example, groupB:toFront() will move its objects in front of groupA. However, I don’t have any capability to set cross-group display priority. Let’s say that I wanted everything but groupAObjectA to be in front of groupB’s objects. As far as I know, there’s no explicit toBack() function or moveBackOne() function, and I don’t see any way to retrieve/use Z values. A display object can only be a member of a single group at a given time, so no creative solutions with multiple display groups. Is managing display object/group order not a major issue? Something big that’s getting past me?
2. The Inability to Destroy Objects
Again, I may not be understanding how all this works, but there are quite a few situations in which I will write–
display.remove( groupAObjectA )
groupAObjectA = nil
And yet the object still appears on the screen. Sometimes, those two lines are sufficient to remove a display object, but other times they are not. My working theory is that the problem has to do with whether the object is local and where it’s called from, but that’s an area that I need to do more research on. Is that probably the right line of reasoning? Do I need to try having the function that calls the removal code inside the function that groupAObjectA is defined in (encapsulated functions, I think it’s called)? Something else that could be going on here? [import]uid: 191085 topic_id: 32971 reply_id: 332971[/import]