Hi! So before I explain my problem, there's an explanation required of what where how and why.
In the game I'm creating, there's a world map. On it, there's a parallel process with a timer (not exactly but sort of) which will spawn one of X number of events. Those events will take the player on a new map , and upon exiting it, it will place a new event on the world map based on the player's X and Y previous position, and that event would take the player to the map previously randomly found. (I hope it makes sense!)
Now there's an issue I'm seeing here. If there's more than one of those random event, even if it's unlikely, there's a SMALL chance that the player could block another event on the world map (if events on the map aren't set to "through"), or they could stack together if the event is set to through - which would remove the problem of event blocking each other.
I've been thinking about it for quite a while and I can't find any solution. Anyone creative enough to help me figure this one out? Thanks!
In the game I'm creating, there's a world map. On it, there's a parallel process with a timer (not exactly but sort of) which will spawn one of X number of events. Those events will take the player on a new map , and upon exiting it, it will place a new event on the world map based on the player's X and Y previous position, and that event would take the player to the map previously randomly found. (I hope it makes sense!)
Now there's an issue I'm seeing here. If there's more than one of those random event, even if it's unlikely, there's a SMALL chance that the player could block another event on the world map (if events on the map aren't set to "through"), or they could stack together if the event is set to through - which would remove the problem of event blocking each other.
I've been thinking about it for quite a while and I can't find any solution. Anyone creative enough to help me figure this one out? Thanks!