Stuff
Displaying 1-3 of 3 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
CypherAlmasy

Well, I have a few questions this time. Let me see if I can remember them all. First and foremost, could someone explain to me how I could possibly blit a translucent sprite to the screen? I still have no idea what I'm doing as far as my colors go, because I've been too lazy up until this point to mess around with the hi-color option, which I assume is necessary for the translucency effects, so I'm probably gonna need a pretty in-depth explanation. Sorry.

Two. It says in the docs that the sin() and cos() functions return a number in 16.16 floating point format. If I try to pass these to a function as an int, does it just truncate the decimal portion a la C++? Or do I have to do something special to convert it to an integer first?

That's all I can remember for now. As I think I've mentioned elsewhere on the site, I probably won't be able to get any work done on PB until around the beginning of December due to school, so you can feel free to take your time with the response. Thanks.

CypherAlmasy



"If any of you step out of line, I'll promise to kill you in the name of T.G. Cid too. I'm watching you. Especially you over there, elfy." -Orlandu

Posted on 2001-11-26 19:24:59

rpgking

...and not Ika or anything, here's the deal:

You don't need hicolor to do translucency(although that would make it look MUCH better). My game is in 8-bit color and translucency works fine by using the translucency table(trans.tbl). So to blit a translucent sprite to the screen(which is EASY), use SetLucent(0,1). Like so:

myImage = loadImage("crap.pcx");
[Somewhere in the display loop]
SetLucent(1); //turn on translucency
TCopySprite(.......,myImage); //or copysprite
SetLucent(0); //turn off translucency

Hopefully this is what you were asking for. ;)






Out of clutter, find simplicity. -Einstein

Posted on 2001-11-27 18:11:51

CypherAlmasy

Oh, I see! Thanks. That's one of the functions I've somehow managed to miss in my several reads of the VergeC reference. . . I'll try this once I get a free second to myself.

CypherAlmasy



"If any of you step out of line, I'll promise to kill you in the name of T.G. Cid too. I'm watching you. Especially you over there, elfy." -Orlandu

Posted on 2001-11-28 00:42:57


Displaying 1-3 of 3 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.