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 / Adding a clickable image?

Author
Message
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 11th Aug 2004 05:45
Hi!

I would like to know how I could add an image to the screen, and then be able to click it. So for example I could have a menu for a game, with different images for the options, and then be able to click them and do something.

Thanks.

Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.
scout
20
Years of Service
User Offline
Joined: 27th Jul 2004
Location:
Posted: 11th Aug 2004 07:10
-paste the image on the screen
-check if mousex and y are in the range
-check if clicked

just that simple


scout
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 11th Aug 2004 07:13
how would I check for the mouse x and y?

Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.
Nitro Methane
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: Anderson , SC
Posted: 11th Aug 2004 14:27 Edited at: 11th Aug 2004 14:35
Try this, from tdkmans tutorial section.


Just substitute the box with your image.

http://www.matedit.com/

Tommy

Login to post a reply

Server time is: 2025-05-25 10:53:49
Your offset time is: 2025-05-25 10:53:49