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 / Problem with textures

Author
Message
Delta Games
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: U.K
Posted: 15th Oct 2005 15:46
hi all,
I have been working my way through the monester hunt turitorial and i have hit a snag.
I cant get my textures to load
Here is the part of the code were i try to load the textures


Here is all the code for the game

thanks

Dark Project Studio (web Site comeing soon)
John Y
Synergy Editor Developer
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: UK
Posted: 15th Oct 2005 18:15
If you copy and paste

C:\darkbasic\media\bitmaps\textures\arcade\floor\grass16.bmp

into the box shown when clicking Start>Run, and then pressing ok does the image load up?

If, yes then you should probably copy the images into the same folder as your source code and just reference the file, not the path and file e.g.

grass16.bmp

If, no then you should change your code to point to the actual location on your hard drive where the images are.

Delta Games
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: U.K
Posted: 15th Oct 2005 18:50 Edited at: 15th Oct 2005 18:50
i will try that now
thanks

Dark Project Studio (web Site comeing soon)
Delta Games
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: U.K
Posted: 15th Oct 2005 19:12
it worked thanks very much

Dark Project Studio (web Site comeing soon)
headcrab 53
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location:
Posted: 15th Oct 2005 20:35
Remember, it's a HORRIBLE idea to have a whole path C:\darkbasic\media\bitmaps\textures\arcade\floor\grass16.bmp in the code, because if anybody else plays it on a different PC, everything would have to be in the same spot. So put a folder called "Textures" in the same one as your game, and put Load image "textures\arcade\floor\grass16.bmp",1 in your code.

If you can read this, you are over qualified.
Delta Games
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location: U.K
Posted: 15th Oct 2005 20:53
thats what i did it would take 2 long to type out C:\darkbasic\media\bitmaps\textures\arcade\floor\grass16.bmp
and as you say everything would have to be in the same place.

Dark Project Studio (web Site comeing soon)

Login to post a reply

Server time is: 2024-11-27 14:19:28
Your offset time is: 2024-11-27 14:19:28