Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 racing game
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
southpaw




PostPosted: Wed May 17, 2006 9:19 am   Post subject: racing game

I am planning on doing a top view two player racing game. I need some ideas on how to stop the cars from driving through the walls.
Sponsor
Sponsor
Sponsor
sponsor
jamonathin




PostPosted: Wed May 17, 2006 9:39 am   Post subject: (No subject)

That all depends on how your game is set up. Are you doing a tile based game? is everything being drawn in Turing? For best results use the search option at the top and search for collision in Tutorials or refer to the Turing Walkthrough.
upthescale




PostPosted: Wed May 17, 2006 2:47 pm   Post subject: (No subject)

Welcoem SouthPaw...You can use a hit detection in this case, yu can use math, or whatdotcolorm, if you dnn't know what they are, look in hte tut.s section, if still not thne pm me and ill b glad to help
Bored




PostPosted: Wed May 17, 2006 3:43 pm   Post subject: (No subject)

Well depends on how advanced of collision you're looking for. I've done a top down racing game in turing for my Final project last semester and I encourperated one of my most advanced collision techniques which is what I call line-shell collision. Basically I had a set of points for each object that made lines. I looked for the point of intercept between lines and if it lied between the bounds of each line then they had collided. Now that's a relatively more advanced technique and you may be looking for somethin simpler. One method if your vehicles are relatively round you could see the distance to the wall and if that's greater then the radius of the vehicle then it's hit the wall. A third method that is relatively simple is to use whatdotcolour to see if the vehicle has hit the grass or sand and then either slow it down or move back onto the track. If none of these apeal to you then you may want to just think it out and find your own. Use your creativety, logic, and math skills in a fusion of thought till you can think of something.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: