Sprites and the Cursor

Working on new editor enhancements?
BillNee
User
User
Posts: 93
Joined: Thu Jan 29, 2004 6:01 am
Location: Homosassa, FL

Sprites and the Cursor

Post by BillNee »

Hi - I've converted may of my OpenWindowedScreen programs to use CreateSprite,Spriteoutput() and Flipbuffers(). The programs work great in XP but now and then, when running less than full-screen programs, I can see several rows of colored dots above the arrow or I-bar cursor. These dots alternate, dot-space-dot, etc. and change colors as FlipBuffers changes the graphics. Sometimes it is a single row and sometimes up to 10 rows. They are always about 16 across.
This makes it hard sometimes to edit the program since the dots stay with the cursor even when the program stops; they don't move then but are hard to see through. And once in a while they stay even if I shrink PB. I've tried taking a picture of this with the "PrintScreen" key but neither the cursor or dots appear.
Don't know if this is a sprite problem, the editor, graphics card, Windows bug or what. Found one old PB reference to dots above a sprite but that's not quite the problem I've got. Don't know yet if running the programs on Vista using DX9 will take care of this.
Thanks
Bill Nee
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

First I don't think this is exactly in the right place... Maybe moved to General Discssion or Games Programming considering it is about sprites...

Second: What version of PB are you running?

Third: What format are your sprites saved in?

:D
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
BillNee
User
User
Posts: 93
Joined: Thu Jan 29, 2004 6:01 am
Location: Homosassa, FL

Post by BillNee »

Hi - think the problem was all mine. I was using information from an array and made the window the same size so it was one pixel off. Then I made a full size sprite to draw to but thought it had to be one pixel smaller than the array, so now I was two pixels off. When I ran the program I guess the last two pixels were drawing outside the window and, for some reason on top of the cursor. They changed colors as flipbuffer replaced the image. Don't know why they stayed with the cursor even when the program stopped.
Didn't realize all of this until I tried the program on Vista and kept getting an error at the plot command since the plot was out of bounds. Using XP I got no error unless I had debug on, then would get a red line at plot. The moving dots were a nice effect, even when I would close PB.
Thanks for the interest

Bill Nee
Post Reply