Hi all, I’m having problems with this concept
local function onLocalCollision( self, event ) if ( event.phase == "began" ) then print( self.myName .. ": collision began with " .. event.other.myName ) timerOne = timer.performWithDelay(3000, someFunction) elseif ( event.phase == "ended" ) then print( self.myName .. ": collision ended with " .. event.other.myName ) timer.cancel(timerOne) end end
Any help would be greatly appreciated. Thanks