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 / Making GUI in DBPro

Author
Message
Krimzon DestinE
19
Years of Service
User Offline
Joined: 18th Sep 2005
Location:
Posted: 8th Oct 2005 10:06
I want to make a Tic Tac Toe and Hangman game but I don't know how I would physically make the graphics for them. Like, I can make a playing area bitmap for T-T-T, but how would I make the spaces print an X or O. I also want to know if there is a way that I can have spaces printed on the screen and have the correct letter be printed over the corresponding space provided. I'm not sure how to word my question besides what I have stated.
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 8th Oct 2005 12:40 Edited at: 8th Oct 2005 12:54
krimzon i am going to assume you are using dbpro.

There are a many number of ways to do what you want.
do you want it to be 3d.?
do you want the x and o to be jiant text in boxes?
do you want them to be pictures on the screen?
We could use a little more information please there are many people here willing to help but we must know more.

you can take several approaches to this.
first off you have to load a bitmap into a dark basic program
for example

load bitamp "playboard.bmp",0
load bitmap "xsquare.bmp",1
load bitmap "osquare.bmp",2
now that the pictures are all set up to be loaded
you can use the command
COPY BITMAP From Bitmap,Left,Top,Right,Bottom,To Bitmap,Left,Top,Right,Bottom
this will place the x bitmap on the board bitmap once you set it up
you ca position it any where on the board.

you can also create sprties instead
load bitmap "xsquare.bmp",1
get image will allow you to specify how much of the bitmap you would like to get to create a sprite from.
this allows you to put all your images on one bitmap and create multiple bitmaps from one file.
then the sprite command
sprite sprite number,x positi on the screen, y position on the screen, image number to use for the sprite.
or you can skip all that and use the get image "filename.bmp"
comand and then use the sprite command

as far as hangman goes tyr experimenting with the
text command
text x position,yposition
it allows you to print any where on the screen,
also use the inuput command to get user input or keystrokes,
hope this helps some if you need more infor help feel free to message me or email. there are many people willing to help on this forum good luck.
also if you dont know what a coomand does or how to use it use the index under help in dark basic or use comand help with a specified list of what certain commands do for certain tassk such as 3d command or 2d commands or text commands

A child's dream never dies.
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 8th Oct 2005 17:29
Here are some GUI commands that I made for DBPro, they can be useful (if you look at the bottom of the page you will see a keyboard I made with them).. there are only a few, but I'm working

http://forum.thegamecreators.com/?m=forum_view&t=62375&b=1

@smerf

Quote: "krimzon i am going to assume you are using dbpro."


look at the title


Krimzon DestinE
19
Years of Service
User Offline
Joined: 18th Sep 2005
Location:
Posted: 9th Oct 2005 03:34
thanks guys

@Zotoaster

LOL! That's why I put the program title in the post title, so he wouldn't have to assume.

Login to post a reply

Server time is: 2024-09-24 05:19:28
Your offset time is: 2024-09-24 05:19:28