How do I Drive along path?

Get help using Construct 2

Post » Sat Nov 01, 2014 8:04 pm

I've a car behaviour and a pathfind behaviour. But for obvious reasons, it rotates while stopped (pathfinder) and that's not cool for a car to do (not realistic I should say), maybe for a tank.

Is there a way or a plugin that it moves like a car and still pathfind positions?
B
33
S
5
G
1
Posts: 163
Reputation: 2,693

Post » Sat Nov 01, 2014 11:20 pm

Are you saying you want the car to face the proper way while following a path?

If so you could have another invisible object follow the path ahead of the car and make the car's angle to the object be the direction that the car faces.

Probably not the best method but I'm pretty sure that might work.
B
16
S
4
G
4
Posts: 59
Reputation: 3,091

Post » Sun Nov 02, 2014 1:13 am

It's a good idea, but I think it wont work in 2 cases. In case the car must go rear and around corners. The car will probably keep facing a wall.

But I will try to develop your idea more. Thanks
B
33
S
5
G
1
Posts: 163
Reputation: 2,693

Post » Sun Nov 02, 2014 3:13 am

I made a spaceship game a while ago and I had a similar method which worked. I'll try and find the capx if I still have it.
B
16
S
4
G
4
Posts: 59
Reputation: 3,091

Post » Sun Nov 02, 2014 5:28 am

how about using waypoints?
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
64
S
14
G
2
Posts: 291
Reputation: 6,666

Post » Tue Nov 04, 2014 2:59 pm

Problem with this method and waypoints is that if you "are" a car and you are next to a corner, possibly you wont be able to rotate your car. You will have to manouver it.

@Aleyaba Thanks
B
33
S
5
G
1
Posts: 163
Reputation: 2,693


Return to How do I....?

Who is online

Users browsing this forum: boybacteria, dop2000, Google [Bot], Microbex, richcoz81 and 35 guests