bbjGames's Recent Forum Activity

  • 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?

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • I've been adding all the values for each sprite and dividing it by the total number of sprites, is there anyway to do that? (Ex: for each sprite add sprite.size to Globalvariable then divide by the number of sprites is what I've been doing but is there some sort of function I can use instead?)

  • Yeah although now I'm having a different issue. There are trees and bushes. Only bigger animals should be able to eat the trees so I have

    (Every 1 second, for each tree, animal is overlapping tree, animal.height is greater than 50, animal is not full)

    [Animal add 25 to food]

    This works but if an animal large enough to eat a tree is eating one then if a small animal is overlapping the tree it also starts to eat it. I know sometimes the order of conditions can affect it, do I need to change that? Or am I just missing something

  • Ok when I put for each animal before if it's overlapping the plant it worked. Thank you

bbjGames's avatar

bbjGames

Member since 16 May, 2015

Twitter
bbjGames has 1 followers

Trophy Case

  • 9-Year Club
  • Popular Game One of your games has over 1,000 players
  • Email Verified

Progress

11/44
How to earn trophies