whats wrong with my code?
Posted: Thu Sep 20, 2007 2:55 am
yo,i want my actor to jump faster than he runs this is what i have:
the compass is a varible and when i go left the compass is positive, when i go right it is negitive. but when i jump left he goes in a cercile motion but when i jump right its just what i wanted, how do i make it so he jumps far left when i go left and he jumps far right when i go right?
- Code: Select all
if(compass == 1);
xvelocity = directional_velocity + 1;
if(compass == -1);
xvelocity = directional_velocity - 1;
the compass is a varible and when i go left the compass is positive, when i go right it is negitive. but when i jump left he goes in a cercile motion but when i jump right its just what i wanted, how do i make it so he jumps far left when i go left and he jumps far right when i go right?