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.

Newcomers DBPro Corner / Sprite problem in menu

Author
Message
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 19th Jul 2003 03:12 Edited at: 19th Jul 2003 04:00
I have a problem setting up a menu, when i load the images an make sprites of them as followed:



I only see the menu button but not the background. the title image is 1024x786 and I use a black background for my menu button. whats the problem and how can i solve it?

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 10GB HD, Geforce 4 Ti4400 128mb ddr sdram
MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 19th Jul 2003 03:57
Its possible that either a) You need to swap the sprite priorities around or b) give the sprite command the image you want to use (its missing a paramter).

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins and other exciting things - oh my, yes!
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 19th Jul 2003 04:00 Edited at: 19th Jul 2003 17:40
it ain't B cuz i post it wrong, i'll try A

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 10GB HD, Geforce 4 Ti4400 128mb ddr sdram
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 19th Jul 2003 17:41
nope, doesn't works, any other solutions?

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 10GB HD, Geforce 4 Ti4400 128mb ddr sdram
Bloodshot
21
Years of Service
User Offline
Joined: 7th Apr 2003
Location: United Kingdom
Posted: 19th Jul 2003 18:31 Edited at: 19th Jul 2003 19:17
I just tried your exact code replaced with 2 bmps of my own and it displayed them both. Your JPEGs are compressed, so maybe that's affecting the transparency of one on top of another???

The jpeg compression may be cutting corners by storing every shade of black used in your image under one value - say RGB(20,20,20) rather than RGB(0,0,0) for example and so your background is not classed as transparent any more.
3dZmaster
21
Years of Service
User Offline
Joined: 30th Jun 2003
Location: Finland
Posted: 19th Jul 2003 18:53
I don't know if this helps but when in my menus I always do it like this.
After loading the sprite strecth it using the current screen height nad screen width. This works for me, but I don't know...
Then the title you can strecth with smaller number's so it won't fill the whole screen.
Hope this helps... I'm not any kind of a guru at 2d so this might be bullshit, but at least try it.

Current project: Dodge Viper Car Game (Not named yet) Other car models are going to be included soon
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 19th Jul 2003 21:56
I found a way, I used my background image as an image an not as an sprite

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 10GB HD, Geforce 4 Ti4400 128mb ddr sdram

Login to post a reply

Server time is: 2024-11-24 22:53:04
Your offset time is: 2024-11-24 22:53:04