Directional Velocity Problems
Posted: Mon Jul 11, 2011 11:42 pm
I'm trying to use directional velocity to work my movement system when the player Key Up's a directional key. But when I Key Up, it makes the character move the other way instead of stopping. Any ideas what I'm doing wrong? Also, if anyone has an easier/better way to make a movement system, please mention it.
PS. I'm starting the movement with xvelocity=12
- Code: Select all
if (Boldar.directional_velocity=-12)
{
xvelocity=0;
}
PS. I'm starting the movement with xvelocity=12