Page 1 of 1

Pausing mid-procedure for mouse click?

Posted: Sun Jan 26, 2020 6:55 pm
by sshults
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?

Re: Pausing mid-procedure for mouse click?

Posted: Sun Jan 26, 2020 11:47 pm
by IdeasVacuum
... have the User Click a Message Requester.

Re: Pausing mid-procedure for mouse click?

Posted: Sun Jan 26, 2020 11:59 pm
by sshults
Yes, I know about the message requesters but I don't want a pop-up. For example, if there's a scene in the game with dialogue that's paused and waiting for them to click on the game screen to continue before the next dialogue line is shown.

Re: Pausing mid-procedure for mouse click?

Posted: Mon Jan 27, 2020 12:35 am
by IdeasVacuum
Well, you would have to write an event that detects the Screen being clicked - but wouldn't be easier to have a button on the dialog?

Re: Pausing mid-procedure for mouse click?

Posted: Mon Jan 27, 2020 12:38 am
by IdeasVacuum
... or a continue button on the Window (instead of the windowed screen).