Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / car movement

Author
Message
Pricey
23
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 11th Apr 2003 16:35
here is my problem:

i'm trying to make a racing game for a friend and I'm using the 3rd person perspective. i can make it accelorate and move like a car but I cannot make it turn like a car! When i press the right and left buttons the car turns even when it isn't moving. It kinda spins, this IS NOT good!

HELP ME!!!!
Blazer
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: United States
Posted: 11th Apr 2003 16:39
do this:

if leftkey()=1 then (turn code) and for how fast you want to turn it put the VARIABLE : Inc VARIABLE

if rightkey()=1 then (turn code) and for how fast you want to turn it put the VARIABLE : Inc VARIABLE

move object 1,VARIABLE

As I walk through the vally of the shadow of death, I will fear no evil.
- Psalms 23:4
Pricey
23
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 11th Apr 2003 16:43
i'll try that but i'm in the libray right now so I don't have darkbasic here.

Login to post a reply

Server time is: 2026-06-11 21:23:25
Your offset time is: 2026-06-11 21:23:25