Hello Guest

Author Topic: Avoiding more than one button being pressed simultaneoulsy in current scene  (Read 3335 times)

hexdump

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 43
    • View Profile
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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Use tk2d UI - it'll be alot easier to mask buttons there, as there is only one entry point for all click events.

hexdump

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 43
    • View Profile
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.
« Last Edit: July 26, 2013, 03:28:58 pm by hexdump »