Skip to main content
gamedev.net
🔒 Locked

Grand Theft Auto 1 Movement

Started by SleepySamurai 3 replies 2.6k views
Original Post
SleepySamurai
SleepySamurai

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!.

Ravyne
Ravyne

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).

throw table_exception("(? ???)? ? ???");
ActiveUnique
ActiveUnique
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.
I've read about the idea guy. It's a serious misnomer. You really want to avoid the lazy team.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.