Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / How do I use my mouse in a start screen?

Author
Message
Massacrekid
8
Years of Service
User Offline
Joined: 5th Apr 2016
Location:
Posted: 5th Apr 2016 02:06
So I have a problem. My group has to create a educational game for our class. We want to make a fun space game that when you answer all the questions right you win. The problem is that I do not know how to code mouse clicks in certain areas. A example is that if i were at the start screen and i wanted to go to the options screen. there would be a button under the start screen that says options. I don't know how to make it so when I click the options it will take me to a different screen. I really need help on this because all the things i have searched before didn't help and we would have to change the entire game if I cant figure out this. Most of the other tutorials before showed how to move through the start screens with the arrow keys but I want to use the mouse and mouse clicks to go through the start screen and game.
Green Gandalf
VIP Member
19
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 5th Apr 2016 11:52
You could take a look here (found using the search button by the way ):

https://forum.thegamecreators.com/thread/112936

Alternatively, try this simple demo:



Powered by Free Banners
Derek Darkly
12
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 10th Apr 2016 21:07
I like to use DATA statements to keep track of mouse "click zones"

WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 10th Apr 2016 23:24 Edited at: 10th Apr 2016 23:38
The function in this snippet demonstrates a simple text based menu with mouseover. Can it get any simpler? This can easily be modified to use an image or sprite.

Login to post a reply

Server time is: 2024-04-26 19:28:05
Your offset time is: 2024-04-26 19:28:05