Previously in v1.0 I was able to create an invisible tap-enabled box by setting its setfillcolor alpha to 0 (not its .alpha). Now it appears that this is no longer possible? If i set the fill alpha to anything greagter the 0 it naturally works but how do we now (in v2.0) create invisible tappable areas?
local halfW = display.viewableContentWidth / 2 local halfH = display.viewableContentHeight / 2 local button=display.newRect(halfW,halfH,50,50);button:setFillColor(1,1,1,1) -- setting alpha value to 0 in above setFillColor no longer registers tap event, -- in v1.0 it still registered function button:tap(event) print("tapped") end button:addEventListener( "tap", button )