YesNoOk
avatar

Vel X to Follow P2 (Read 279 times)

Started by QuickFist, October 06, 2013, 02:27:37 am
Share this topic:
Vel X to Follow P2
#1  October 06, 2013, 02:27:37 am
  • *****
    • Venezuela
    • Blacksight22@Yahoo.Com.Ve
    • Skype - sebastian.osio
How do I put a VelSet to follow P2 horizontally?
My case: I want my char to jump right at P2, If he's close to jump on top of him, etc...
Thanks Watta for the sig and avi.
Re: Vel X to Follow P2
#2  October 06, 2013, 08:01:18 pm
  • *****
  • Video Game Veteran
    • USA
    • gcnmario.free.fr
Like an M.Bison Head Stomp?

Instead of checking for a Vel Y, you could check for P2's Y Pos to tell how far, or how fast to need to make the jump go. :)

Here's example what I came up with.
Code:
[State 1200, VelSet]
type = VelSet
trigger1 = Tiem <= 0
y = (-10+(EnemyNear, Pos Y/20))

Though you could probably replace vel Y with Pos Y if needed. Though the math involved here is to make the jump less of a moon jump to more closer to P2 when possible.

"You must defeat my flaming
dragon punch to stand a chance."
Re: Vel X to Follow P2
#3  October 06, 2013, 09:00:48 pm
  • *****
    • Venezuela
    • Blacksight22@Yahoo.Com.Ve
    • Skype - sebastian.osio
Thanks It worked!
Thanks Watta for the sig and avi.