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 / db pro problem #2

Author
Message
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 16th Feb 2006 01:15
I am making a 2d game that consists of many maps. Rather than just making a bunch of images, I thought that I might be able to make one LARGE map that is divided for each individual map. The resolution is 800x600. The map file is 4000x3000 (enough for 5 maps across and 5 maps down). The sprite doesn't even appear. Why? There is no black on it so it shouldn't be invisible.

Basically, what I want to know is: Why won't my sprite(that is 5x the size of the screen) appear?

Thanks
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 16th Feb 2006 01:23 Edited at: 16th Feb 2006 01:23
here is my code


Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 16th Feb 2006 05:17
Why not just use multiple image files for the worlds? I'm sure it won't take up more space than the one large image, and most of all, it will certainly make things easier.

FunkyStickmen: Battle of the Races (1%)
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 16th Feb 2006 05:33
I have considered that and probably will do that, but now I am curious as to why it won't show. Could it be because it is too big?
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 16th Feb 2006 20:41
Attach the image to your next message so we can test it out. Darkbasic might not like it.


driftman
19
Years of Service
User Offline
Joined: 7th Aug 2005
Location: Somewhere Outside of Sanity
Posted: 17th Feb 2006 12:09
one possibility is that you might have it moved off screen
try
and see if you can see it then.

I have a lil' white jacket that lets me hug myself forever.
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 18th Feb 2006 00:04
well i have tried that. I even imported the code to DBC to see if it works and it does in that. But i don't understand why DBP is haveing such problems with it
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 18th Feb 2006 05:13
I downloaded a hubble image and increased its size to 4000x3000 and I ran your code with only a filename change and it worked fine. It's gotta be your image.




Attachments

Login to view attachments
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 18th Feb 2006 10:14
I'm only guessing here but it may be possible that you don't have enough video memory to store such a large bitmap.

I made an image 4000x3000 in photoshop to see how large it would be and it is 34Mb. If you only have 32Mb of video memory then you will most definately run into problems.


Login to post a reply

Server time is: 2024-09-24 15:28:37
Your offset time is: 2024-09-24 15:28:37