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"

Problem with smooth movement for actors

Currently I'm trying to create an auto-spawn system where it spawns different types of actors (cubes, spheres and cylinders) and let them move along some pre-defined paths. However, instead of moving along the path, they will literally draw a line along the path because there are too many spawned. I'm not sure where I did wrong.

This is what I have in one of my actors to let them move along one of the paths: alt text This is one of the Move Path functions that will decide which point the actor would go to based on how many points on the path it has visited: alt text This is the function that I actually used lerp to change the location of the actor: alt text This is the blueprint that utilizes those actors to spawn them so they could move along the path: alt text

Please let me know where I did wrong and how I can fix it. Thanks!

Product Version: UE 4.17
npc-code.png (136.3 kB)
movepoint-func.png (80.9 kB)
npc-spawn.png (216.9 kB)
more ▼

asked Aug 30 '17 at 04:29 AM in Blueprint Scripting

avatar image

18 1 3 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You are spawning new actors every tick (on your last pic). Put that part in begin play, it should spawn only 3, and then you can see if the rest of what you did works. And then later you should spawn them elsewhere, with a timeline or an event or whatever you want to use to spawn them.

more ▼

answered Aug 30 '17 at 07:39 AM

avatar image

245 10 5 14

avatar image CycloneInAmes Aug 30 '17 at 03:31 PM

Thanks for your advice! I hooked it up with BeginPlay and found and fixed a bug that I didn't expect. Now I can spawn actors based on time with Set Timer by Function Name. Thank you for your help!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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