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 / Help with load bitmap...

Author
Message
DracoFireDragon
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location:
Posted: 1st Dec 2002 03:41
I try to load my image of a 36x35 bmp file from a directory within my project directory but it doesnt like it, any ideas?
Why doesn't THIS work!? ::

Load bitmap "MonsterSprites/RedBlob.bmp",1
cypher
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 1st Dec 2002 03:51
uh...lets see. Check the basics...I believe DB is case sensitive, check that, also if you are using "Create Bitmap" make sure the numbers used there match the physical size of your bmp.

make sure the assignment of "1" is not given to another bitmap.

What error do you get?

cypher

DracoFireDragon
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location:
Posted: 1st Dec 2002 05:27
I think I just got the "/" backwards

lemme try "\"

Also can you tell me when I make create A sprite ON THE SCREEN all its edges are all jagged and ugly?

DracoFireDragon
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location:
Posted: 1st Dec 2002 05:32
Nevermind still wont work and the MonsterSprites folder is INSIDE the project directory WHERE the Db file is saved

WHYYYY...even this wont work:

Load bitmap "\MonsterSprites\RedBlob.Bmp",1

I get "cant load image at line 8" error

DracoFireDragon
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location:
Posted: 1st Dec 2002 05:33
Its like it doesnt like looking inside folders...
it works fine if the image in not in the folder but in the project directory folder

cypher
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 1st Dec 2002 05:57
try;

Load bitmap "./MonsterSprites/RedBlob.Bmp",1

cypher
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 1st Dec 2002 05:58
be sure to add the . before the first slash...just copy paste.

cypher

DracoFireDragon
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location:
Posted: 1st Dec 2002 07:19
Thanx

DracoFireDragon
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location:
Posted: 1st Dec 2002 07:19
I think ill make a idle animation of my blob :/

DracoFireDragon
22
Years of Service
User Offline
Joined: 12th Sep 2002
Location:
Posted: 1st Dec 2002 08:13
Thanks for helping me but...now I need help with animated sprites hehe

Login to post a reply

Server time is: 2024-11-23 17:57:22
Your offset time is: 2024-11-23 17:57:22