Hi 
I have a sound event that i want to associate with some of the objects of my scene. For example:
[lua]local function bing( self, event )
if ( event.phase == “began” ) then
audio.play( kick )
end
end
wood_1.collision = bing
wood_1:addEventListener( “collision”, wood_1 )
.
.
.
wood_39.collision = bing
wood_39:addEventListener( “collision”, wood_39 )[/lua]
so now i have 40 objects, and i must add separately a listener to all of them. It is possible to add a single listener that is valable for all the objects that name begins with wood?
many thanx for your help
[import]uid: 44010 topic_id: 8268 reply_id: 308268[/import]