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 / Why won't my image number work properly?

Author
Message
Kevin E
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location:
Posted: 21st Jan 2005 06:56
When I type in.... LOAD BITMAP "floor_m_07.bmp",1 it comes up.....
IMAGE DOES NOT EXIST

But when I don't put the... ,1 at the end, the picture is displayed.

I am pretty new to all this, but I guess I will need the image number for later purposes, so is there a way to stop that IMAGE DOES NOT EXIST message from coming up?

Any help is much apprecated.
Ali M Oldboy
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 21st Jan 2005 15:37
I know what would help



If not, why? What do you want it for?

Ali M - Nukesoft

... They're COMING For Us...
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 21st Jan 2005 17:26
Ali,
Please, please, please, stop answering people's Questions... You really don't help at all.

Kevin,
You have to make sure that the image is in the same directory as the exe.

If it isn't, then you can use the Set Dir$ command, or, just add the sub folder onto the start of the bitmap name.
such as: "media/mybitmap.bmp"

If that isn't the problem, I explained a method to solve this just yesterday, here:
http://forum.thegamecreators.com/?m=forum_view&t=46262&b=10

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
Kevin E
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location:
Posted: 22nd Jan 2005 01:17
I've sorted 1 problem out thanks to JessTicular.
The other problem I have is this:-

How would I put a DIM array together, or a READ, DATA file, so that I can access a particular string within that file.

An example:

READ object$
DATA "Key","Torch","Gun","Rope","Dagger"

PRINT object$ ????????

I want to be able to just print out 1 of those objects, instead of all 5, so is there something I am missing where the ??????? are.

Or could it be done using the DIM command.

Any help would be much appreciated.

Login to post a reply

Server time is: 2025-05-29 11:09:45
Your offset time is: 2025-05-29 11:09:45