Jump to content
  • 0

how to Repetition statedef in mugen


zangief

Question

Hi guys
 
I want repete some state in my char when I want make my char some moves
this is example for what I want
 
;---------------------------------------------------------------------------
; Taunt
; CNS difficulty: easy
[Statedef 195]
type = S
ctrl = 0
anim = 195
velset = 0,0
movetype = I
physics = S
sprpriority = 2
 
[State 195, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 196
ctrl = 0
 
;---------------------------------------------------------------------------
; Taunt
; CNS difficulty: easy
[Statedef 196]
type = A
ctrl = 0
anim = 196
velset = 0,-10
movetype = I
physics = N
sprpriority = 2
 
[State 0, VelAdd]
type = VelAdd
trigger1 = time>=0
x = 0
y = 1
 
[State 0, ChangeState]
type = ChangeState
trigger1 =  Pos Y >= 0 && vel Y > 0 
value = 195
ctrl = 0
 
[State 0, ChangeState]
type = ChangeState
triggerall = var(21) < 3
trigger1 = time = 0
value = 0
ctrl = 1
 
I want my char jump 3 times and changestate to 0 state but thats not happend
anyway I waiting any respond
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

for your taunt you want the computer to jump 3 times?

 

ok well make 195 change state to 196.

in 195, varadd variable 10 to value 1.

 

in state 195 you need 2 change states.

 

1 change state with trigger var(10)=2 ; This change state will take you back to 0.

1 change state with pos y > 0 && vel y > 0 ; This will take you back to state 195.

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...