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! / help with 2d backgroound

Author
Message
quinty_68
16
Years of Service
User Offline
Joined: 16th Feb 2008
Location:
Posted: 16th Feb 2008 21:44
im trying to load a image background and then load a .x object, but the background covers the object so i cant view it. im new to this so any suggestion would b great
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 17th Feb 2008 06:19 Edited at: 17th Feb 2008 06:20
does the draw to back command help? not sure exactly how you're going about assigning the image to the background so any more specifics would help us help you.

Virtual Nomad
AMD XP 1800+ (~1.6 Ghz) / 1.5 GB RAM
ATI Radeon 8700LE 128 MB / Windows XP
quinty_68
16
Years of Service
User Offline
Joined: 16th Feb 2008
Location:
Posted: 18th Feb 2008 07:13
well i tried the draw to back but the iamge is removed, here is a snippet

dbLoadImage ( "Media\\Backdrop.bmp", 1 );
dbSprite ( 1, 0, 0, 1 );
//dbSetSpriteAlpha ( 1, 185 );
dbDrawToBack ( );

dbLoadObject ( "Media\\craft.x" , ship );
dbScaleObject ( ship, 50, 50, 50 );
dbXRotateObject ( ship , 270 );
dbFixObjectPivot ( ship );
ErDa
16
Years of Service
User Offline
Joined: 17th Feb 2008
Location:
Posted: 17th Apr 2008 17:12


I think he meant this.
Garzu
19
Years of Service
User Offline
Joined: 31st Oct 2004
Location: London
Posted: 29th Apr 2008 17:14 Edited at: 29th Apr 2008 17:15
What about putting the background image on a plain(plane) rather than a sprite and positioning it in the z axis.

<img src="http://www.garzini.co.uk/images/DBProSig.jpg" width="400" height="90" />

Login to post a reply

Server time is: 2024-05-06 12:22:41
Your offset time is: 2024-05-06 12:22:41