Display group objects updatable?

Hi,

Can you update a value of an object property in a display group?

something like this:

1
2
3
4
5
6
7
local Objects = display.newGroup()
 
local ObjectX = display.newRect( 0, 0, 25, 25 )
ObjectX.Target = "Bob"
Objects:insert( ObjectX ) 
 
Objects[1].Target = "Steve"

Yes, that code is valid

Raúl Beltrán
MIU Games

Yes, that code is valid

Raúl Beltrán
MIU Games

views:1154 update:2011/12/2 15:07:10
corona forums © 2003-2011