Forum rules - please read before posting.

'Move randomly' help

edited July 24 in Technical Q&A

Hi everyone,
I have an actionlist where the move randomly action moves the character... randomly, when it finishes they stand still for 3 seconds then repeat it to walk somewhere else etc, on a loop.

However I also have a 'collide' actionlist that runs if the player collides with the character when walking - the character will stop moving for a second, and then continue walking.

The problem is, inside the 'collide' actionlist, when I get it to 'stop moving', and tell it to resume along set path, it stops fine, but when doing the 'resume along set path' action it then waits for the original 'move randomly' action to finish (because 'wait until finish' is checked) which means it just stands there doing nothing until the character's original 'move randomly' has finished, and then starts moving again. I also don't know if the 'wait for 3 seconds' after it's finished the original path is also making it seem like it takes longer to start walking again too.

I hope that makes sense lol it's hard to explain and such a niche issue.

I don't know how to fix this without messing everything up. Thank you :)

Comments

  • I'll need a few more details to understand the situation. Firstly, what are your AC/Unity versions?

    Is the random movement Action a custom one - e.g. this one on the wiki - or a regular Character: Move to point Action the references a "Random Marker" object?

    After the NPC resumes movement, is it your intent for them to continue to where they were previously going - or can they instead just move to a new random position?

    It sounds like the initial movement call, and the stop/resume Actions, are in separate lists. Can you share screenshots of the logic involved?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.