Hello. I have some transparent area where player can touch, code sample:
local touchArea = display.newRect( params )
touchArea.alpha = 0
touchArea:addEventListener ( "touch", function )
if I set touchArea.alpha = 0.01 it works. If alpha = 0 it doesn’t work. What is wrong?
The problem with touchArea.alpha = 0.01 is also strange. The touchArea keep existing after the scene destroying when I quit to the menu (but it set as local and even exist only in this scene!), and after some this scene reloads, I can definitely see it, so it forms layers. 10 reloads <=> 10 layers <=> .alpha = 0.1