たとえば、目に見えないボックスが必要な場合、アルファが 0 の場合、どうすればタッチ イベントを取得できますか? または、目に見えないボックスを作成する別の方法があります。
local function invisiblebuttontouch(event)
if event.phase == 'began' then
print (event.x..","..event.y)
end
end
button = display.newRect(1,1,300,300)
button:addEventListener("touch",invisiblebuttontouch)
button.alpha = 0
x と y を出力することはありませんが、アルファを 0 に設定しないと問題なく動作します。