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 / I'm very new to programming...

Author
Message
Ocean
18
Years of Service
User Offline
Joined: 15th Jul 2007
Location:
Posted: 15th Jul 2007 20:58
...and I have gone through some basic tutorials and am now at Monster Hunt. It's going fine and I seem to understand almost everything.. except I can't freaking get the bitmaps to work for the textures... there is a place to download them but I do not know where to put them. If anyone could help me I would appreciate it a lot because I'm sure it's easy, but I just don't know what im doing.
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 15th Jul 2007 21:13
ummm... could you explain a little more.
You can't use bitmaps as textures only images.
But you can load bitmap files as images. (LOAD IMAGE "picture.bmp",1)

I am king of the noobs!
TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 15th Jul 2007 21:19
When you download them, save them in the same folder as your DBA file.

TDK_Man

Ocean
18
Years of Service
User Offline
Joined: 15th Jul 2007
Location:
Posted: 15th Jul 2007 21:45
DBA file? ...god i hate myself... I'm already getting confused with the whole load image command because I don't know how it knows which folder to go to.. i've gone into the bitmap folder, then into textures and tried (LOAD IMAGE "Cloth.bmp",1) which is already there but it says it does not exist... im sry for being such a noob at this, but if u could just bear with me i would be grateful.. (this will probably not be my last post on this topic because i fail )
Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 15th Jul 2007 22:56
Oh right, sorry I misunderstood the question

I am king of the noobs!
Ocean
18
Years of Service
User Offline
Joined: 15th Jul 2007
Location:
Posted: 16th Jul 2007 00:46
Hmm.. it turns out I did not need to download them.. I only figured so because it said the files do not exist.. I have gotten 1 of them 2 work which is (LOAD BITMAP "cottag02.bmp",1) but (LOAD BITMAP "Barry.bmp",2) does not seem to work... DB is saying the file does not exist.. i originally tried LOAD IMAGE which worked for neither but when i switched to LOAD BITMAP it only worked for the cottag02 bitmap... ne 1 know what i might be doing wrong?
Zeus
19
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 23rd Jul 2007 17:04
Put it in the same project folder.

TDK
Retired Moderator
23
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 23rd Jul 2007 20:27
Load Bitmap will load the image into a hidden bitmap with the number you specify. You need to switch to that bitmap and grab the image if you want to use it later. The important thing to remember is that with Load Bitmap you NEVER get to see it if you use bitmap number 1 or greater!

Load Image on the other hand loads the image and can immediately be put on the screen with Paste Image.

Don't use Load Bitmap until you fully understand what it is doing.

TDK_Man

Login to post a reply

Server time is: 2026-07-05 22:37:07
Your offset time is: 2026-07-05 22:37:07