YesNoOk
avatar

Helper is able to be hit (Read 1277 times)

Started by Mastergeorgeify, October 04, 2019, 05:08:30 pm
Share this topic:
Helper is able to be hit
New #1  October 04, 2019, 05:08:30 pm
  • A New Guy
  • Still learning M.U.G.E.N!
    • USA
This Helper is created and binded to the parent after the parent complete specific moves. That part works. However, the issue is that this Helper is somehow able to be hit and that leads to it becoming a clone of the parent.

Thing is: I noticed that this happens when the helper is targeted by something.
Initially the helper had no Blue collision. But out of wishful thinking I added Blue collision and there was still the same result.

As an experiment I tried various things: HitOverride, DestroySelf if Move or Statetype changes.

This is a trend that happens with all of my helpers not just this one. Knowing me, it's probably a really obvious mistake. Nonetheless, this is driving me crazy.


[Statedef 2998]
type    = S
movetype= A
physics = S
juggle  = 0
velset = 0,0
anim = 4
ctrl = 0
sprpriority = 3

[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA,AP,AT

[State 2998, AssertSpecial]
type = AssertSpecial
trigger1 = Stateno = 2998
flag = noshadow
flag2 = unguardable

[State 2998, HitDef]
type = HitDef
trigger1 = AnimElem = 9
attr = S,SA     
hitflag = MAF       
animtype = Light         
air.animtype = light
priority = 4,Hit
damage = 3,0
pausetime = 0 ,0
sparkxy = 0,0
hitsound = S1,0
guardsound = S2,0
ground.type = High     
ground.slidetime = 0
ground.hittime = 10
air.hittime = 30
guard.dist = 45
ground.velocity = 0,0
air.velocity = 0,0
p1getp2facing = 0
p2facing = 0
fall = 0
fall.yvelocity = -4.5
fall.recover = 1
fall.recovertime = 4
fall.damage = 0
down.bounce = 0
id = 0
chainID = -1
nochainID = -1
hitonce = 1
kill = 1
guard.kill = 1
fall.kill = 1
numhits = 1

[State 2998, BindToParent]
type = BindToParent
trigger1 = Stateno = 2998
pos = 0,-40

[State 2998, DestroySelf]
type = DestroySelf
trigger1 = Parent,Var(3) != 0
trigger2 = Time = 500
trigger3 = MoveType != A
trigger4 = StateType != S

Thanks in advance.
Last Edit: November 05, 2019, 05:03:23 am by Mastergeorgeify
Re: Helper is able to be hit
#2  October 04, 2019, 08:44:35 pm
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net

  • Online
[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA,AP,AT

That means the helper is not affected by projectiles and throws. But he can still be hit by attacks
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: Helper is able to be hit
#3  October 04, 2019, 08:58:04 pm
  • A New Guy
  • Still learning M.U.G.E.N!
    • USA
[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA,AP,AT

That means the helper is not affected by projectiles and throws. But he can still be hit by attacks

I'm not sure I understand. I thought the value there made this helper is invincible. What else do I need?

Re: Helper is able to be hit
#4  October 04, 2019, 09:22:05 pm
  • ****
    • crepa.neocities.org
Change the value to SCA only.
Re: Helper is able to be hit
#5  October 04, 2019, 09:30:05 pm
  • A New Guy
  • Still learning M.U.G.E.N!
    • USA
Re: Helper is able to be hit
#6  October 04, 2019, 09:42:32 pm
  • ***
  • Magna Power
  • Its Hotdog time. Hot.... Dog...time...
    • neofiresonicmugen.webs.com
this website is stupid
Re: Helper is able to be hit
#7  October 04, 2019, 09:52:03 pm
  • A New Guy
  • Still learning M.U.G.E.N!
    • USA
Re: Helper is able to be hit
#8  October 04, 2019, 09:55:43 pm
  • avatar
  • ***
  • Original characters are my forte.
    • http://network.mugenguild.com/bane84/
Re: Helper is able to be hit
#9  October 04, 2019, 09:58:04 pm
  • A New Guy
  • Still learning M.U.G.E.N!
    • USA
The helper sits on top of p1 and does damage when p2 touches it.
Re: Helper is able to be hit
#10  October 04, 2019, 10:06:45 pm
  • ****
  • Vs Style Debuts Tag Project CEO
  • The Dark Wolf Returns
    • USA
Put ignorehitpause in the NotHitby, because the NotHitby sctrl will work until it gets into a pause frame when it hits someone or gets hit. ignorehitpause will prevent that.
Beware the Dark Wolf once more!