Event Movement While off Screen/Map

EmmaB

Veteran
Veteran
Joined
Feb 20, 2018
Messages
125
Reaction score
165
First Language
English
Primarily Uses
RMMV
Hi everyone,

I am currently working on a game that has a day/night cycle and I have NPC's that walk around the town on a set path that needs to follow along with the time of day. But I have an issue that when the player walks too far away from the NPC's or leaves the map, the NPC's movement pauses till the player is back on the map or near them. An example of one of my problems with this is that I want all NPC's to walk home and go inside at a certain time (And if the player is off the map till late, the NPC's will be going home too late.)
I am wondering if there is a way to make the NPC's always moving (even if the player is far away/off the map).
Thanks in advance for any help.
 

rechronicle

Mystvaldia
Veteran
Joined
Oct 30, 2013
Messages
137
Reaction score
109
First Language
Bahasa
Primarily Uses
RMMV
Check this out, I have asked about this off-screen movement thing a long time ago. Thx to DuncanS. :kaojoy:
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
There is a workaround to allow Events to move around even if far outside of the visible Screen.
Dont use the autonomous moveroute of that event, give the moveroute with Eventcommand set moveroute to that event. 1 event could give the moveroutes for all 10 npc when needed.
I used it once to have Cars keep driving around in a City outside of the visible screen.
 

EmmaB

Veteran
Veteran
Joined
Feb 20, 2018
Messages
125
Reaction score
165
First Language
English
Primarily Uses
RMMV
Thank-you for the quick replies!
@rechronicle I looked at your link and I'm not completely sure how to do it, as my NPC's need to have their event pages free for dialogue.

@Bex I tried doing your workaround but when the player leaves the map, the NPC stops moving completely even when the player is back on the map.

I'm needing the NPC's to continue moving while they are off screen and while the player is off the map because the player is able to go inside houses, which also messes up the NPC's specific movement route if they aren't continually doing their route.
 

rechronicle

Mystvaldia
Veteran
Joined
Oct 30, 2013
Messages
137
Reaction score
109
First Language
Bahasa
Primarily Uses
RMMV
Whoops, if the player goes off to a different map, then the link can't be used. Hmm...

My take would be, to put 'TimeTracker' in every event that needs it. Then check & add to it when the player back to the map with 'CurrentTime'.

Ex: if Villager A is walking home at 3 PM, and then the player goes outside at 7 PM, Villager A can just add 4 hours to his 'TimeTracker' & proceed to be at home instead. Hope it helps or sparks some ideas.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,093
Members
137,587
Latest member
Usagiis
Top