I have been trying to understand the different between function listeners and table listeners for longtime but i couldn’t. I really would like to know what is exactly this and how i can decide which one to be used. Moreover, im very week in OOP programing and this might be the problem.
Im wondering also, what is the “:” and how you use it, for example :-
when you say:-
function bird:touch(even)
– body
end
AND
function bird (event)
– body
end
or when you say:-
local listener = function (event)
end
bird:addEventListener( “touch”, listener )
[import]uid: 11038 topic_id: 3780 reply_id: 303780[/import]