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 / Blue On Background Image

Author
Message
Kamakazi
15
Years of Service
User Offline
Joined: 3rd Nov 2009
Location: Moberly, Missouri
Posted: 17th Feb 2011 12:18
Hi everyone,

I am in the process of attempting to learn the 3D aspects of DBPRO. My next project I'm working is a space-shooter with a top-down, 2D look, but will attempt to use 3D objects for the characters.

Knowing this, I was using the Screen Scrolling tutorial to learn how to create a vertical "scrolling" effect. I used the included image first and then attempted to use my own. However, I keep getting these blue effects on my background image when I test the scrolling code. Is there something I'm missing or not doing? To clarify, I have tried both JPG and PNG formats...both of which are doing the same thing.

Screenshot and Code Snippet are included. Help please?

Attachments

Login to view attachments
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 17th Feb 2011 13:09
I would assume the sprite is using pure black as the transparent colour.

Try using "set image colorkey" set to say a bright purple before you load the image.

Kamakazi
15
Years of Service
User Offline
Joined: 3rd Nov 2009
Location: Moberly, Missouri
Posted: 17th Feb 2011 13:36
Wow! Using the command you gave, and setting it to all blue worked. Thanks!

Kamakazi
15
Years of Service
User Offline
Joined: 3rd Nov 2009
Location: Moberly, Missouri
Posted: 17th Feb 2011 15:01
Now I have another question. I tried using one of the included DarkMATTER models to place over the scrolling background and it appears behind the scrolling background. I noticed then when I tried to move the app window as the scrolling stopped and the object would appear on a solid blue background. This area of DBPRO is new to me and I'd like to learn it. Is there something I'm missing again or doing wrong?

baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 17th Feb 2011 15:07
Try adding "Draw Sprites First" somewhere before your loop.

Kamakazi
15
Years of Service
User Offline
Joined: 3rd Nov 2009
Location: Moberly, Missouri
Posted: 17th Feb 2011 15:42
Wow...that worked. I'm learning something new all the time Thanks again!

Login to post a reply

Server time is: 2024-11-23 03:04:30
Your offset time is: 2024-11-23 03:04:30