[Resolved] Invisible object recieve touch.

I was wondering can a invisible object recieve touch. I’m trying to create something that when the user touches the bottom portion of the screen it trigger on event and when the left/right is touched is triggers another. I’ve tried using alpha and it doesn’t work with the alpha all the way down. Any suggestions??? [import]uid: 148860 topic_id: 26938 reply_id: 326938[/import]

Yes, set the alpha to 0.01.

Edit see my next post for a proper solution

[import]uid: 84637 topic_id: 26938 reply_id: 109355[/import]

Thanks! [import]uid: 148860 topic_id: 26938 reply_id: 110072[/import]

Edit, I gave you some poor advice there.

You can still make the image accept touch events even when fully invisible.

Here is an example of how to do it (comment out the isHitTestable line to see how without it the full screen rect doesn’t respond to touch events)

[code]

local function test(event)
print(“hello”)

return true
end

local rect = display.newRect(0,0,480,320)
rect.x = display.contentCenterX
rect.y = display.contentCenterY
rect.alpha = 0
rect.isHitTestable = true --Make it listen for touch events even when invisible

rect:addEventListener(“tap”, test)
[/code] [import]uid: 84637 topic_id: 26938 reply_id: 110097[/import]