some problems

Started by hamza, August 09, 2012, 09:59:44 PM

Previous topic - Next topic

hamza

1)i'm making a air move where my char comes down at high velocity to ground
the move is made by 2 states one where my char coms down and one where my char
hit the opponent the problem is that when i reach ground with the first state my char changes to
land state due to the type/physics how do i make my char change state to the second state without changing to land state?

2)i'm making a move where my chars teleports some times and attacks
and i used posset with enemy,pos x-... to teleport him  in front of enemy
the problem is that when my char is on the right side of the screen the posset don't work correctly

my webpage
www.csmugen.ucoz.com

Cyanide

Use physics = N and gravity or veladd if you don't want to enter a landing state.

pos X is 0 in the middle of the screen. negative is to the left, positive to the right, this will screw things up for you a bit. You either need the difference between your pos X and their pos X. Or you can use p2bodydist X which is... faster.

x = floor(p2bodydist X - 10)
will put you 10 pixels in front of them regardless of anything. Will always pick the closest opponent.


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.