hello i am trying to make an object that would have many properties and one of this properties would be a picture.
i thought about this version:
something = { something1 = 0, somthing2 = 0, something 3 = 0 }
or something like this… something.picture = display.newImage(blablabla)
but i waned to define to this object something a variable that will be a picture (sprite) . I know how to add a sprite to a common object. But i dont know how to assign a sprite to a property of an object.
would code like this maybe work:
something = { something1 = 0, somthing2 = 0, something 3 = 0, something4 = display.newsprite (blabla) }
and why not if it doesnt work ?
i would like to basicly create an object. with some properties and then i want to add this object to a table with 320 times 480 places. usinag a for loop.
Any help would be appreciated.
Ty
Jan
