control
you can handle it like this:
Code: Select all
if (event.KeyInput.Key == KEY_KEY_W)
{
if (event.KeyInput.PressedDown)
{
ship_velocity.Y = 4;
} else
{
ship_velocity.Y = 0;
//if (ship_velocity.Y > -2)
}
}
-
- Posts: 8
- Joined: Mon Nov 10, 2003 2:34 pm
Hi all
The code below posted by 'T', excellant.
One question though, does anyone know how to / have any code to rotate the camera up and down (ie X & Z rotations), the center of the rotation being the target (ie shipnode from the below code fragment).
I have been trying for a few days and can seem to figure it out.
The code below posted by 'T', excellant.
One question though, does anyone know how to / have any code to rotate the camera up and down (ie X & Z rotations), the center of the rotation being the target (ie shipnode from the below code fragment).
I have been trying for a few days and can seem to figure it out.