Heya, I'm trying to work on a town, with random passerby walking down the road. I'd like them to walk from one end to the other, then basically randomize a variable to make a different person appear at the same time, or later, basically.
The main problem I'm having is that it seems that in game, if I walk too far away from this prop NPC, it stops walking it's movement path. So then it gets stuck, until I walk close enough for it to keep going to the end of it's path (where it should then vanish, and randomize a variable to make a new one appear).
Do event NPC's not process unless you're close to them in a relatively big map?
Most probably that is because you have an anti-lag-script installed.
By default, all events on the map are processed - which can create a lot of lag if you go to several hundred simple or a few badly written parallel events.
To reduce lag, the anti-lag-scripts stop events from being processed if those events are farther away from the player position.
The better anti-lag-scripts have exception-options where you can tell them which events to process even if they are on the other side of the map.
I belieeeeve that Custom Routes temporally stop if the event leaves the screen. You would need to use a Move Route command through a Autorun or Parallel Process.
I believe Espon is correct that Autonomous movement by default isn't processed if the event is a certain distance off screen in Ace.
So why would you need to use an anti-lag script if event movement only happens when near the screen by default? What do the antilag scripts do that's missing from the engine?
Add extra bugs.
I think it's more for if you have a lot of events that do nothing but display a tile (like a tree over a box) or are meaningless when you can't see them (a door). Even having 70+ blank events on a large map will begin showing a considerable FPS drop even on the best PCs. I'm guessing events still do something to slow down the game even when they do nothing, so the script disables those events when you can't see them (don't quote me on that, it's just my assumption).
Yes, the event will be updated every frame even if it does nothing.
And an event involves a lot of things, such as its corresponding sprite on the map even if it has no bitmap.
Lots of updates for no real reason, though preventing autonomous movement when an event is outside of the screen is a questionable decision.
So it's just the movement that bothers to look at the event's location?
Tsukihime's script suggestion was splendid. +1
Great, but don't necro post.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.