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.

Dark GDK / Sprite question

Author
Message
tripleF
18
Years of Service
User Offline
Joined: 4th Jun 2006
Location:
Posted: 13th Aug 2006 17:04
When i try to display a sprite the background dosent display, when i take out dbSprite the background shows, what gives? Also i want the sprite background transparent, background is RGB 0,0,0 but is still opaque.
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 13th Aug 2006 18:33
You need to use either BMP or a PNG with a transparent layer.

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Supplying "NO" since 1974...
tripleF
18
Years of Service
User Offline
Joined: 4th Jun 2006
Location:
Posted: 13th Aug 2006 19:06
k thx, but i cant get the background jpg to show when i use dbSprite its just blue.
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 13th Aug 2006 23:21
Make the jpg availiable.

Come to the last Unofficial DBPro Convention (http://convention.logicstudios.net/)
Supplying "NO" since 1974...
Kaiyodo
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: UK
Posted: 13th Aug 2006 23:47
That code looks suspicious, you're loading the jpg into bitmap 0 (the screen) so whenever the screen gets refreshed it will clear it. I'm guessing that adding the sprite causes the screen to start refreshing every sync.

I'd suggest loading your backdrop as an image and using dbPasteImage every frame to draw it instead.
tripleF
18
Years of Service
User Offline
Joined: 4th Jun 2006
Location:
Posted: 14th Aug 2006 04:41
Cheers, that works.

Login to post a reply

Server time is: 2024-11-19 07:27:05
Your offset time is: 2024-11-19 07:27:05