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.

Dark GDK / race tracks for code

Author
Message
hawn
17
Years of Service
User Offline
Joined: 19th Dec 2006
Location:
Posted: 16th Feb 2010 21:51
ill ytrade race tracks for code and the race tracks look very good....... i want simple racing code....

jameshawn

Attachments

Login to view attachments
bloodmage2
15
Years of Service
User Offline
Joined: 14th Jun 2009
Location:
Posted: 23rd Feb 2010 17:58
i won't give you straight code, but ill give you some sugestions.


use w a s d control, so the a key will decrease the angle of your car model, s increases it. have a variable for speed, and another for max speed. when w is hit, increase speed for every loop, but not above the max. use dbMoveCamera with your speed, and dbAngleCamera and dbAngleObject to turn it. then use dbPositionObject to move the object to the camera position. have s decrease the speed.

-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.

Login to post a reply

Server time is: 2024-11-19 15:32:17
Your offset time is: 2024-11-19 15:32:17