Paul_L
1
I have a bunch of game objects created with factory … e.g.
item_id = factory.create("#factory", vmath.vector3(x, h, 0))
How can I get access to objects, sprites, scripts beloning ‘item_id’ ?
Something like this (item_id … “#script”) but it doesn’t work
1 Like
I think you’re looking for msg.url: http://www.defold.com/ref/msg/
For your id and a script named “script” you’d do “msg.url(nil, item_id, “script”)”. I’m typing from a phone right now, sorry that’s not formatted.
2 Likes
Paul_L
3
cool! it works! thank you 
2 Likes