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.

Dark GDK / Making a UI based game

Author
Message
Making a game
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location:
Posted: 16th Aug 2008 21:46
Hi

I am new to this so do try to make it as simple as possible. I want to make a simple game using UI. I have programmed in C++ so I do know my way around. What I would like to know are the following:

-How do I implement mouse click i.e. buttons that do something when clicked on
-How can I implement some form of tabs
-How do I display things on layers i.e. image on background and text on front
-How can I implement gif images that animate when something else happens

Any help would be hugely appreciated.
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 17th Aug 2008 00:08
dbMouseClick, dbMouseX, and dbMouseY are the functions needed for basic mouse input. As far as layers, you simply have to draw in the correct order: text after images.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Scope 51791
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location:
Posted: 18th Aug 2008 06:58
Well, for the mouse, I simply start off by making an integer that has the Y and X position of the Mouse. Soo I will have something like this:



Then when I want something to happen if I click on an image or something like that, I will get the dimensions. So say if there is a button that starts at 100 and ends at 200 at X axis and Y axis. I will do an if statement like this:



As for gif images, I don't really know about them but you could use sprites and play there frames with dbPlaySprite(ID,Start Frame, End Frame, Delay);

Hope this helps.

Login to post a reply

Server time is: 2024-09-30 05:40:10
Your offset time is: 2024-09-30 05:40:10