x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Making character follow road path(s)?

In my game, I have a basic map with roads and places one can stop by. What I've set up is a camera looking down at the map (simply a material on a plane) with actors as the aforementioned 'places'. It's easy to have a character move to each place when I click on it, but the problem is, I want the character to follow along on the roads. See this illustration:

alt text

I've used target points on multiple occasions, and I've yet to see about using a spline---however I'm not sure that a spline is going to the trick, here. I want the AI character to move across the red roads as shown above and stop when they get to the point that I click on (these points being the letters).

What is the best way I can go about doing this? If more explanation is needed, just see the "Puzzle Quest: Challenge of the Warlords" map or the "Final Fantasy Tactics Advanced" map, because they're the same systems, really.

Product Version: UE 4.16
Tags:
ue4mapexample.png (33.3 kB)
more ▼

asked Jul 14 '17 at 07:33 PM in Blueprint Scripting

avatar image

Maladrum
12 1 3 7

avatar image Maladrum Jul 16 '17 at 07:44 PM

Bumping this, as I'm noticing that the hair I'm pulling out of my head gets grayer and grayer as I attempt to figure this out.

While I'm at it, I suppose I'll also be specific on this bit, too; I'm going to want the player to find the shortest path needed to get to the clicked destination. So for example, if I were on point E and clicked on point C, it wouldn't go E-D-B-A-C, but rather E-D-B-C.

avatar image Maladrum Jul 22 '17 at 08:05 PM

After a week, here's one last hopeless bump. If I ever figure this out, I'll post my solution to the hub, here.

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question