Is it possible to set of 2 functions at the same time with one eventlistener?
Like this?
[code]
monster:addEventListener( “touch”, knappar,knappar1 ) [import]uid: 197493 topic_id: 37537 reply_id: 67537[/import]
Is it possible to set of 2 functions at the same time with one eventlistener?
Like this?
[code]
monster:addEventListener( “touch”, knappar,knappar1 ) [import]uid: 197493 topic_id: 37537 reply_id: 67537[/import]
I believe your case would only run knappar and not knappar1.
Try
[code]
local function knapparCombine()
knappar()
knappar1()
end
monster:addEventListener( “touch”, knapparCombine )
[/code] [import]uid: 221639 topic_id: 37537 reply_id: 145714[/import]
not sure if this is going to work but try something like this.
monster:addEventListener( "touch", function() knappar(); knappar1() end )
good luck
Larry [import]uid: 11860 topic_id: 37537 reply_id: 145716[/import]
Worked perfect!
Thanks! [import]uid: 197493 topic_id: 37537 reply_id: 145785[/import]
I believe your case would only run knappar and not knappar1.
Try
[code]
local function knapparCombine()
knappar()
knappar1()
end
monster:addEventListener( “touch”, knapparCombine )
[/code] [import]uid: 221639 topic_id: 37537 reply_id: 145714[/import]
not sure if this is going to work but try something like this.
monster:addEventListener( "touch", function() knappar(); knappar1() end )
good luck
Larry [import]uid: 11860 topic_id: 37537 reply_id: 145716[/import]
Worked perfect!
Thanks! [import]uid: 197493 topic_id: 37537 reply_id: 145785[/import]