Hello I have enabled multitouch and still nothing changes and will only allow one touch. I want to hold down dpad and when its held down be able to press the action button to do attacks. They both work fine by themselves if I release and press, but I want the multitouch to work, the examples in the corona sdk samples made me more confused and couldn’t figure it out through them.
–at the top of code
system.activate( “multitouch” )
local function movement( event )
if event.phase == “began” then
display.getCurrentStage():setFocus(event.target, event.id)
event.target.isFocus = true
end
if event.phase == “began” or event.phase == “moved” then
--movement stuff
elseif event.phase == “ended” or event.phase == “cancelled” then
movement = nil
display.getCurrentStage():setFocus( event.target, nil )
event.target.isFocus = false
end
return true
end
------Action A button -------------------------------------------
local function action1( event )
--action stuff
return true
end
myGame.Dpad:addEventListener(“touch”, movement)
myGame.actionA:addEventListener(“tap”, action1)
Runtime:addEventListener(“enterFrame”, gameLoop)