Help with bounce code...

Started by Insane, August 11, 2009, 04:27:47 AM

Previous topic - Next topic

Insane

Hi i was wondering how would i make a opponent bounce of the ground from an attack? am trying to edit kyosuke by byakko Gen'Ei Breaker  Shadow Breaker move and i even tried adding the down.bounce code into his hitdef and made his fall.yvel -15.9 i wasnt sure it was suppose to be that negative but i just wanted to try it to see if it worked an it still dosent work :-\.. here is the hitdef and theres another code concering the p2sate maybe it has somthing to do with it am clueless ???

[State 1500, 1]
type = HitDef
trigger1 = Anim = 1305
trigger1 = !MoveContact
attr = A, SA
damage = ceil((1+.01*(power>=1000)+.01*(power>=2000)+.03*(power>=3000)+.15*(life<=300)) * (90+10*var(4))),10
animtype = Hard
guardflag = HA
hitflag = MAF
priority  = 5-(Var(4)=1)+(Var(4)=4), Hit
getpower = 50,0
pausetime = 12,14
sparkno = s9020+(random%8)
guard.sparkno = s9041
sparkxy = -5, -40
hitsound = S5,2
guardsound = S6,0
ground.type = High
ground.slidetime = 12
ground.hittime  = 20
ground.velocity = 0,8
air.velocity = -4,8
fall = 1
fall.recover = 0
fall.envshake.time = 12
fall.envshake.ampl = -4
guard.velocity = -8
palfx.color=32
palfx.sinadd=10,30,60,8
palfx.mul=128,256,512
palfx.time=32

And heres the other code....

[State 1300, LightningHit]
type = Explod
trigger1 = MoveHit
anim = 1325
ID = 1325
pos = 0,-(floor(enemynear,pos Y))
postype = p2
sprpriority = 5
ownpal = 1
ignorehitpause = 1
persistent = 0
... :S


if someone can help me it will be much appreciated :sugoi:.

~Insane~