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 / how can i make sprites and bitmap be visible at the same time?

Author
Message
DDTfighter
12
Years of Service
User Offline
Joined: 24th Apr 2011
Location:
Posted: 15th Aug 2012 05:09
how can i make sprites and bitmap be visible at the same time?
i want a bitmap to be my game's background image,but when i define a sprite ,the background disappeared.
i need your help,friends!
Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 15th Aug 2012 07:37
Post your code

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 15th Aug 2012 13:06
Make the bitmap a sprite also and make sure it is drawn before any foreground sprites (use dbSetSpritePriority).

Otherwise you'll have to paste the bitmap at the beginning of each rendering pass (ie. main loop cycle). I think that's slower however.


"Why do programmers get Halloween and Christmas mixed up?"

Login to post a reply

Server time is: 2024-03-29 14:44:27
Your offset time is: 2024-03-29 14:44:27