Racing Game Help

TJMNUTTJMNUT Member Posts: 236
edited November -1 in Working with GS (Mac)
I want to make a bird's eye-view racing game, how can I make the other car actors randomly follow the course. I want the cars to go differently every game, please help.

Comments

  • ozboybrianozboybrian PRO Posts: 2,102
    GsLover said:
    Gamesalad has a racing game already in the demo sections

    That's true, But I think he means AI. I would like to know that for learning purpose also.
    you'd have to have invisible actors along the track and have it set up so they each have an attribute that makes it chase it and that when they hit the attribute changes to zero and the next invisble actor becomes a target and the finish line resets the process
  • dmilinovichiiidmilinovichiii Member Posts: 620
    Maybe create multiple invisible actors in the race track and use move to and booleans attributes to make the computers move towards them. If you collide they still follow the same path and it wont be exactly the same race.
  • jobonoobdudejobonoobdude Member Posts: 152
    lol ozboybrian, you put the whole thing in quotes! :)

    But as far as the AI car thing, man TjMNUT, if you think of a way to do it BESIDES invisible actors, we would all be greatly in your debt.

    cheers :)
    -Jobo
  • dmilinovichiiidmilinovichiii Member Posts: 620
    jobonoobdude said:
    lol ozboybrian, you put the whole thing in quotes! :)

    But as far as the AI car thing, man TjMNUT, if you think of a way to do it BESIDES invisible actors, we would all be greatly in your debt.

    cheers :)
    -Jobo

    What's bad about invisible actors? Does it affect the processor a lot?
  • jobonoobdudejobonoobdude Member Posts: 152
    @ Mr. Rinoy For me it did, but that was probably because I was doing a robot-gone-rouge-fend-em-off-till-you-die type of game. I had to have them all around the walls so the robots would know where to go. I had to do racing in there too actually, and it worked ok.
  • micksolomicksolo Member Posts: 264
    Maybe you could set waypoints, have the car move to that way point, but also use a "random" in there as well so it doesn't go to exactly the same place each time, but close enough to the waypoint so they will get around the track.

    Would be interested to see how this works out, keep us posted!
Sign In or Register to comment.