Y touch offset

Hey,

Is there a way to offset a users touch y coordinate?

For instance, if the user touches at y = 100, I can add an offset of +10 so the final y value of the touch is 110?

Thanks!

k [import]uid: 142918 topic_id: 28247 reply_id: 328247[/import]

You could just set it to a variable.

local function touched(event)  
 local phase = event.phase  
 if phase == "began" then  
 Y = event.y + 10   
 end  
end  
Runtime:addEventListener("touch", touched)  

That should work. Its not tested though.
[import]uid: 17138 topic_id: 28247 reply_id: 114122[/import]