I was wondering if anybody has an idea on how to make an actor do three different attack animations with only using one button that is being pressed 3 times.
So you mean if it's double tapped it does something different as to pressing it once???... Like mmmm.... That's tricky. I think that's index stuff, ask Tshirt Booth!
hey there First off have a attribute called TapCount and have it set to 0 Make a rule when touch is pressed: Change attribute TapCount to TapCount+1 Then in that same rule under the change attribute have a timer after .7 seconds run to completion checked, change attribute tapCount to 0
Then have rules in the player when attribute tapCount=1, do attack 1 When attribute tapCount=2, do attack 2 and when attribute tapCount=3, do attack 3
You might have to adjust the .7 to somethign a little bigger like .8 or .9 if you find that the tapCount attribute changes back to 0 too quick and doesnt give you enough time to tripple tap, or change it to something a little smaller if you feel theres to much time alloud to tripple tap
Comments
When interger = 1. Animate punch
= 2 animate kick
= 3 animate FART in the face lol.
Create a separate rule that says:
if is = to 4 or more change interger to 1.
That what you're after?
here is how you do it
maks an attribute call tapped? bool false
when actor touch is press and attribute is false change the attribute to true
when attribute is true, and touch is press, do something..
when attribute is true timer 0.4 secs change attribute to false and do something
so you can use this method for 2 and 3
Calvin
First off have a attribute called TapCount and have it set to 0
Make a rule when touch is pressed:
Change attribute TapCount to TapCount+1
Then in that same rule under the change attribute have a timer after .7 seconds run to completion checked,
change attribute tapCount to 0
Then have rules in the player when attribute tapCount=1, do attack 1
When attribute tapCount=2, do attack 2
and when attribute tapCount=3, do attack 3
You might have to adjust the .7 to somethign a little bigger like .8 or .9 if you find that the tapCount attribute changes back to 0 too quick and doesnt give you enough time to tripple tap, or change it to something a little smaller if you feel theres to much time alloud to tripple tap
cheers