Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Glenjamin on Tue 27/11/2018 01:14:35

Title: Character movements outside of current room
Post by: Glenjamin on Tue 27/11/2018 01:14:35
My game has a 24 hour cycle which I use to plot out character events. One the timer hits a certain time, characters do various actions.

In this case, I'm trying to make a character walk to work. In order to do this, he walks to one side of the screen, then changes rooms the next hour.

Unfortunately the game crashes if you're not in his room when the game tells him to walk.

Is there any way to have AGS move characters that are not in the current room?
Title: Re: Character movements outside of current room
Post by: Crimson Wizard on Tue 27/11/2018 01:34:42
This may be done similar to any other update in unloaded room (to hotspots, objects etc). You save their positions and states in variables, and assign to actual character when player enters corresponding room (in "before fade-in" event).