Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Paths and automatically driving cars (GTA style)  (Read 2873 times)

0 Members and 1 Guest are viewing this topic.

5gum

  • Newbie
  • *
  • Posts: 27
    • View Profile
Paths and automatically driving cars (GTA style)
« 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

fallahn

  • Hero Member
  • *****
  • Posts: 507
  • Buns.
    • View Profile
    • Trederia
Re: Paths and automatically driving cars (GTA style)
« Reply #1 on: May 12, 2014, 02:54:19 pm »
I did some basic path finding for my racing game, which you can read about here. Not exactly what you want, but maybe it'll help as a basis?