Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: rainexplorer on December 24, 2017, 05:44:20 PM

Title: How to temporarily Disable Object Touch [SOLVED]
Post by: rainexplorer on December 24, 2017, 05: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 :

(https://i.imgur.com/vnoAJO5.png)

(https://i.imgur.com/G4TOdMS.png)

i have try also untick checkbox in "every frame" but also have no effect...
Title: Re: How to temporarily Disable Object Touch
Post by: tcmeric on December 25, 2017, 05: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?
Title: Re: How to temporarily Disable Object Touch
Post by: rainexplorer on December 26, 2017, 02: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"...
Title: Re: How to temporarily Disable Object Touch
Post by: djaydino on December 28, 2017, 03: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
Title: Re: How to temporarily Disable Object Touch
Post by: rainexplorer on December 29, 2017, 01: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