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.

DarkBASIC Professional Discussion / make sprites and bitmap be visible at the same time?

Author
Message
DDTfighter
15
Years of Service
User Offline
Joined: 24th Apr 2011
Location:
Posted: 15th Aug 2012 05:13
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!
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 15th Aug 2012 15:54 Edited at: 15th Aug 2012 15:54
why wont u use sprite instead of bitmap? draw it 1st and draw all other sprites after that

Advanced Updater for your games!
Alkerak
15
Years of Service
User Offline
Joined: 7th Mar 2011
Location:
Posted: 15th Aug 2012 17:13
I think you can do this.

I don't use bitmap for my current progject as a background. I use an animated stars background.

But I dug for some code and here it is. Maybe this can help you.

James H
19
Years of Service
User Offline
Joined: 21st Apr 2007
Location: St Helens
Posted: 15th Aug 2012 19:18 Edited at: 15th Aug 2012 19:21
hope this code and notes help you come to some understanding of how the sprites and backdrop work

Login to post a reply

Server time is: 2026-07-21 20:39:23
Your offset time is: 2026-07-21 20:39:23