News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Using Wrong animation

Started by MUGENforever, February 10, 2008, 03:27:01 AM

Previous topic - Next topic

MUGENforever

My character is using the medium punch animation for his hard punch for some reason.Below is the CNS, CMD, and AIR for the medium and hard punches.

CNS____________

;-------------------------------
;Standing Medium Punch
[StateDef 201]
type = S
movetype= A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
anim = 201
poweradd = 25
sprpriority = 2

[State 201, 1]
type = HitDef
trigger1 = AnimElem = 2
attr = S, NA
damage = 40
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 10, 10
sparkno = 0
sparkxy = -10, -76
hitsound = 5, 0
guardsound = 6, 0
ground.type = High
ground.slidetime = 3
ground.hittime  = 12
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12

[State 201, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

;----------------------------------
;Standing Hard Punch
[StateDef 202]
type = S
movetype= A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
anim = 201
poweradd = 20
sprpriority = 2

[State 202, 1]
type = HitDef
trigger1 = AnimElem = 4
attr = S, NA
damage = 30
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 10, 10
sparkno = 0
sparkxy = -10, -76
hitsound = 5, 0
guardsound = 6, 0
ground.type = High
ground.slidetime = 2
ground.hittime  = 12
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12

[State 202, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1




CMD___________________


[command]
name = "Standing Hard Punch"
command = z
time = 15

[Defaults]
[command]
name = "Standing Medium Punch"
command = y
time = 15

[Statedef -1]

;Standing Hard Punch
[State -1, Standing Hard Punch]
type = ChangeState
value = 202
triggerall = command = "z"
trigger1 = (statetype = s) && ctrl

;Standing Medium Punch
[State -1, Standing Medium Punch]
type = ChangeState
value = 201
triggerall = command = "y"
trigger1 = (statetype = s) && ctrl




AIR____________________


;Standing Medium Punch
[Begin Action 201]
Clsn2: 1
  Clsn2[0] = -44, -109, 22, -44
615,0, 0,0, 3
Clsn1: 1
  Clsn1[0] = 4, -94, 61, -62
Clsn2: 1
  Clsn2[0] = -31, -107, 17, -46
615,1, 0,0, 10


;Standing Hard Punch
[Begin Action 202]
Clsn2: 1
  Clsn2[0] = -25, -109, 22, -38
740,1, 0,0, 3
Clsn1: 1
  Clsn1[0] = 17, -95, 47, -52
Clsn2: 1
  Clsn2[0] = -30, -105, 18, -42
740,2, 0,0, 5
Clsn2: 1
  Clsn2[0] = -24, -108, 21, -43
740,1, 0,0, 2
Clsn1: 1
  Clsn1[0] = 2, -89, 51, -58
Clsn2: 1
  Clsn2[0] = -30, -107, 14, -45
740,3, 0,0, 5


If you need to see more, let me know, thans for your help.

Iori Fue

Quote from: MUGENforever on February 10, 2008, 03:27:01 AM
;Standing Hard Punch
[StateDef 202]
type = S
movetype= A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
anim = 201
poweradd = 20
sprpriority = 2

[State 202, 1]
type = HitDef
trigger1 = AnimElem = 4
attr = S, NA
damage = 30
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 10, 10
sparkno = 0
sparkxy = -10, -76
hitsound = 5, 0
guardsound = 6, 0
ground.type = High
ground.slidetime = 2
ground.hittime  = 12
ground.velocity = -4
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = -1.4,-3
air.hittime = 12

[State 202, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

change the bolded area into the anim of you hard punch..  ;D  :sugoi: :sugoi: :ninja:

Cyanide

You didn't think to check the anim line? Would have expected anyone to know what that bit does by move 2.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.