YesNoOk
avatar

Need help with recovery from a attack (Read 381 times)

Started by Calebdarth, January 29, 2019, 01:57:33 am
Share this topic:
Need help with recovery from a attack
#1  January 29, 2019, 01:57:33 am
  • avatar
I have an attack that when it hits p2 it launches then up, i have it set so when p2 is hit p2 vel is set to 0, -10, i want p2 to be able to jump out of it while in air so that p1 can not spam the attack and always hit.
Last Edit: January 31, 2019, 02:08:28 am by Calebdarth
Re: Need help with recovery from a attack
#2  January 30, 2019, 05:23:44 pm
  • ***
    • Brazil
    • deathscythe.co.vu
In your hitdef:
Code:
fall.recover = 1
Re: Need help with recovery from a attack
#3  January 31, 2019, 01:51:48 am
  • avatar
Thank you so much
Re: Need help with recovery from a attack
#4  January 31, 2019, 02:08:23 am
  • avatar
It still isn't working, do i need to do something else to let p2 recover?
Re: Need help with recovery from a attack
#5  January 31, 2019, 01:36:57 pm
  • ***
    • Brazil
    • deathscythe.co.vu
Hmm, strange, it should work... are you testing it in a character that CAN recover? Like KFM for example? Also can you post the code for your move?
Re: Need help with recovery from a attack
#6  January 31, 2019, 01:43:15 pm
  • avatar
How to make a character able to recover?
im new to mugenguild so im not sure how to make it say code for my code like yours does




; Standing Light Kick
; CNS difficulty: easy
[Statedef 230]
type    = S
movetype= A
physics = S
juggle  = 0
poweradd= 22
ctrl = 0
velset = 0,0
anim = 230

[State 230, 1]
type = HitDef
trigger1 = Time = 0
attr = A, NA         ;Attribute: Standing, Normal Attack
damage = 0, 0         ;Damage that move inflicts, guard damage
animtype = Light         ;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 = 0, 0         ;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  = 0      ;Time opponent is in hit state
ground.velocity = 0,-10      ;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 = 0      ;X-velocity at which opponent is pushed,
               ;Y-velocity at which opponent is pushed
air.hittime = 0         ;Time before opponent regains control in air
fall.recover = 1

[State 230, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
Re: Need help with recovery from a attack
#7  January 31, 2019, 02:03:04 pm
  • ***
    • Brazil
    • deathscythe.co.vu
Nothing seems to be wrong with your code, except you don't have a "fall = 1" in it.

I made a quick test here, I edited KFM's light punch, changed ground.veolicty to 1, -10, and added fall = 1. Even without adding fall.recovery = 1, the other KFM is able to recover in the air.

Try it, add fall = 1, and test it against KFM just to be sure it will work.
Re: Need help with recovery from a attack
#8  January 31, 2019, 02:16:15 pm
  • avatar
how do i make the recovery work with my character? do i need to edit the common1