Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » blitting sprites

Credits go to Alex Hanson-White, Jonny Cook, Miles Lombardi, Onewing, and Richard Phipps for helping out!
This thread is locked; no one can reply to it. rss feed Print
 1   2   3   4 
blitting sprites
Richard Phipps
Member #1,632
November 2001
avatar

First: That's a jpeg file (so the original colours are lost)
Second: Even still, that looks like violet not purple. I get about 204,153,209 when looking at that 'pink'. It's nowhere near 255,0,255 which is what you need.

Attach the original BMP file please.

Jonny Cook
Member #4,055
November 2003

That's definitely the wrong pink.
[edit]
Don't use JPEGs. Use BMPs, because JPEG compression messes with the colors.

The face of a child can say it all, especially the mouth part of the face.

Money
Member #6,730
December 2005
avatar

ok, this one is with 255, 0, 255 pink

Jonny Cook
Member #4,055
November 2003

Dude, that's purple.

The face of a child can say it all, especially the mouth part of the face.

Richard Phipps
Member #1,632
November 2001
avatar

PSP looks at the 'pink' and says:

R: 160
G: 64
B: 192

Do you understand what we are asking? ???

Money
Member #6,730
December 2005
avatar

man, i put 255, 0, 255 as the rbg, and ad to custom, thats what it said, and thats what the color was, and thats why i tried other pinks, doens't work

Jonny Cook
Member #4,055
November 2003

Look at the image I attached. That's the pink you should use. Open mspaint, use the eye drop tool, and fill in your background with that exact color.

The face of a child can say it all, especially the mouth part of the face.

Onewing
Member #6,152
August 2005
avatar

Quote:

man, i put 255, 0, 255 as the rbg

You do realize it's rgb, right?

------------
Solo-Games.org | My Tech Blog: The Digital Helm

Money
Member #6,730
December 2005
avatar

ok, for the 3rd time, i'll try another pink and its still won't work, i'll post the pic too

Richard Phipps
Member #1,632
November 2001
avatar

Download Jonny's image, rename it to sprite.bmp, copy it to your code folder, run your program and see if that works ok.

Money
Member #6,730
December 2005
avatar

ok, this is pink- Pink 255-192-203

shows grey over here though

great: now i can't upload any files, wtf, is going on???

richard, i got a blank black screen...

Richard Phipps
Member #1,632
November 2001
avatar

Just try what I suggested. It should work.

Jonny Cook
Member #4,055
November 2003

That color is grey, yes. The color you want is 255, 0, 255. You've got the first number right.

The face of a child can say it all, especially the mouth part of the face.

Money
Member #6,730
December 2005
avatar

johnny cook: sigh, when you said "dude, thats purple", that was 255,0, 255

Onewing
Member #6,152
August 2005
avatar

Attach the sprite.bmp, not a screenshot.

[edit]-that probably won't work because it'll be too big of file size, you'll have to make an image link.

------------
Solo-Games.org | My Tech Blog: The Digital Helm

Jonny Cook
Member #4,055
November 2003

I'm afraid you are wrong. The exact color in the image was RGB(160, 64, 192). At least that's the color in the image you posted.

[edit]
If the BMPs small it will be okay.

The face of a child can say it all, especially the mouth part of the face.

Money
Member #6,730
December 2005
avatar

but i put in 255, 0, 255 johnny

i tried that sprite, but all i got was a black screen of death

is there anythin else other than ms paint, its actin really strange, colors are all screwed

Richard Phipps
Member #1,632
November 2001
avatar

No it wasn't..
http://www.retroremakes.com/forum/images/smilies/coderpunch.gif

Christopher Bludau
Member #5,401
January 2005

What colordepth is your programm running in?

I'm just asking because allegro docs quote this:

allegro manual said:

For 256-color bitmaps this is zero, and for truecolor bitmaps it is bright pink (maximum red and blue, zero green).

Money
Member #6,730
December 2005
avatar

color death is 16

[edit]
color depth is 16[/edit]

Onewing
Member #6,152
August 2005
avatar

And what type of bitmap are you saving sprite.bmp as?

[edit]

Quote:

[edit]
color depth is 16[/edit]

Coincedentally, 'p' is the farthest letter from 'a'. ;D

------------
Solo-Games.org | My Tech Blog: The Digital Helm

Jonny Cook
Member #4,055
November 2003

Have you tried using the bitmap I posted yet?

The face of a child can say it all, especially the mouth part of the face.

Money
Member #6,730
December 2005
avatar

umm, i dunno, i think it was the true color,...or maybe it was 256..:|

johnny cook: for the 4th time yes, and all i got was a black screen

Richard Phipps
Member #1,632
November 2001
avatar

Attach the original sprite.bmp you want to use. I will recolour the background to the correct colour and reattach it to my post.

Christopher Bludau
Member #5,401
January 2005

just try your program with jonny's bitmap.
Then tell us what happened.

[EDIT]
Ok. you did.

 1   2   3   4 


Go to: