How a car can follow another car.

Just started using Construct 2? Post your questions here

Post » Tue Nov 29, 2016 5:00 pm

I am making a car game.
I want a car to follow and hit another car.
I made my car successfully but I don't know how the other car can follow my car.
Any idea?
B
7
S
1
Posts: 7
Reputation: 389

Post » Tue Nov 29, 2016 6:13 pm

Providing your .capx would make this a lot easier.
Go to "file" -> "Save as single file"
And upload that to somewhere (preferably dropbox) and provide the shared link, please.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Tue Nov 29, 2016 8:41 pm

B
33
S
18
G
28
Posts: 2,464
Reputation: 20,892

Post » Wed Nov 30, 2016 6:30 am

Message: pajuhesh80 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Here is my .capx link.
https://www.dropbox.com/s/ka0gzd9aykvygkx/car%20game.capx?dl=1
Lamborghini turns and turns because of bad simulation. I know why.
What can I do?
And how can I draw drifting line?
B
7
S
1
Posts: 7
Reputation: 389

Post » Wed Nov 30, 2016 5:02 pm

Here's your .capx, with automatic car following and drift lines.
The Follower's AI is quite dumb, but it does its job and doesn't consume much memory.

Download .capx
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Thu Dec 01, 2016 7:01 am

Thank you randomly.It works.
I also found a way.I added "Turret" behavior to the lamborghini and set Police as It's target and lamborghini is pressing accelerate.
I'll try to mix these ways.
B
7
S
1
Posts: 7
Reputation: 389


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests