SFML community forums

Help => Graphics => Topic started by: 5gum on May 12, 2014, 02:37:26 pm

Title: Paths and automatically driving cars (GTA style)
Post by: 5gum on May 12, 2014, 02:37:26 pm
Hey guys,

I don't know, how I should phrase this but I try it  ;D
I develop a copy of GTA I, so with 2D graphics. Well, now I want to create the feature that there are automatically spawned cars on the map and they drive on the street. I've already a 2D map with some streets and the vehicle sprites.

What's the best way to do this? Unfortunately, there isn't anything such as paths in SFML, isn't it?

Thanks for answers,
5gum
Title: Re: Paths and automatically driving cars (GTA style)
Post by: fallahn on May 12, 2014, 02:54:19 pm
I did some basic path finding for my racing game, which you can read about here (http://trederia.blogspot.co.uk/2014/02/space-racers-breakdown-part-2-node.html). Not exactly what you want, but maybe it'll help as a basis?