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 / Problem with sprites

Author
Message
mezron
20
Years of Service
User Offline
Joined: 12th Jul 2004
Location:
Posted: 20th Jul 2004 19:13
Well since I'm new to DBP I'm going through everything slowly and trying little programs to make sure I understand what I'm learning. But I've kinda hit a problem with sprites.

I load my back ground. Then I do all the good stuff I have to call the sprite. It does put the sprite on the middle of the screen where it is supposed to be but fills the rest of the screen with blue. So it seems to maybe not kow where the edge of the sprite is or something. Though I'm thinking it should be transparent around it correct so I can see the background around it.

Here is the code what am I doing wrong. From what I've learned so far is usually something small that I over look.

mezron
20
Years of Service
User Offline
Joined: 12th Jul 2004
Location:
Posted: 20th Jul 2004 19:14
cls
hide mouse
load bitmap "background.bmp",0
load bitmap "twisted.bmp",1
get image 1,0,0,bitmap width(1),bitmap height(1)
set current bitmap 0
sprite 1,125,217,1
wait 5000
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Jul 2004 19:28
Read the tutorial on sprites on why it does it and how to get rid of it.


Are you sensitive enough?
mezron
20
Years of Service
User Offline
Joined: 12th Jul 2004
Location:
Posted: 20th Jul 2004 19:37
Where could I find that? Sorry but I am really new
mezron
20
Years of Service
User Offline
Joined: 12th Jul 2004
Location:
Posted: 20th Jul 2004 19:40
never mind found it in the dev network
glint
20
Years of Service
User Offline
Joined: 9th Feb 2004
Location: the Synth
Posted: 21st Jul 2004 03:03
Does your bitmap 1 have a blue background? If it does, then either make it black or set the transparent colorkey to blue.
mezron
20
Years of Service
User Offline
Joined: 12th Jul 2004
Location:
Posted: 21st Jul 2004 12:59
Nah the background is a zebra skin black and white definately not blue. Though that tutorial that was pointed out to me looks to have the answer to my questions. Since sprites in DBP are handled in 3d hence the blue back drop. It makes sence now just never put two and two together. Going to experiemetn with the tutorial tonight.

Login to post a reply

Server time is: 2024-11-27 01:43:12
Your offset time is: 2024-11-27 01:43:12