[Resolved] touch anywhere else on screen

I have this box that you touch, it changes to editable form, and I want touching anywhere away from it to change it to non-editable form.

So I thought that if I add a Rect that covers up the screen, put it right below the box in z-order, make its alpha 0, and make its touch event change the box to non-editable form, that would do the trick.

But no - it seems that any object with alpha 0 is same as being invisible, and invisible objects don’t have touch events.

So - except for doing alpha=0.01 (which is kludgy as hell), what else can I do for this? [import]uid: 160496 topic_id: 28454 reply_id: 328454[/import]

Hey Mike, this one is real easy;

[lua]obj.isHitTestable = true[/lua]

That will make invisible objects still register touch events.

Peach :slight_smile: [import]uid: 52491 topic_id: 28454 reply_id: 114920[/import]

wee!

Thanks [import]uid: 160496 topic_id: 28454 reply_id: 114954[/import]

Not a problem, marking as resolved :slight_smile: [import]uid: 52491 topic_id: 28454 reply_id: 115050[/import]