Hey guys.
I'm currently completing the MAIN MENU for my game.
For the options, I simply spawn a window on top of the title screen with it's own buttons for different functions such as switching sound on and off, selecting difficulty...
My problem is that I seemingly can't disable the other buttons currently on the screen. I tried the "disable collisions" command but whenever I touch the window at the spot where say the NEW GAME button is, the layout still switches to the actual game layout. I thought maybe the collisions are disabled only while I'm pressing the actual menu button so I tried creating a boolen for disabling and enabling collisions but it doesn't seem to work.
Now I'm left with simply destroying all buttons upon spawning the window and then re-creating the buttons when I exit the options window.
That said, is this more convenient Memory-Wise for four sprites to be destroyed and re-created every time I access the OPTIONS window? It's only four sprites so even if it weren't, I don't think it'll be that big of a problem. If it is, then I guess I'll keep the current setup.
Thanks!