Hi all,
I have two overlays in my game.
One that manages feedback to the player (Notifications Overlay), shows for 2 seconds then automatically closes.
The other manages the inventory back pack of items the player has collected (Inventory Overlay).
My game works perfectly, if the player interacts slow and steadily.
But…
If the player is really quick between clicking on an object that they can not use yet, thus invoking the Notification Overlay to show, but then they quickly click on the Inventory Overlay, as the 2 seconds expire that the Notification Overlay is programmed to show for, it’s scene Destroy event is also closing the Inventory Overlay, its highly annoying.
To solve this problem, I was hoping to temporarily block/prevent the ability for the player to be able to click on the parent scene objects (like the back pack button which opens the Inventory overlay), whilst the Notification Overlay was on screen.
I was attempting to use the groupMain.isHitTestible = false, function on the parent scene’s objects, to temporarily disable them. But this only works if I set the group to invisible, which I do not want to do.
Is there a way to achieve this, keeping everything visible, but yet momentarily “removing” the ability to tap/touch/hit the objects??
Thanks
Angela