Hello everyone,
I'm currently making a game with a lively town where every NPC has somewhat of a daily schedule, similar to Stardew Valley.
I'm using the community lighting plugin for a day/night circle and using the time system for events, like the street lanterns being off during the day or a church bell sound at 7am.
I also used it for the schedules of the townspeople, like the farmer leaving his house at 7am, walking over to his crops, staying there for the day and then returning to his home at 6pm. It works perfectly fine, as long as the player is on the same map. But if they're in their house, all those scheduled events happen as soon as they leave it and appear on the town map, even if it's already 10am.
I figured, that common parallel events work in the background, no matter where the player is, but the farmer still only walks to his field while the player is on the same map. When they appear on the map after that scheduled event, nothing is happening at all. There's just the, now visible, sprite of the farmer on front of his door, but he's not moving at all.
So I'm really struggling with bringing my village to life right now, because of course it will be neccessary to change maps during playing, and I would like the NPCs keep doing their businesses.
Is there any way I could do that? Or is such a schedule system impossible? Or am I just blind for some very easy solution here?
Thank you all in advance!
I'm currently making a game with a lively town where every NPC has somewhat of a daily schedule, similar to Stardew Valley.
I'm using the community lighting plugin for a day/night circle and using the time system for events, like the street lanterns being off during the day or a church bell sound at 7am.
I also used it for the schedules of the townspeople, like the farmer leaving his house at 7am, walking over to his crops, staying there for the day and then returning to his home at 6pm. It works perfectly fine, as long as the player is on the same map. But if they're in their house, all those scheduled events happen as soon as they leave it and appear on the town map, even if it's already 10am.
I figured, that common parallel events work in the background, no matter where the player is, but the farmer still only walks to his field while the player is on the same map. When they appear on the map after that scheduled event, nothing is happening at all. There's just the, now visible, sprite of the farmer on front of his door, but he's not moving at all.
So I'm really struggling with bringing my village to life right now, because of course it will be neccessary to change maps during playing, and I would like the NPCs keep doing their businesses.
Is there any way I could do that? Or is such a schedule system impossible? Or am I just blind for some very easy solution here?
Thank you all in advance!