Double tap
IsabelleK
Member, Sous Chef Posts: 2,807
Hello, I have an actor with a rule, and I would like to make something like that:
1. Player taps with his finger on this actor.
2. Some action starts.
3. Player taps for the second time on the this actor.
4. Action stops.
I have a rule, which requires a tap with a finger, and attribute to be set on 0. It starts an action and changes this attribute to 1.
And a second rule, which requires a tap with a finger, and attribute to be set on 1. It makes an action stops and changes this attribute to 0.
It doesn't work in GS preview. I think, because of: actor recognizes my tap, and changes an attribute to 1, and then a second rule is occuring. But I have no idea, how to make it differet. Could you give me some advice? Thank you.
1. Player taps with his finger on this actor.
2. Some action starts.
3. Player taps for the second time on the this actor.
4. Action stops.
I have a rule, which requires a tap with a finger, and attribute to be set on 0. It starts an action and changes this attribute to 1.
And a second rule, which requires a tap with a finger, and attribute to be set on 1. It makes an action stops and changes this attribute to 0.
It doesn't work in GS preview. I think, because of: actor recognizes my tap, and changes an attribute to 1, and then a second rule is occuring. But I have no idea, how to make it differet. Could you give me some advice? Thank you.
Comments
"When all is apply"
-When touch is press
-Attribute (xxx) = 0
---Change Attribute (xxx) to 1
---Action Start
and
"When all is apply"
-When touch is press
-Attribute (xxx) = 1
---Change Attribute (xxx) to 0
---Stop Action
Hope that helps
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Thanks alot tshirtbooth
Can you explain a little bit more??
I have something like that:
"When all is apply"
-When touch is press
---Change Attribute game.Inventory to: (game.Inventory+1)%2"
The second actor:
"When all is apply"
-Attribute game.Inventory = 0
---Action Start
and
"When all is apply"
-Attribute game.Inventory = 1
---Second Action Start"
But it doesn't work in the GS preview.