I have a group that I’ve attached an update() function to. The function is meant to resize all the elements within the group:
[lua]local map = display.newGroup()
map.update = function(scale)
– scale all children
end[/lua]
What I want to know is how I can get the function to refer to the display object directly with [lua]self[/lua], since more than one instance of this map may be generated.
I want to be able to access the children, as well as other variables and attributes I’ve bolted on to the group. [import]uid: 52771 topic_id: 17926 reply_id: 317926[/import]