YesNoOk
avatar

[Solved] Attack to pass through enemy (Read 1625 times)

Started by Nestor, April 29, 2021, 12:17:59 am
Share this topic:
[Solved] Attack to pass through enemy
#1  April 29, 2021, 12:17:59 am
  • ***
    • Mexico
    • https://nestor-2099.github.io/gamedev/
Hey everyone, I'm coding right now a Mystic Smash move, inspired by MvC3; in this version, Shuma-Gorath passes from one side to another, no matter the char's size (Nemesis, Sentinel...).

https://youtu.be/sc-kRjTpeSY (attack appears at 0:13)

I'm disabling PlayerPush so Shuma can pass to the other side, but it seems that it resets with every hit, so he can't pass to the other side at all and just keeps pushing the character. My AIR anim includes both a blue and red box; disabling either one creates the effect I'm looking for, however.

Code:
[State 0, PlayerPush]
type = PlayerPush
trigger1 = 1
value = 0

[State 600, 2]
type = HitDef
trigger1=time%4=0
attr = A, SA
damage    = 28, 0
guardflag = HA
priority = 3
pausetime = 4,4
sparkno = S-1
sparkxy=var(43):=-20,var(44):=-60
hitsound   = S0,3
guardsound = S0,9
guard.sparkno = s7004
ground.type = High
ground.slidetime = 8
ground.hittime  = 12
ground.velocity = 0
air.type = High
air.velocity = 0,ifelse((numhelper(7003) < 1),-7.5,((vel y)-.1))
air.hittime = 12
guard.hittime = 35



Thank you for your help :)
Last Edit: April 29, 2021, 01:12:14 am by Nestor
Re: Help - Attack to pass through enemy
#2  April 29, 2021, 01:06:20 am
  • ****
  • CPU Purple Heart
    • USA
    • https://www.pixiv.net/en/users/8108265
 Have you tried adding ignorehitpause = 1for playerpush seeing as it resets each hit?
Re: Help - Attack to pass through enemy
#3  April 29, 2021, 01:11:46 am
  • ***
    • Mexico
    • https://nestor-2099.github.io/gamedev/
Hahaha, it works! Didn't think about it, thank you so much Nep Heart!