playMaker

Author Topic: How to temporarily Disable Object Touch [SOLVED]  (Read 1987 times)

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 65
How to temporarily Disable Object Touch [SOLVED]
« on: December 24, 2017, 07:44:20 PM »
Hi,

i have gameobjects (not UI), that have touch trigger/detection.

How to disable the all card touch in temporarily, because the action are so fast,
for example :
1) i select first card then rotate
2) i select 2nd card then rotate
3) i select 3rd card <--- i want disable touch here and other cards until 2nd card finish to rotate...

i have try using state flow, but they always passed through string comparison value, i dont know why, please see screenshot below :





i have try also untick checkbox in "every frame" but also have no effect...
« Last Edit: December 29, 2017, 11:18:37 PM by rainexplorer »

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: How to temporarily Disable Object Touch
« Reply #1 on: December 25, 2017, 07:45:08 AM »
Sorry, I am not sure I completely understand you question. If you want to stop on a state for specific amount of time, you can use the action "Wait".

Is this your question?

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 65
Re: How to temporarily Disable Object Touch
« Reply #2 on: December 26, 2017, 04:55:07 AM »
Hi, no i just want to disable all touch event...

above screenshot means : "because i still not knowing how to disable touch, i try to block all flow triggered by touch event, but strangely it still passed through string comparison"...

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: How to temporarily Disable Object Touch
« Reply #3 on: December 28, 2017, 05:29:33 AM »
Hi.
You can make a state before the 'check lock' and place "Mouse Down" as a local, not as a global transition.
then make 2 events (call them "Enable Cards" and "Disable Cards" for example).
Place "Enable Cards" on the "Mouse Down" state as a global.
And place  "Disable Cards" on a empty state.

Now you can use "Send Event" to enable disable the cards

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 65
Re: How to temporarily Disable Object Touch
« Reply #4 on: December 29, 2017, 03:15:58 AM »
Hi.
You can make a state before the 'check lock' and place "Mouse Down" as a local, not as a global transition.
then make 2 events (call them "Enable Cards" and "Disable Cards" for example).
Place "Enable Cards" on the "Mouse Down" state as a global.
And place  "Disable Cards" on a empty state.

Now you can use "Send Event" to enable disable the cards

Hi, but if i place Mouse_Down as local i can't receive any event

edited: SOLVED
« Last Edit: December 29, 2017, 11:18:56 PM by rainexplorer »