Page 1 of 1

whats wrong with my code?

PostPosted: Thu Sep 20, 2007 2:55 am
by jagheera nex
yo,i want my actor to jump faster than he runs this is what i have:


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? :!:

Re: whats wrong with my code?

PostPosted: Thu Sep 20, 2007 6:23 am
by pixelpoop
if(compass == 1){
xvelocity = directional_velocity + 1;}
if(compass == -1){
xvelocity = directional_velocity - 1;}

Re: whats wrong with my code?

PostPosted: Tue Sep 25, 2007 1:30 am
by jagheera nex
thanks