Jump to content
  • 0

How do I make an air attack usable once every time you jump?


SoN1c2001

Question

How do I make an air attack usable once every time you jump?

I'm working on a character, and I want to make the strong air attack only once in the air. The character can double jump, so I think it would work only once during the time in the air.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Well one thing that could work is

First, add a varset in the attack, set any open variable to 1 (for this example i'll use 30). It should trigger right when the attack starts

[State 0, Varset]

trigger1 = Time = 0

v = 20

value = 1

 

Second , add a varset to statedef 0

[State 0, Varset]

trigger1 = TIme = 0

v = 20

value = 0

 

Last, go to the CMD and add a triggerall to the move so that it requires the variable to be zero.

triggerall = var(20 = 0

 

I'm pretty sure this should work, if you run into a problem ask me

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...