800 Throwing Issues

Started by ApolloGrimoire, June 21, 2014, 10:41:13 PM

Previous topic - Next topic

ApolloGrimoire

Trying to follow Ryon's throwing tutorial and I'm starting to hate this since I've been at it all day.

For some reason Kid Goku's stuck at his crouching state whenever state 800 starts up.

Here's the code after using Fighter Factory's Throw Creator.

[Statedef 800]
type = S
movetype= A
physics = S
anim = 800
poweradd = 40
velset = 0
ctrl = 0
juggle = 15

[State 800, 1]
type = HitDef
trigger1 = Time = 0
attr = S, NT
hitflag = M
priority = 1, Miss
sparkno = -1
sprpriority = 1
p1facing = ifelse (command = "holdfwd", -1, 1)
p2facing = 1
p1stateno = 010
p2stateno = 020
fall = 1

[State 800, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

[Statedef 810]
type = S
movetype= A
physics = N
anim = 810
poweradd = 60

[State 810, Bind 1]
type = TargetBind
trigger1 = AnimElem = 1
pos = 26.667, 0

[State 810, Bind 2]
type = TargetBind
trigger1 = AnimElem = 2
pos = -15, -46.666666666667

[State 810, Bind 3]
type = TargetBind
trigger1 = AnimElem = 3
pos = -116.33333333333, -34

[State 810, Bind 4]
type = TargetBind
trigger1 = AnimElem = 4
pos = -130.33333333333, -4

[State 810, Bind 5]
type = TargetBind
trigger1 = AnimElem = 5
pos = -163.66666666667, 24

[State 810, Hurt]
type = TargetLifeAdd
trigger1 = AnimElem = 5
value = -78

[State 810, Throw]
type = TargetState
trigger1 = AnimElem = 5
value = 21

[State 810, State End]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

[Statedef 820]
type = A
movetype = H
physics = N
velset = 0,0

[State 820, 1]
type = ChangeAnim2
trigger1 = Time = 0
value = 820

[Statedef 821]
type = A
movetype = H
physics = N
velset = 0,0
poweradd = 40

[State 821, 1] ;Gravity
type = VelAdd
trigger1 = 1
y = .4

[State 821, 2] ; Recover near ground (use ChangeState)
type = ChangeState
triggerall = Vel Y > 0
triggerall = Pos Y >= -20
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5200 ;HITFALL_RECOVER

[State 821, 3] ; Recover in mid air (use SelfState)
type = SelfState
triggerall = Vel Y > 0
triggerall = alive
triggerall = CanRecover
trigger1 = Command = "recovery"
value = 5210 ;HITFALL_AIRRECOVER

[State 821, 4] ;Hit ground
type = SelfState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 5100 ;Hit ground
Insert signature here

XGargoyle

p1stateno = 010
p2stateno = 020

you are redirecting both characters to the wrong states


XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!

ApolloGrimoire

Fixed it, now stuck with another issue. p1 810, p2820 thanks.

Deadpool's stuck in a state after being thrown now. Here's image with debug info.

Insert signature here

XGargoyle

you place the enemy presumably on state 820, but then there's no way to change into state 821


XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!

ApolloGrimoire

[State 810, Throw]
type = TargetState
trigger1 = AnimElem = 5
value = 821

It was on 21, but fixed it to 821 as above.
Insert signature here