How do I a intelligent car ?

Get help using Construct 2

Post » Sun Apr 30, 2017 5:09 pm

Hello,
I will make a car game, when you drive a car in a circuit with a enemy car which is directed by itself, but I don't say how make. Can you help me ?

lucstanislash
B
3
Posts: 2
Reputation: 181

Post » Sun Apr 30, 2017 7:03 pm

You could try adding the pathfinding behaviour to the enemy car and set up waypoints for it around the the circuit.
B
21
S
9
G
4
Posts: 473
Reputation: 4,285

Post » Mon May 01, 2017 1:00 am

Driving AI is often a difficult thing to approach, because there's a lot of ways it can be done - and they're often used based on the applicability to the style of racing game you're trying to make.

You can use things like bullet behaviour and set up custom "intersections" that gives the AI some orders to adjust angle, choose a direction, etc. You can use a path behaviour of exact driving, coupled with custom movement, phsyics, or almost anything else to give the AI a chance to "be less perfect". As mekonbekon has said you can try pathfinding, though the type of movement you would get wouldn't seem much like a car that's driving.

Are you doing a birdseye/overhead view racing game or maybe isometric? Are you planning on having conventional cars, or are you doing some kind of hovering racer? A little more information about your idea would maybe help find a good course of action to investigate.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
84
S
34
G
40
Posts: 3,032
Reputation: 30,499

Post » Mon May 01, 2017 4:38 pm

Message: lucstanislash can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Thank you very much for your advice :D but using the pathfinding, it does not make a good rendering, I would like the enemy car to behave as if there was someone behind but there is nobody, it is The computer. I also would like later that the cars this type between them and with the car of the player, because it is a game of the kind nascar. I have just started in the game creation with Construct 2 and I do not know too much about it but if someone would like a lot more info on my current game I could try to get it through MP. Here is the link below for pictures of my game. :)
https://goo.gl/photos/s6aUAXGAxcc2qU4d8
For information, the blue and white car is the ennemi car and the brown and white car is diriged by the player.

lucstanislash
B
3
Posts: 2
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests