YesNoOk
avatar

Target separation? Heal one, hurt another? (Read 184 times)

Started by ArgobargSoup, June 16, 2014, 08:34:59 am
Share this topic:
Target separation? Heal one, hurt another?
#1  June 16, 2014, 08:34:59 am
  • avatar
So I'm working on a character for personal use.  It's mostly ta help me learn Mugen coding, in vague hopes of possibly creating my own character some day.

I recently found out how to make one of the character's specials affect an ally, and heal them a bit, while still damaging an enemy if the enemy is hit.

However, I also noticed I could change the attack ta hit multiple targets.

My problem is that if the attack does hit multiple targets, if one of the targets is an ally, the attack has a 50/50 chance of dealing damage ta all the targets, or healing all the targets.

Is there a way ta separate multiple targets and the way they're dealt with in a single state?  A way so that if the attack captures an ally and an enemy at the same time, the ally is healed and the enemy is damaged?  Can I have my cake and eat it too?
Re: Target separation? Heal one, hurt another?
#2  June 17, 2014, 12:02:35 am
  • ***
    • USA
Create a double helper. I have this exact thing in my Samus. When she drops the bombs, it affects both the enemy and the team.
Spawn two helpers, make one the visible one, another that's invisible. Use an animation that uses sprite -1 with a time that's the same as the original animation.
Lock the invisible helper to the visible helper. Should do what you want.
           
Re: Target separation? Heal one, hurt another?
#3  June 17, 2014, 04:30:59 am
  • avatar
I can look inta that, but I think I should've mentioned that it was a grab move and not a projectile.

Although that's a neat trick ta remember...
Re: Target separation? Heal one, hurt another?
#4  June 17, 2014, 06:01:02 am
  • ***
    • USA
Pretty sure grabbing 2 people is a no-no. But if that's your move....