2D Toolkit Forum

2D Toolkit => Support => Topic started by: hexdump on July 26, 2013, 10:51:37 am

Title: Avoiding more than one button being pressed simultaneoulsy in current scene
Post by: hexdump on July 26, 2013, 10:51:37 am
Hi!,

I have been following the UI code around of tk2dbutton and it seems pretty hard to achieve what I suggest in the topic. I see some coroutines running that should be blocked from execute, etc...

Has anyone found a clean way to do this? On mobile devices is common to avoid more than one touch at the same time in the UI.

Thanks in advance.
Title: Re: Avoiding more than one button being pressed simultaneoulsy in current scene
Post by: unikronsoftware on July 26, 2013, 11:22:51 am
Use tk2d UI - it'll be alot easier to mask buttons there, as there is only one entry point for all click events.
Title: Re: Avoiding more than one button being pressed simultaneoulsy in current scene
Post by: hexdump on July 26, 2013, 12:42:40 pm
Ok, thanks will try it later. I have seen for this game just setting to not multitouch is enough to accomplish what I suggested.

Thanks in advance.