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.

2D All the way! / dissapearing background

Author
Message
old rinkly
22
Years of Service
User Offline
Joined: 11th Mar 2004
Location: Devon UK
Posted: 6th Apr 2006 23:59
I load an image and paste it as a background.
then I attempt to place a sprite on screen.
the sprite is there, but the BG has dissapeared leaving a blue screen. Please in simple terms WHY.

old rinkly
Chris Franklin
20
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 7th Apr 2006 00:42
Code ????

Theme park simulator wip

Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 7th Apr 2006 01:06
The blue screen is probably the 3D screen. Bitmaps don't work on 3D screens. DB Pro has 3D sprites, so using them could activate 3D mode.

DB Classic should not have this problem. Then it is your code.

old rinkly
22
Years of Service
User Offline
Joined: 11th Mar 2004
Location: Devon UK
Posted: 7th Apr 2006 01:08
This is just a bare bones code to test out why this happens, as I have a number of projects where I have had to turn the BG into a sprite to keep it in place and I am sure this should not be correct.
The only other thing that works is to put the "paste image" in the main loop and I can't see this being correct either.Thanks Sunrise 3D

old rinkly
Chris Franklin
20
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 7th Apr 2006 01:14 Edited at: 7th Apr 2006 01:16
Try


That is untested tho

Quote: "I have a number of projects where I have had to turn the BG into a sprite to keep it in place and I am sure this should not be correct."

Using sprites as the bg is the best way really then you can set the priority of other images over it the menu in my themeparksim is sprites

Theme park simulator wip

old rinkly
22
Years of Service
User Offline
Joined: 11th Mar 2004
Location: Devon UK
Posted: 7th Apr 2006 01:33
Thanks Sunrise 3D. I was a bit worried in case I was being a bit heavy on the memory when there was another way arround this.
My computer is showing it's age. Like me.

old rinkly

Login to post a reply

Server time is: 2026-07-01 21:22:26
Your offset time is: 2026-07-01 21:22:26