YesNoOk
avatar

Character gets stuck in parry animation (Read 383 times)

Started by ziaker, March 25, 2019, 01:46:41 pm
Share this topic:
Character gets stuck in parry animation
#1  March 25, 2019, 01:46:41 pm
  • *
    • Brazil
the character gets stuck after the animation of the parry and does not return to normal, is so forever

have a code to fix this?
Re: Character gets stuck in parry animation
#2  March 26, 2019, 01:07:39 am
  • ***
  • preni ĝin kiel estas
    • USA
    • doubletrend-zeta.neocities.org/
Can you post the specific code from your character?

im buggin out man
Buriki OneMONSTER
Re: Character gets stuck in parry animation
#3  March 26, 2019, 02:47:02 am
  • *
    • Brazil
;parry
[Statedef 1821]
type = U
movetype = I
physics = U
anim = IfElse(StateType = S,1821,1822)
velset = 0,0
ctrl = 0
poweradd = 1000
juggle = 0
facep2 = 1
hitdefpersist = 0
movehitpersist = 0
hitcountpersist = 0
sprpriority = 2

[State 1821: AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = NoWalk

[State 1821: CtrlSet]
type = CtrlSet
trigger1 = (Time > 4) && (StateType = S)
value = 1

[State 1821: NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA


[State 1821: VarSet]
type = VarSet
trigger1 = (!Time)
var(1) = 1

[State 1821: Null]
type = Null
trigger1 = (!Time)
trigger1 = (FVar(0) := Vel X) && (FVar(1) := Vel Y)

[State 1822: VelSet]
type = VelSet
trigger1 = (Time)
x = 0
y = 0
persistent = 0

[State 1821: VelSet]
type = VelSet
trigger1 = (Time > 14)
x = FVar(0)
y = FVar(1)
persistent = 0

[State 1822: VelAdd]
type = VelAdd
trigger1 = (Time > 14)
y = 0.45

[State 1821: ChangeState]
type = ChangeState
trigger1 = (!AnimTime)
value = IfElse(StateType = S,0,11)

[State 1821, AfterImage]
type = AfterImage
trigger1 = Time = 0
length = 3
PalBright   =   0,  0,  10
PalContrast = 165,165,165
PalAdd      =   0,  0,  0
PalMul      = .50,.50,.75
TimeGap  = 9
FrameGap = 1
Time = 27





AND





; Parry
[State -2: Null]
type = Null
trigger1 = (!Time) && (Var(1) = 0)
trigger1 = ((Command = "holdfwd") && (StateNo = 20)) ^^ ((Command = "holddown") && (StateNo = [10,11]))
trigger1 = (Var(0) := 8)
trigger2 = (Command != "holdfwd") && (Command != "holddown") && (Var(1) = 1)
trigger2 = (Var(1) := 0)
ignorehitpause = 1

[State -2: VarAdd]
type = VarAdd
trigger1 = (Var(0) > 0)
var(0) = -1
ignorehitpause = 1

[State -2: HitOverride]
type = HitOverride
triggerall = (StateType != A) && (Ctrl) && (Var(0) > 0)
trigger1 = (Command != "holddown") && (Command != "holdback")
attr = SA, AA, AP
slot = 0
stateno = 182
ignorehitpause = 1

[State -2: HitOverride]
type = HitOverride
triggerall = ((StateNo = 30) || (StateNo = 1821)) && (Var(0) > 0)
trigger1 = (Command != "holddown") && (Command != "holdback")
attr = SCA, AA, AP
slot = 0
stateno = 182
ignorehitpause = 1
Re: Character gets stuck in parry animation
#4  March 28, 2019, 03:25:17 pm
  • *****
  • Shame on you!
    • USA

  • Online
I'm not exactly sure what the problem is.
But you can change

[State 1821: ChangeState]
type = ChangeState
trigger1 = (!AnimTime)
value = IfElse(StateType = S,0,11)

to have it change after a certain amount of tics. More than likely it's your animation's fault.
vVv Wheat Stage Released vVv