YesNoOk
avatar

character don't dealing damage after teleport (Read 411 times)

Started by ziaker, April 02, 2019, 03:55:48 am
Share this topic:
character don't dealing damage after teleport
#1  April 02, 2019, 03:55:48 am
  • *
    • Brazil



Code:
[statedef 220]
type = S
Movetype = I
physics = S
Anim = 220
poweradd = -15
ctrl = 1

[state 220, 2]
type = posadd
trigger1 = animelem = 2
x = p2bodydist X+35

;-------------------------------------------------------------------------------
[state 220 ,5]
type = changestate
trigger1 = animtime = 3
value = 0
ctrl = 1

[State 220, 2]
type = HitDef
trigger1 = !movecontact
trigger1 = AnimElem = 5
attr = S, NA ;Attribute: Standing, Normal Attack
damage = 33, 0 ;Damage that move inflicts, guard damage
animtype = heavy ;Animation type: Light, Medium, Heavy, Back (def: Light)
guardflag = MA ;Flags on how move is to be guarded against
hitflag = MAF ;Flags of conditions that move can hit
priority = 3, Hit ;Attack priority: 0 (least) to 7 (most), 4 default
;Hit/Miss/Dodge type (Def: Hit)
pausetime = 8, 8 ;Time attacker pauses, time opponent shakes
sparkno = 0 ;Spark anim no (Def: set above)
sparkxy = -10, -76 ;X-offset for the "hit spark" rel. to p2,
;Y-offset for the spark rel. to p1
hitsound = 5, 0 ;Sound to play on hit
guardsound = 6, 0 ;Sound to play on guard
ground.type = High ;Type: High, Low, Trip (def: Normal)
ground.slidetime = 5 ;Time that the opponent slides back
ground.hittime  = 12 ;Time opponent is in hit state
ground.velocity = -4 ;Velocity at which opponent is pushed
airguard.velocity = -1.9,-.8 ;Guard velocity in air (def: (air.xvel*1.5, air.yvel/2))
air.type = High ;Type: High, Low, Trip (def: same as ground.type)
air.velocity = -1.4,-3 ;X-velocity at which opponent is pushed,
;Y-velocity at which opponent is pushed
air.hittime = 12 ;Time before opponent regains control in air

[State 220, END]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1


My character is bankai ichigo and i want to do a heavy attack after teleport. But the character don't deal damage
why?
Re: character don't dealing damage after teleport
#2  April 02, 2019, 07:12:50 am
  • *****
  • Shame on you!
    • USA
Movetype = I

Read the entire HitDef in Mugen Class. Trust me, once I did I understood so much more about mugen. Read each part of it until you get what it does. You'll learn so many options.
But the hitdef can't be active until the move is an Attack. You have it set to Idle.
vVv Ryuko718 Updated 10/31/22 vVv