Thanks for answer Peach, but it wont work for me as i need
i have an objects that i need to just touch and objects that i need to drag, if seems they wont behave with together properly…
i need to be able to drag on thing and at the same time touch on others…
is that possible?
right now my drag function looks like this:
[lua] local function onTouch(_e)
local t = _e.target
local phase = _e.phase
if “began” == phase then
local parent = t.parent
display.getCurrentStage():setFocus( t )
t.isFocus = true
–t.x0 = _e.x - t.x
t.y0 = _e.y - t.y
elseif t.isFocus then
if “moved” == phase then
–t.x = _e.x - t.x0
t.y = _e.y - t.y0
elseif “ended” == phase or “cancelled” == phase then
display.getCurrentStage():setFocus( nil )
t.isFocus = false
end
return true
end
end[/lua] [import]uid: 16142 topic_id: 19138 reply_id: 73963[/import]