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 / help meeeeee

Author
Message
James Bond
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location:
Posted: 15th Aug 2004 00:10
IN SOME CAR RACING GAMES WE HAVE TO RUN OUR CAR ON A PARTICULAR ROAD .... AND WHENEVER WE TRY TO GET OFF THAT ROAD CAR COLLISION IS DETECTED ...... HOW DO WE DO THAT?
The Dark Padawan
21
Years of Service
User Offline
Joined: 5th Aug 2003
Location: USA!
Posted: 15th Aug 2004 00:26
There are many ways,
such as tile collision, invisble walls,
and many more

I saw a Million dollars I ran and tried to grab it then..................... I woke up ughh!
James Bond
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location:
Posted: 15th Aug 2004 00:42
can you explain this tile collision ???
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 15th Aug 2004 03:31
You could set up a "track" as a grid. Each tile on the grid could be track or non-track. Check on what type of tile the car is on. If it is on a non-track grid, then reposition it so it gets pushed back. However, that is not a very good method at all. Sliding collision would be much much better. You could create fence objects and position them on the track. Just give them collision boxes, and give the car a collision box. Dark Basic can handle sliding collision quite quickly, and it will make the physics look pretty good. There are sliding collision tutorials and examples available. A sliding collision example comes with Dark Basic.

Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href][/href]

Login to post a reply

Server time is: 2025-05-25 13:23:10
Your offset time is: 2025-05-25 13:23:10