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! / Why is the mouse under everything else?

Author
Message
Guhill The friendly one
21
Years of Service
User Offline
Joined: 12th Jun 2004
Location: The fourth demension
Posted: 23rd Jun 2004 21:30
I made a crosshair bitmap for the mouse in MS paint and loaded it in DB Pro to use as a mouse and it's under the rest of the bitmaps. How do I fix this?

I know now, without a doubt, that Kingdom Hearts... IS LIGHT (Sora)
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 23rd Jun 2004 21:59
A bit more info might help, how are you displaying it sprites?

If you are using sprites you can use SET SPRITE PRIORITY to control the order the sprites are drawn.

can i scream
Guhill The friendly one
21
Years of Service
User Offline
Joined: 12th Jun 2004
Location: The fourth demension
Posted: 23rd Jun 2004 23:08
Before the loop I load bitmap. Then I get image.
Inside the loop I type sprite 8,mousex()-22,mousey()-28. However, I can tell the crosshairs are under everything else because the black pixels are invisible and I can see it through them. Tell me more about SET SPRITE PRIORITY.

I know now, without a doubt, that Kingdom Hearts... IS LIGHT (Sora)
zircher
23
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 24th Jun 2004 01:12
The reason that he mentioned the command is so you can look it up yourself and learn something. You need to be more aggressive in educating yourself.
--
TAZ

From the DBP help files...

SET SPRITE PRIORITY
This command will set the relative priority of the specified sprite. All sprites start with a value of zero giving them equal chance of being drawn last. By setting a single sprite a value of one will cause that sprite to be drawn last. You can specify a unique priority value for each sprite creating an order of drawing for every sprite in your program.

History did not begin with PONG. -- Greg Costikyan

Game Beavers
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 24th Jun 2004 01:47
I don't think thats the problem. When you say the black pixels are invisible does that mean other colours on the image are visible?
If so it's because GET IMAGE treats a colour as transparant and will make all the parts of the image it gets that are that colour transparant. The default colour for transparany is black.
You can change the transparant colour with SET IMAGE COLORKEY. Change it to something other than black before you use GET IMAGE.

Also you can skip using LOAD BITMAP and then GET IMAGE and just use LOAD IMAGE if you are not breaking the image file up with GET IMAGE.

can i scream
Guhill The friendly one
21
Years of Service
User Offline
Joined: 12th Jun 2004
Location: The fourth demension
Posted: 24th Jun 2004 01:50 Edited at: 24th Jun 2004 01:51
I'll try that.
By the way. I want the transparent color to be black. The crosshairs are green.

I know now, without a doubt, that Kingdom Hearts... IS LIGHT (Sora)
Guhill The friendly one
21
Years of Service
User Offline
Joined: 12th Jun 2004
Location: The fourth demension
Posted: 24th Jun 2004 02:04
Nope, doesn't work. I'll prevent you from having to help me further on this subject by just using the regular mouse that comes with darkbasic pro. Thanx anyway.

I know now, without a doubt, that Kingdom Hearts... IS LIGHT (Sora)
zircher
23
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 24th Jun 2004 20:42
For that matter, you can make custom mouse pointers and use them in DBP. That's probably the best way to go for ease of use.
--
TAZ

History did not begin with PONG. -- Greg Costikyan

Game Beavers

Login to post a reply

Server time is: 2026-06-09 19:41:13
Your offset time is: 2026-06-09 19:41:13