Image Problem

I’ve been working on my game for quite some time and now realized if I open an overlay scene and close out of it if I click on my screen again on the exact same spot the overlay starts to add up multiple times. I was hoping to get it to work like the Throne Wars.

Code? Chances are you’re not adding to the sceneGroup.

Make sure you are adding isModal = true to your overlay as it is false by default.  

Also, ensure you only load your overlay on event.phase == “ended” to stop multiple overlays being spawned.

Without seeing code it is impossible to diagnose any further.

Yes, I did what you said and it started to work then I hit an error. I realized I did not put them in a group so I used self.view to do this, but they are now invisible.

Code? Chances are you’re not adding to the sceneGroup.

Make sure you are adding isModal = true to your overlay as it is false by default.  

Also, ensure you only load your overlay on event.phase == “ended” to stop multiple overlays being spawned.

Without seeing code it is impossible to diagnose any further.

Yes, I did what you said and it started to work then I hit an error. I realized I did not put them in a group so I used self.view to do this, but they are now invisible.