Posted by Crase
in Moving Helpers (Started by Crase March 27, 2008, 12:39:50 amBoard: M.U.G.E.N Development Help
The problem is, that Im not really good with distance checking and stuff like that so I need a way to make the helper move to the right toward p2 when he is to the left of p2 and not in attacking distance... And vice-versa for the other direction (move left when right of p2)
Here is what I had, but of course it's a starter and not 100% what I want:
[mcode]
[Statedef 999]
type = S
physics = S
sprpriority = 0
[State 999, velset]
type = velset
trigger1 = p2dist x >= 45 ;This needs changing in order to get what I want I believe
x = const(velocity.run.fwd.x)
[State 999, ChangeAnim]
type = ChangeAnim
trigger1 = Const(velocity.run.fwd.x)
trigger1 = Anim != 20
value = 20
elem = 1
[/mcode]
~Thanks

