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 Discussion / how do you make a title screen were you can click on start and options and stuff like that?

Author
Message
doom on cats
21
Years of Service
User Offline
Joined: 31st Mar 2004
Location: stuck in a minnesota blizzard
Posted: 28th Jan 2005 07:01
ok i made my title screen, this is what it looks like:

Chronicles of the dragon

Start
Options
specials
load game



so how do you make it so that when you click on start it will clear the screen and go to the start page, and that when you click on the others they will clear the screens and go to there own screens?
Jake Blues
20
Years of Service
User Offline
Joined: 19th Jun 2004
Location: United States
Posted: 28th Jan 2005 07:22 Edited at: 28th Jan 2005 07:22
First, you have to find out the borders of the text so they can be like buttons. Imagine the text is in a box. You have to find the coordinates of each edge of the box. To do this, print the mouse x and y on the screen like this.



Then you would record the coordinates you find.

Then you would have it so that when the mouse clicks in this area, it knows what button is clicked. Lets say the coordinates are 10 and 50 for the x and 10 and 40 for the y.



And so on.
Here is an example.



Don't let life get you down, it will only get better.
Sol462
20
Years of Service
User Offline
Joined: 12th Sep 2004
Location: playing with the spazookeedoo
Posted: 29th Jan 2005 07:23
neojacob is right. but text is a little hard to aim a mouse on. try making a button graphic like a rectangle with words on it in your favorite image editor. then do neojacob's advice but with the boundaries of the images.

coffee + monkeys + creativity = games
Operation Pineapple - Multiplayer FPS WIP
Element Designs
20
Years of Service
User Offline
Joined: 5th Nov 2004
Location: Upstate, New York
Posted: 4th Feb 2005 00:53
I kind of have the same question but how would you go
about making a game menu with rollover images??

Element designs team
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 4th Feb 2005 02:20
Take off the bit that says 'if mouseclick()=1 then' would be a start.

Avatar - white cat in a snowstorm. Look closely.

Login to post a reply

Server time is: 2025-05-25 02:14:02
Your offset time is: 2025-05-25 02:14:02