rotation help

Non-platform specific questions.

rotation help

Postby Zehper48 » Mon May 28, 2007 1:52 am

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!
User avatar
Zehper48
 
Posts: 241
Joined: Sun Jun 11, 2006 1:34 am
Location: Advanced Noob
Score: 4 Give a positive score

Postby Sgt. Sparky » Mon May 28, 2007 1:58 am

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
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest