adc1980's Recent Forum Activity

  • I'm not sure if this is possible.

    I have created a race car AI which has 2 main sprites with multiple instances of each sprite as sensors so the car knows when to turn.

    dataresearch.netii.net/AI

    This is working fine but I now want to create multiple cars to race.

    The problem I have is I want to create another copy of the car and all of the sensor instances without having to create brand new sprites.

    Each Instance has a different instance variable set so the car know how much to turn if that sensor hits a wall.

    I have tried to create a container for this but that creates a new car for every instance of the sensor sprites so I end up with 6 cars driving uncontrollably.

  • I've never used any plugins but found this which might help

    scirra.com/forum/behaviour-boids-flocking_topic61864.html

    The game I was practicing my development with was a Racing game so needed the Computer AI player to follow a path around the track

  • This helped me alot with AI following a path.

    scirra.com/forum/help-creating-ai-path_topic65268.html

    Look at the 8th post by zatyka.

  • Ahh, Never saw the invert option.

    Thanks Pixel

  • This will be a very easy solution but I cant seem to find it for the life of me.

    I want to amend the movement speed of a sprite when overlapping another sprite and return to normal speed when not overlapping.

    e.g running along a path at 300 speed and then going over sand so speed drops to 150 while going over the sand and returning to 300 when through the sand

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have tested the idea of the points on the front corners to reasonable success :) The car definitely "drives" itself around the track.

    Here is the capx of my test AI. Hopefully I can work more on this to make it actually go straight on the straights and "see" the track more.

    dropbox.com/s/xip3d7kc3josbvf/Race%20AI%20Test.capx

  • Thanks for the advice Pixel.

    I have amended the game to use a path of points to turn towards instead of pathfinding which will hopefully free up CPU, I'm now going to look at putting 2 points on the front corners of the car to detect any objects before the car hits it to make it steer away from the object.

    Andy

  • I've made a Micro Machines clone and have a basic AI using Pathfinding which works for 1 race but not the other. I wondered if anyone had any other way of making a race AI as its something I haven't seen much on the forum. I find that pathfinding is too accurate with the line the computer takes and wanted to be able to add hazards on the corner that the computer could hit ie. oil.

    My game is currently hosted at

    dataresearch.netii.net

    The Dining Table level is the one that "works" but as you can see the computer gets "lost" occasionally.

    This is my first attempt at anything using Construct so any help/advice would be appreciated.

adc1980's avatar

adc1980

Member since 15 May, 2013

None one is following adc1980 yet!

Connect with adc1980

Trophy Case

  • 11-Year Club

Progress

11/44
How to earn trophies