YesNoOk
avatar

How to draw the opponents into a beam attack (Read 305 times)

Started by Fumo, May 28, 2010, 06:07:41 pm
Share this topic:
How to draw the opponents into a beam attack
#1  May 28, 2010, 06:07:41 pm
  • **
  • The Oboro

Short Wall of Text to jump over:

How do you make it so that when the beam attack is launched, the opponent is drawn into the beam? For example, if the opponent jumps in the air and the beam hits their foot, they would slowly move toward the beam so that their whole body is in the beams path. This goes the same for if the beam hits the opponents head, they should get lifted into the beam.

It would make Hi-Res Goku's Ka-me-ha-me-ha energy beam very effective so I want to add this effect to him.

How would I go about doing this?

W.I.P ...


Captain Falcon: 68%
(on hold)
Re: How to draw the opponents into a beam attack
#2  May 28, 2010, 11:43:56 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
there is generally a gap between hits. Is this beam a helper?

Use ifelse to apply a different Y velocity dependant on where p2 is. Something like

ifelse(p2dist Y< -1, 2,ifelse(p2dist Y> 1,-2,0))


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.