It is currently Thu Jun 04, 2020 7:30 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Pausing mid-procedure for mouse click?
PostPosted: Sun Jan 26, 2020 6:55 pm 
Offline
New User
New User

Joined: Sun Jan 26, 2020 6:50 pm
Posts: 2
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: Pausing mid-procedure for mouse click?
PostPosted: Sun Jan 26, 2020 11:47 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6189
Location: Wales, UK
... have the User Click a Message Requester.

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Last edited by IdeasVacuum on Mon Jan 27, 2020 12:32 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Pausing mid-procedure for mouse click?
PostPosted: Sun Jan 26, 2020 11:59 pm 
Offline
New User
New User

Joined: Sun Jan 26, 2020 6:50 pm
Posts: 2
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pausing mid-procedure for mouse click?
PostPosted: Mon Jan 27, 2020 12:35 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6189
Location: Wales, UK
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?

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: Pausing mid-procedure for mouse click?
PostPosted: Mon Jan 27, 2020 12:38 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6189
Location: Wales, UK
... or a continue button on the Window (instead of the windowed screen).

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye