Hi all,
I have the following code on my “play” button :
local function launchGame() -- launch my game end playButton:addEventListener("tap", launchGame) playButton:addEventListener("touch", SHAREFCT.clicSound)
SHAREFCT is a lua file containing my shared function named clicSound()
clicSound() do a “clic” sound when you press the button.
Something is strange :
if i click normally (not to speed, not to slowly) on my playButton with my finger in the top right corner (so really far from the middle), the touch function works and i hear a “clic”. BUT the tap function doesn’t work… and i need to refocus my finger towards the middle of the button to, at the same time, hear a clic and launch the game.
How is it possible that a “touch” event is launched when a “tap” event is not, if i just do a “normal” click ?
and this is the same pb for my 20 buttons in all my lua files…