Sign in to follow this  
SleepySamurai

Grand Theft Auto 1 Movement

Recommended Posts

SleepySamurai    125

Remember how you would move in the first GTA? Press up to move forward from the characters perspective, and left/right to turn.

Anybody know if there's a technical name for that?

Thanks!.

Edited by SleepySamurai

Share this post


Link to post
Share on other sites
Ravyne    14300

It's basically a first-person control scheme limited to two dimensions and viewed from overhead. To implement, you need a directional vector (either stored as a two-element vector, or as degrees/radians), and a velocity. Multiply those, divide by your time step each frame, and add to your old position to get the new position.

 

Other examples of games that use that type of control are Offroad and RC Pro-Am (both racing titles), and the early Resident Evil games (1-Nemesis, I think, as well as most contemporary Survival Horror games).

Share this post


Link to post
Share on other sites
ActiveUnique    867
I'd call it steering, but you'll be steering a human in GTA; Asteroids is another very common example. I'd need to differentiate relative and absolute direction while programming movement controls.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this