Racing Game AI

AfterBurnettAfterBurnett Member Posts: 3,474
edited November -1 in Working with GS (Mac)
Hi guys (and gals),

I have a couple of ideas for a top-down racer that I want to produce in the next couple of months once I've cleared another project.

I am interested in enemy cars... there seem to be a lot of GS demos and games that are "time trial" but don't feature enemy cars... is it possible? I have a few ideas on how I think I'd do it but they all seem to have weak points... like if I set a path for a car to follow, that's all well and good... what happens though, if it ends up facing the wrong way or against a fence?

Has anyone done a decent racer with AI players?

The other option is a straight rally sim... quite keen on that too.

Cheers :)

Comments

  • AfterBurnettAfterBurnett Member Posts: 3,474
    No one?
  • quantumsheepquantumsheep Member Posts: 8,188
    ME!

    You can use Magnitude.

    If you use it on the AI cars to see how close you are to them, you can make them move towards your X position, thus, essentially, trying to block you.

    And other tricks like that of course :D

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • AfterBurnettAfterBurnett Member Posts: 3,474
    Oh... cool.. I'll have a play. Thanks!
  • JGary321JGary321 Member Posts: 1,246
    Also you could try laying down and invisible path using actors that the racer would follow. Something that told it when magnitude = < 50 turn right...etc... Things like that. Those are just some real basic ideas, but you should get the idea.
Sign In or Register to comment.