what is the best way for a touch hyper sensitive

hi,

i try to do a touch detection on character moving but sometimes the touch is not fully detected. 

it looks like the touch are not all interpreted

could you help me ?

local function touchCharacter(event) &nbsp; &nbsp; if &nbsp;event.phase =="began" or event.phase=="ended" then &nbsp; &nbsp; &nbsp; &nbsp; target = event.target &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if target.myId \<=30 then &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kill(character,target.myId) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print("character",k,"touched") &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end &nbsp;&nbsp; &nbsp; &nbsp; end end for i=1,#character do &nbsp; &nbsp; character[i]:addEventListener("touch",touchCharacter) end

Hi @bexphones,

Because you’re limiting your phase to either “began” or “ended”, you won’t get any “moved” detection in your lines inside of that conditional block.

Best regards,

Brent

Hi @bexphones,

Because you’re limiting your phase to either “began” or “ended”, you won’t get any “moved” detection in your lines inside of that conditional block.

Best regards,

Brent