Pausing mid-procedure for mouse click?
Posted: Sun Jan 26, 2020 6:55 pm
I'm creating a simple game using a windowed screen with a basic event loop.
I'd like to run a procedure that changes out backgrounds and sprites and occasionally prompts for on-screen user input (like clicking on a choice prompt) or to just click to advance past a certain dialogue screen.
Is there any way to do that in the middle of a procedure? To display the background and some sprites and then wait for the user to click on the screen before continue in the same procedure?
I'd like to run a procedure that changes out backgrounds and sprites and occasionally prompts for on-screen user input (like clicking on a choice prompt) or to just click to advance past a certain dialogue screen.
Is there any way to do that in the middle of a procedure? To display the background and some sprites and then wait for the user to click on the screen before continue in the same procedure?