I'm extremely new to RMMZ, so I'm hoping someone can point out where I'm making a mistake.
I made a very simple common event clock (using this tutorial). It displays the clock in the corner when the Display Time switch is turned on.
At any point you can walk the character to the bed, click on it, and be transported to the "sleep" map. When that happens, the clock display disappears. All good so far. I want it to be gone when on the "sleep" map. It then returns when the character wakes up. Perfect, no issues.
However, I created a common event so that at a specific time, the characters is forced to go to bed. It does basically the same thing as clicking on the bed. The only difference is the bed asks if you want to sleep first, while this just happens. It transfers to the same "sleep" map. Except that the clock display does not disappear. It remains in the corner. And I want it gone.
This is the forced sleep event:
Once on the "sleep" map, this is the only event (dancing ZZZZs on the screen then transfer back to home)
And this when you click on the bed instead of being forced to sleep.
I changed the commen event page for the display to be slightly different than the tutorial, changing it to an "if/else" statement, so that it shows the clock times when on but shows blank images when off. That was my first attempt to fix it. I also added the "turn the switch off" code a bunch of times, in its own map events, to the already existing map event, changed from autorun to parallel and back again.
Does anyone have any ideas? Why does clicking on the bed remove the clock while being forced to sleep does not?
I made a very simple common event clock (using this tutorial). It displays the clock in the corner when the Display Time switch is turned on.
At any point you can walk the character to the bed, click on it, and be transported to the "sleep" map. When that happens, the clock display disappears. All good so far. I want it to be gone when on the "sleep" map. It then returns when the character wakes up. Perfect, no issues.
However, I created a common event so that at a specific time, the characters is forced to go to bed. It does basically the same thing as clicking on the bed. The only difference is the bed asks if you want to sleep first, while this just happens. It transfers to the same "sleep" map. Except that the clock display does not disappear. It remains in the corner. And I want it gone.
This is the forced sleep event:
Once on the "sleep" map, this is the only event (dancing ZZZZs on the screen then transfer back to home)
And this when you click on the bed instead of being forced to sleep.
I changed the commen event page for the display to be slightly different than the tutorial, changing it to an "if/else" statement, so that it shows the clock times when on but shows blank images when off. That was my first attempt to fix it. I also added the "turn the switch off" code a bunch of times, in its own map events, to the already existing map event, changed from autorun to parallel and back again.
Does anyone have any ideas? Why does clicking on the bed remove the clock while being forced to sleep does not?