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.

Newcomers DBPro Corner / How do u do UI?

Author
Message
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 22nd Feb 2005 11:30
How do u make the UI for a game? What programs do u use to make it? and how do u do minimaps? Also how do u get effects like see through things?

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
just ND
19
Years of Service
User Offline
Joined: 8th Feb 2005
Location: London
Posted: 23rd Feb 2005 22:26
There's a good tutorial on using the box command to make a UI at http://developer.thegamecreators.com/?f=dbpro_tutorials.

<img align=center src="http://www.freewebs.com/andrew-is-random/error.GIF">
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 23rd Feb 2005 22:30
k, thanks

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
just ND
19
Years of Service
User Offline
Joined: 8th Feb 2005
Location: London
Posted: 23rd Feb 2005 22:34
Do you have dark basic classic or pro?

For DarkBasic Pro:
If you want a seethrough 3D object, do:
Quote: "ghost object on object no"


Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 23rd Feb 2005 22:38 Edited at: 23rd Feb 2005 22:39
i have pro, but do u do UI with 3D in a 3D game? i thought u just use boxes and stuff, like when u see a "transparent" blue box as part of the UI.

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 24th Feb 2005 09:50
One effective way is to use 3d planes for your interface, and use the lock object command to fix it to the screen. The advantage of using 3d planes is that you can then use all the 3d object commands like transparency, fade, ghost, alpha mapping etc. Another big advantage of planes over 2d, is that the users screen resolution won't affect the size and position of your interface elements. With anything 2d, keeping things the same on different screen sizes is not nearly so easy.


Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 25th Feb 2005 08:06
but wouldnt you be able to the top/bottom/side of the 3D object unless it was completely centered?

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 25th Feb 2005 09:44
A 3d plane has no depth, so you wouldn't be able to see any edges.


BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 25th Feb 2005 10:41
If you are using Pro you can use BlueGUI. If you are using Classic there was a very old link to a windows commands library, it was very powerful and only used the image/text commands.

Crazy Donut Productions
Current Project: A Redneck game
Gil Galvanti
19
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Texas, United States
Posted: 25th Feb 2005 11:08
ok, thanks im using DBP btw

Video games…they can take you places unreachable, impossible, unfeasible. They put you in the book...they put you in the movie...they put you in a world, a world that before could only be imagined.
Gen
20
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Oklahoma, USA
Posted: 25th Feb 2005 14:27
Quote: "Another big advantage of planes over 2d, is that the users screen resolution won't affect the size and position of your interface elements."


You can fix that problem easy. For an object that is to be on the right ride of the screen at all times just get the scren width and subtract how far left it needs to be.



That would paste the sprite's left edge to 974th px with resolution 1024x768.

Soon to come...
Dark IDE, New IDE for DarkBASIC Pro!
Two plug-ins, A Time/Date and New File commands.

Login to post a reply

Server time is: 2024-11-27 22:52:40
Your offset time is: 2024-11-27 22:52:40