Road Waypoint System

Get help using Construct 2

Post » Tue Oct 16, 2012 7:40 pm

Hi there, I'm trying to make a way point system so that players can only travel on a specified road in order to reach the destination. Left click selects the destination, and the player is supposed to take the shortest road there.

To some extent I was able to get it to work except that when it reaches places near the end of roads it frequently gets stuck and it has trouble turning around.

Anyone can figure out the problem?

File Download: https://dl.dropbox.com/s/ca5h6hfqwsws553/Waypoints.capx?dl=1Len2012-10-16 19:41:31
B
7
S
1
G
1
Posts: 37
Reputation: 1,128

Post » Tue Oct 16, 2012 9:31 pm

OK, I made an example...

Is this what you're after?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Oct 17, 2012 6:50 am

Sorry that wasn't what I was looking for.

Imagine a network of roads. Click on any location, and the player will take the shortest way (through the road network) to the destination.

The left clicking on the roads in the example I gave should give you a better picture.
B
7
S
1
G
1
Posts: 37
Reputation: 1,128


Return to How do I....?

Who is online

Users browsing this forum: PixelatedTrip, Yahoo [Bot] and 0 guests