bbjGames's Forum Posts

  • I tried that but it didn't work, it seemed to break everything like that cars wouldn't stop unless something was behind them and they wouldn't start moving again

  • I've managed to get it to work by using colliders in front of the cars that detect whether or not the car has something in front of it but I feel like there's another simpler way

  • I'm using pathfinding to have cars move along roads and I'm trying to figure out how I can get cars to stop when another car is too close in front of them and start moving again when there's room. Right now I'm trying to use line of sight but I can't get it to work properly

  • No I'm trying to figure out how to make them stop when there's another car in front of them

  • I've got it more or less figured out, they don't drive totally straight but by doing what you suggested with the cell size I managed to get them to stay on the roads

  • Is there any way to just make the pathfinding only move at 90 degree angles? disabling diagonals doesn't actuallly do that

  • The player can place down a piece of road wherever they want and the road automatically connects to the pieces next to it (not diagonally)

  • Hmmm ok well what kind of algorithm could do that? is there anyway to measure that distance?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Well the main issue is having the car decide which way to turn because in the program players place down roads so I can't just have it manually programmed in for a car to turn left or right, I need some way for the car to find the shortest route to it's destination with the roads available

  • So I want a car to drive along a road from point A to point B, how can I get them to move only on the roads and turn the direction they need to at intersections? It seems like path finding won't work for this so I'm not sure what to do

  • Wow can't believe I didn't think of that, thank you!

  • I mean it isn't much I dunno I just thought there'd be some other way but there isn't so it's fine

  • So I see you can set the value at a point on an array but I think it would be really useful if you could add to it as well, just a thought

  • Well if there's is I haven't found it so I guess I'll just keep doing what I've been doing, it's just kind of annoying because with what I'm working on I'll have to do that a lot

  • That's what I've been doing, I mean to ask is there any other way to do it? Like maybe some kind of function or something? I don't think there would be but I thought I'd ask