hello! I wanna make my actor jump when i tap two Times on the screen...how i can?...i see the touch.count but it's only for the multitouch right?...i wanna a Double tap...please help!
Make a attribute called doubletap and set it to zero. On the button you what to press for the jump. Have when touch is pressed change attribute double tap to 1. Then make another rule when double tap=1 and touch is pressed change attribute doubletap to 2 Then have a timer under the change attribute behavior in the touch pressed rule and have after 1 second change attrubte double tap to zero and check run to completion. Then in the actor you want to jump make a rule when double tap = 2 then have your move up rule or whatever you have for the jump.
What this does is make the actor jump when the double tap attribute is 2. And the only way to change the double tap to 2 is to touch the button once, and then touch it again within a second which simulates your double tap. hope i helped
Just noticed you wanted the actor to jump when anyone on the screen is double taped. What you do for that is make a actor set the alpha to zero and drag over the whole screen. Then put all the touch pressed rules and behavios stated above in this actor.
Ok thanks for the answer, the actor that i press for the double tap it'snt only for the Double tap but i use it for a swap left to right...because it's all the screen..how i can recognize one and the other?
Comments
What this does is make the actor jump when the double tap attribute is 2. And the only way to change the double tap to 2 is to touch the button once, and then touch it again within a second which simulates your double tap. hope i helped