How do I control touches?

0 favourites
  • 6 posts
From the Asset Store
Surena Touch
$2.50 USD
A wrap from official Touch plugin to export touch/mouse input to other plugins.
  • Thanks for viewing!

    I have a touch menu system, and when I am testing on my device, sometimes it clicks a few times. For example: I touch my "play" button, it moves the menu and brings up another menu that allows you to pick a game mode. My issue is, when I touch the play button, it sometimes clicks the game modes that will appear under my play button.

    So is there a way I can turn TOUCH off for a bit, or is there a way I can make it to where it WAITS X seconds before allowing touch to work again?

    Thanks in advance

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Or is there a way for ON TOUCH END to work on a sprite, and not just touch in general?

  • Why not using 'on touched object'? It only check if a sprite already touched by user

  • It seams that your problem is not actually the touch condition. but two objects in the same place at the moment you are touching it. Make sure that any button is underneath your play button or just put in the event that, on touched Play button and if you are not touching anything else....

    Also I would recommend the tap gesture. Sometimes It's better when you want things to trigger only once.

  • Why not using 'on touched object'? It only check if a sprite already touched by user

    Sorry for not being clear, I was already using the "On touched object". What was happening is on that, it still touches what replaces the button on the layout. I think the gestures will be what I need, going to try that. Thanks for answering!

    It seams that your problem is not actually the touch condition. but two objects in the same place at the moment you are touching it. Make sure that any button is underneath your play button or just put in the event that, on touched Play button and if you are not touching anything else....

    Also I would recommend the tap gesture. Sometimes It's better when you want things to trigger only once.

    Thanks for the tip. Going to give the tap gesture a spin. Thanks for the info!

    I will let you guys know how it goes, and if I have any more problems with it, I will put up a capx to show what is happening

  • Use the Tap Gesture instead of "On Touched Object" seems to have done the trick! Thanks guys for the information and feedback!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)