Page 1 of 1

rotation help

PostPosted: Mon May 28, 2007 1:52 am
by Zehper48
ok, im about to attempt to make a game like halo, 1 perosn controlls the warthog, which is the jeep like vehicle and 1 person controlls the turret with the mouse. if i have 2 .gif with both 36 frames in each, how can i get the car to move like in the ge rally demo, i looked at it and it was to complicated, i also want the turret to follow the mouse. so if anybody has any question about wat im doing just hep me plz!

PostPosted: Mon May 28, 2007 1:58 am
by Sgt. Sparky
Hey, did you rotate the images?
because you asked me to and you did not e-mail them...
and you signed off... :(

for the turret to fallow the mouse(in animation)
animpos = direction(xscreen, yscreen, xmouse, ymouse) / 10;

for the car, just use on the key down event of left to change the animation direction to forwards and vise versa,
when you press the up arrow directional_velocity += .1;
on the draw actor event,
angle = animpos * 10;
:D