Need help with a problem

Started by DonMino95, May 06, 2015, 11:05:04 PM

Previous topic - Next topic

DonMino95

I'm making a char, but i have a problem:

I've made a combo animation, but if I try to do this when the p2 is jumping, he goes down.
I want that the p2 stays in his position when the combo is in action.

Here's a video about my problem (you don't have to download it, you can watch it directly):

http://www.mediafire.com/watch/27o0rbeuyidexnr/bandicam_2015-05-06_22-58-11-919.avi

How can i solve this problem?

This is the code:

Spoiler (click to show)
[Statedef 3150, Rush 2 - Part 1]
type = S
movetype = A
physics = S
anim = 304
poweradd = -1000
ctrl = 0
sprpriority = 2
juggle = 0
velset = 0,0

[State 1, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 1
value = S6,0

[State 1, PosAdd]
type = PosAdd
trigger1 = AnimElem = 1
x = p2bodydist x - 15
y = p2bodydist y

[State 0, TargetBind]
type = TargetBind
trigger1 = Time = 1
time = 1
pos = 10,0

[State 1, Explod]
type = Explod
trigger1 = movecontact = 1
anim = 504
ID = 504
pos = 0,-50
postype = p2  ;p2,front,back,left,right
bindtime = 1
random = 50,50
removetime = -2
scale = .6,.6
sprpriority = 3
ownpal = 1

[State 1, HitDef]
type = HitDef
trigger1 = AnimElem = 3 || AnimElem = 6 || AnimElem = 9 || AnimElem = 12 || AnimElem = 15
attr = S,NA        ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
hitflag = MAF        ;HLAFD+-
guardflag = MA 
pausetime = 4,4       
animtype = light          ;light,medium,hard,back,up,diagup
air.animtype = light
fall.animtype = Back
priority = 3,Hit
damage = 15,0
sparkno = -1
sparkxy = 10,-60
hitsound = S1,1
guardsound = 6,0
ground.type = High     ;Low,Trip,None
air.type = High
ground.slidetime = 10
guard.slidetime = 10
ground.hittime = 10
guard.hittime = 10
air.hittime = 10
ground.velocity = 0,0
air.velocity = 0,0
kill = 0

[State 0, ChangeState]
type = ChangeState
trigger1 = stateno = [5000,5210]
value = 699
ctrl = 0

[State 1, ChangeState]
type = ChangeState
trigger1 = Time = 54
value = 3151
ctrl = 0

This is just the first part of the code.
Download Gogeta V3 HERE


DonMino95

I've corrected this by myself.
Download Gogeta V3 HERE