Light Punch issue

Started by Joulz, August 18, 2013, 05:21:49 AM

Previous topic - Next topic

Joulz

hi,

i'm having trouble finding the cause of this chain of Light Punch (as it doesn't happen to the other basic kicks/punches):



messing around with the parameters in the CNS didn't affect this: i suspect it might be something to do with the command??

Spoiler (click to show)
[Statedef 200]
type    = S                      ;State-type: S-stand, C-crouch, A-air, L-liedown
movetype= A                      ;Move-type: A-attack, I-idle, H-gethit
physics = S                      ;Physics: S-stand, C-crouch, A-air
juggle  = 3                      ;Number of air juggle points move takes
velset = 0,0                     ;Set velocity (x,y) (Def: no change)
ctrl = 0                         ;Set ctrl (Def: no change)
anim = 200                       ;Change animation (Def: no change)
poweradd = 0                    ;Power to add (Def: 0)
sprpriority = 2                  ;Set p1's sprite layering priority to 2 (in front)

[State 200, 1]
type = HitDef
trigger1 = animelem = 2
trigger2 = animelemtime(3) = 0
attr = S, NA                     
damage = 11                   
animtype = Light                 
guardflag = MA                   
hitflag = MAFD                   
priority = 3, Hit               
pausetime = 8, 8                 
sparkno = S17000
guard.sparkno = 40
sparkxy = -10,-70                     
guard.sparkno = 40             
hitsound = S1, 2                 
guardsound = S1, 0               
ground.type = High               
ground.slidetime = 6             
ground.hittime  = 11             
ground.velocity = -5             
airguard.velocity = -1.9,-.8     
air.type = High                 
air.velocity = -1.4,-3           
air.hittime = 12                 
guard.velocity = -4
guard.hittime = 18
guard.slidetime = 8
getpower = 9
givepower = 9
down.velocity = -3, -3
down.hittime = 15

Алексей

Post the ChangeState for that move from your .cmd. It's definitely got to do with that. Make sure you don't have any triggers like "movehit=1" otherwise you'll be able to chain from that same move. Also, make sure you require "control" by using "ctrl" as trigger to do the move.

-[Все слова это только слова.]-

Joulz

here is the command:

[State -1, Stand Light Punch]
type = ChangeState
value = 200
triggerall = command = "x"
triggerall = command != "holddown"
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 200
trigger2 = time > 6

Алексей

Ah I see. Your problem is with the trigger2s. "Stateno=200 && time>6" means that you will be able to do the move while in your in the light punch state and 6 ticks have passed. If you still want to keep that setup, I suggest increasing the "time > 6" trigger. Maybe just a bit more like "8" or "10" would do it?

-[Все слова это только слова.]-

Joulz

i'm loving you so much right now! thanks, it was indeed the parameter to play around with  --;

Алексей

Hehe, no problem. :) Good luck on your Thanos.

-[Все слова это только слова.]-