A throw help

Started by Toshio Tenma, July 29, 2011, 05:11:34 PM

Previous topic - Next topic

Toshio Tenma

Hello!
I'm coding a move which my character do a hug in the enemy which actually strangle the victim, but at the first try there are some awkward results:
Spoiler (click to show)
Here is the video which shows what she does in the original:
http://www.youtube.com/watch?v=QFxOwcxhCxk
Here is the code:
Quote;Haguu Jaku - Attempt
[Statedef 1300]
type    = S
movetype= A
physics = S
poweradd= 100
juggle  = 1
ctrl = 0
velset = 5,0
anim = 1300

[State 1300, 1]
type = HitDef
Trigger1 = Time = 0
attr = S, NT
hitflag = M
priority = 1, Miss
sparkno = -1
sprpriority = 1
p1facing = 1
p2facing = 1
p1stateno = 1301
p2stateno = 1302
fall = 1

[State 1300, ChangeState]
type = ChangeState
trigger1 = animtime=0
value = 0
ctrl=1

;Haguu Jaku Success
[Statedef 1301]
type    = S
movetype= A
physics = S
poweradd= 100
juggle  = 1
ctrl = 0
velset = 0,0
anim = 1301

[State 810, PlayerPush]
type=PlayerPush
trigger1=1
value=0

[State 1331, ChangeState]
type = ChangeState
trigger1 = animtime=0
value = 0
ctrl=1

;Haguu Jaku - Enemy Grabbed
[Statedef 1302]
type    = S
movetype= I
physics = N
poweradd= 100
juggle  = 1
ctrl = 0
velset = 0,0

[State 1302, ChangeAnim2]
type = ChangeAnim2
trigger1 = !time
value = 1302
;elem = 1
;ignorehitpause =
;persistent =

[State 1302, PosAdd]
type=PosAdd
trigger1=!time
x=p2bodydist x+20

[State 1302, Hurt]
type = LifeAdd
trigger1 = animtime=0
value = -98

[State 1302, SelfState]
type = ChangeState
trigger1 = animtime=0
value = 5100
What is suggested to improve that move? Midpos? Also, which target bind is required? Also, I'm thinking about making a custom state specially for Magical Chaser characters with unique sprites and anims like 5777.
-Toshio Tenma

BC

what about binding her to the targets position, but have a different animation play for opponents of a certain size? like she jumps up and wraps her legs around them when strangling.

I dunno just an idea.
Accepting commissions