Location-dependent background
Pan ·
I'm trying to make a feature where the background image will change depending on the player's location and testing it as a standalone "game" before I go plugging it in to an actual one. The location variable has three options, each of which is associated with its own simple background asset. However, I can't always get it to work. After adding a behavior that creates a popup when the location variable changes, I figured out that the AI sometimes only says the location has changed. It will narrate the move and act as though the player is in that area moving forward, but the variable doesn't actually change. Sometimes it will update the turn after, but most of the time, it doesn't.
How can I make the variable update more reliably? Is using some kind of menu to select a location the only solution, or is there still a way to make a narrative approach work?