If i'm in the kitchen for example and I get a text message, the notification pops up and in 2 seconds will hide itself. If i move out of the kitchen (BEFORE the 2 seconds have passed) and into the living room, the notification will still hide itself as intended when the timer is up but the problem occurs when I move to a third room and then roll back to the second room. Upon rolling back, the screen is shown again and gets stuck there.
I'm not sure how rollback works in detail but i'm assuming it's remembering that the screen was being shown when we were last in the living room so it displays it but the issue is the code triggering the notification was in the kitchen so the timer never fires so the notification never dissapears? I dont really know.
I tried to show it as best I could below. Numbered to try and make it easier to follow.
Pseudo code:
Code: Select all
screen notification:
#Display notification here
timer 2.0 action Hide("notification")
label Kitchen:
imagebutton jump Living_Room #takes you to the living room. I know these should be in a screen etc but this is just an example
show screen notification
# 1. notification is displayed
# 2. Imagebutton is used to move to the living_room label
label Living_Room:
imagebutton jump Kitchen #takes you to the kitchen
imagebutton jump Bathroom #takes you to the bathroom
# 3. Entered living room while the notification is on screen.
# 4. Notification hides as expected. Imagebutton is used to enter the bathroom label
-----------------------------------------------------------------------------------------------------
# 6. Back in the living room after roll back and the notification is back on the screen and is now stuck there.
The timer in the screen doesnt seem to fire and even if i jump to another label it's still stuck on screen,
at least until i go back to the kitchen where the code to show the screen is fired again, which resets it.
label Bathroom:
imagebutton jump Living_Room #takes you to the living room
# 5. Now in the bathroom. Perform rollback, using mousewheel, to go back one step to the living room
So how do i stop it from being shown again when rollingback? or can i exclude this screen from rollback? I'm a bit stumped.
Thanks in advance