A* Racing Game Computer AI Any Help, Engines or other demonstrations available?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I searched for days trying to find an example at least of a 2D Style racing game #MADEWITHFUSION to no avail. I did find a ton for the old KLIK and PLAY maker. Just none for MMF2.5DEV.

    If anyone knows of a link to an example, an .mfa or anything. Please post it below.
    Regardless, I will be trying to create my own as I love this type of top down racing.
    I did see the Fusion made RC car one, but honestly it didn't look like it had any physics to it. Looked more like cars on a path that couldn't be moved or wrecked out.

    Thanks for any help!
    Please login to see this attachment.

  • Basically, what I am trying to do is create an engine that does not require markers ( OLD GTA PATHFINDING for Vehicles ). DOT 1 to DOT 2 style.
    I have made it work somewhat using the old method. Basically, DOT 1 = Flag 1 on, then if Flag 1 is on then it is onto DOT 2 = Flag 1 off / Flag 2 on. ETC!
    This allows the user to smash a car off the track and the AI Engine, still tries to aim for DOT ? to get back into the race. Only drawback, is if you run the AI off the track, then it misses the DOT ? and turns around to go back to it.
    I may make something with lines instead that can overlap the outside of the track too.

    Any Ideas, would be great!
    Thanks in Advance...

  • Example of what I am trying now...
    Basically the Green is the Best Line and the Red is just a trigger for the Flag. Not to mention, this allows for the Green Dot to also be used for the player. Like a percentage in the best line type of thing.

    nyway, as the computer AI tries for the green dot and gets run off the road. It will still trigger the flag if it overlaps the red line so it will aim for the next green dot.
    Please login to see this attachment.

  • Here is a link to a tutorial and mfa on top down racing games. It does use dots though but maybe it will have useful some ideas. Interested to see what you come up with. Please login to see this link.

  • Here is a link to a tutorial and mfa on top down racing games. It does use dots though but maybe it will have useful some ideas. Interested to see what you come up with. Please login to see this link.


    Yeah, that is an awesome start for me. Thanks again!

    I noticed the computer player gets stuck a bunch, but again. Excellent start for me.

  • Here's another trick I picked up many moons ago, using the path moment type to create a target for each NPC car.

    This version has some flaws which you can improve on, but shows the basic idea.

    Anyway, the principle is you use the path movement on the target object to trace the track. With events you control the target to only move when overlapping with the NPC car. You make the car move towards the target and you get it following the track.

    There's room for improvement to make the NPC car behave more realistically, but hope that shows a good starting point.

  • Thank you for the examples. After trying them both, I have to say they both are great. The Micro car game is cool, however the way you go about adding check points is a bit backwards. Plus, if you make a huge track and the markers are far apart, the computer vehicles tend to wander back and forth. No biggie though, as the wandering can be effected with some extra code and actually looks like they are trying to block you!
    The NPC Car example is very cool too. However, I feel like multiple computer vehicles means multiple paths to create for each vehicle. Which could be time consuming and pretty much make the computer cars look like they are on rails until collided with.
    As mentioned," Room for improvement!" Still awesome to say the least and actually much more simple then the Micro car example.
    I will mess with both. Maybe a happy medium can be created.

  • No luck!

    Please login to see this attachment.


    That's because the example apparently uses a Fusion 2.5 PLUS Addon exclusive feature (e.g. Child Events)
    If you don't have the Addon, it won't open for you and display this exact same error message

    Game/App developer, artist and a community contributor.
    You can support my work on: Please login to see this link.

    Edited once, last by Linky (August 30, 2022 at 10:35 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!