statedef using wrong anim

Started by Memo, December 20, 2016, 05:50:51 PM

Previous topic - Next topic

Memo

this is a weird issue ive never seen before.
this is part of ryus tatsu, its clearly stated
in the statedef to use anim 1400 but it always
uses 1401! i removed 1401 and i get an error..
it wants to use 1401 wtf!
my statedef is using the wrong anim!

heres the code
Spoiler (click to show)

;==============================================================
;==================================CVTW2/SYSTEM==========MEMO==
;==============================================================
         [Statedef 1400, Tatsumaki Senpuu Kyaku, Street Fighter E.X. Version]
type = S
physics = S
moveType = A
ctrl = 0
velSet = 0,0
sprPriority = 1
powerAdd = 0
faceP2 = 1
         [State 1400, Button Detect]
type = VarSet
trigger1 = !Time && !AILevel
var(10) = ifElse((command = "a" || command = "rlsa"), 0, ifElse((command = "b" || command = "rlsb"), 1, 2))
         [State 1400, Button Detect (AI)]
type = VarSet
trigger1 = !Time && AILevel
var(10) = ifElse((P2MoveType = H || Random < 500), 2, ifElse(Random < 500, 1, 0))
         [State 1400, Animation]
type = changeanim
trigger1 = !time
value = 1400
         [State 1400 , End]
type = null;ChangeState NULLED FOR TESTING
trigger1 = !AnimTime
value = 1401
         [State 200, End]
type = ChangeState
trigger1 = !AnimTime HERE FOR TESTING PURPOSES
value = 0
ctrl = 1

heres a pic of proof my anim is in the air, been there forever now!


and look at this shit here, why is it using anim 1401?


im sorry this shit is driving me crazy!

Odb718

Quote from: Memo on December 20, 2016, 05:50:51 PM[State 200, End]
type = ChangeState
trigger1 = !AnimTime HERE FOR TESTING PURPOSES  ;<<<<This is causing problems
value = 0
ctrl = 1
vVv Gouken718 vVv SabreTooth718 vVv


Memo

Quote from: Odb718 on December 21, 2016, 11:37:17 AM
Quote from: Memo on December 20, 2016, 05:50:51 PM[State 200, End]
type = ChangeState
trigger1 = !AnimTime HERE FOR TESTING PURPOSES  ;<<<<This is causing problems
value = 0
ctrl = 1


i added that last night to try to test it, I was having this issue before those testing changestates.
Its supposed to do a quick 7 tick anim and go to statedef 1401 but it wont, it plays the wrong anim
And never changes to state 1401. I'm going to delete it all, the states, animations and command
And do it over because from what I can see it should be working but its not.
The only thing I can think of is that something's corrupt, air or the .st file but I've never seen anything
Like this

Odb718

Do a quick search in FF3 for

1400]

and press enter a couple times. If it jumps around, you've got 2 1400 statedefs.
try Changing things to this...
Spoiler (click to show)
[Statedef 1400, SFE.X.Tatsumaki]
type = S
physics = S
moveType = A
ctrl = 0
velSet = 0,0
sprPriority = 1
powerAdd = 0
faceP2 = 1
anim = 1400

[State 1400, Animation]
type = changeanim
trigger1 = !time && anim != 1400
value = 1400

[State 1400, Button Detect]
type = VarSet
trigger1 = !Time && !AILevel
var(10) = ifElse((command = "a" || command = "rlsa"), 0, ifElse((command = "b" || command = "rlsb"), 1, 2))

[State 1400, Button Detect (AI)]
type = VarSet
trigger1 = !Time && AILevel
var(10) = ifElse((P2MoveType = H || Random < 500), 2, ifElse(Random < 500, 1, 0))

[State 1400, End]
type = ChangeState
trigger1 = !AnimTime
value = 1401
ctrl = 1
vVv Gouken718 vVv SabreTooth718 vVv