What's the best way to program multiple display windows?
In most of my games, I want to make a menu that has multiple different options. I've already tested a few, and with my button class, they work.
However, the way I've programmed the screens to work has a logic error. I've done it so I'm importing the screen from another file each time it's opened, but I've learnt that's not the best way to do it, at all. I'm using a new while loop each time the function to open the next window is called, and that's just "window layering".
I currently have a logic error: when I use the return button, instead of going onto the previous display, the return button takes the player all the way to the main menu instead.
Basically, I'm not satisfied at all with how my display windows are working and would really love some assistance on how to get multiple windows to work, please...!!! Thank youu