Day to Night code help...
Displaying 21-28 of 28 total.
prev 1 2
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
mcgrue

By the way, I am a hardcore fan of tinting the map but not the entities. Yay!

Posted on 2004-08-21 20:13:30

gannon

I think you copied it wrong.

you need
alpha_tiles = NewImage(ImageWidth(curmap.tileset), ImageHeight(curmap.tileset));
not
alpha_tiles = DuplicateImage( curmap.tileset );

otherwise the transparentcies don't work

Posted on 2004-08-21 22:10:08

rpgking

No, what you have is just an alternate way to initialize the alpha image. I copied the code exactly as it is. The line:

Silhouette( 0, 0, RGB(255,255,255), curmap.tileset, alpha_tiles);

effectively changes the entire alpha_tiles image, so the way that the image is initialized doesn't really matter as long as that image pointer called alpha_tiles exists with the correct dimensions. The Silhouette function is all that matters because it is what creates the correct alpha image.

I just tested the code again exactly as it is and it worked. I'd never publicly post code without testing it first :)

Posted on 2004-08-22 01:20:21 (last edited on 2004-08-22 01:42:27)

Zip

Quote:Originally posted by rpgking

I just tested the code again exactly as it is and it worked. I'd never publicly post code without testing it first :)


Wow. That's dedicated. I AWLAYS post code without testing it, and it's generally shite. On a side note, you rock, and demonstrate the blue colour filter well. Now I just want a good sunrise/sunset one :)
Also, DuplicateImage() is great. And vec is right abou the dynamic thing, and *still* rocks for adding access to the vsp.

Zip

Posted on 2004-08-22 01:47:00

Interference22

Quote:Originally posted by Zip

Quote:Originally posted by rpgking

I just tested the code again exactly as it is and it worked. I'd never publicly post code without testing it first :)


Wow. That's dedicated. I AWLAYS post code without testing it, and it's generally shite.
Zip


Zip, I am keeping this quote in a very special place. I will read it out at random during parties.

Most code I quote I'm already using, so it comes pre-tested.

Posted on 2004-08-22 01:49:00

gannon

I copied and pasted the code and it doesn't work. Could someone else try the code and see whats going on.
also I thought alpabit didn't count transparency as transparent in the alpa image

Posted on 2004-08-22 02:23:01 (last edited on 2004-08-22 02:25:07)

rpgking

Well then... If the way alpha_tiles is initialized makes that much of a difference on your machine, then I guess NewImage() can be used. I honestly don't see why this would make a difference though since alpha_tiles is completely painted over. Anyways, I'll change that line.

Posted on 2004-08-22 05:47:18

gannon

Silhouette doesn't completely paint over the transparent ones so they are not black (unless alphabit treats transparent special)

Posted on 2004-08-22 06:13:35


Displaying 21-28 of 28 total.
prev 1 2
 
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.