Question 'bout PaletteMorph()
Displaying 1-2 of 2 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
QuebecMan

i heard a while ago that you could change the palette of a single picture without affecting the rest of the screen. Like if my monsters in my battle are in .gif, and i want them to flash white when they attack, it would be very useful. I think there was a tutorial on vergesource, but i also heard that the site was shut down. I'd be grateful if somebody still have something like a tutorial or if he's willing to tell me
thanks
-ErayMan



Posted on 2001-10-21 18:17:01

Devon

Honestly, I've never heard anything about that, and to the best of my knowledge, no version of VERGE can do it. (Automatically, that is. You can always custom code it) There is a color tinting function planned for V2.7, and V2K and V2k+j have a ChangeAll function that could be used to create an effect like that, but it would have to be custom coded, as all it does is replace every instance of color 1 with color 2 in the given image.

Now that I think about it, if you are using the original 8-bit version of V2, and set up your palette very carefully, you could create exactly that effect, but again, it's custom coding. Basically, there's no way to just tell VERGE to palette blink/flash one specific image.

If you are just looking to flash them white though, (or any other solid color) you don't need to bother with palettes at all. There's a function called Silhouette() that renders all non-zero (non-transperent) pixels as the given color. Check your VC documentation, as most versions of VERGE have it, but I think it works differently in some.
(If you are using 2.7, it has no such feature at present, but the aforementioned tinting function will be able to replicate that effect.)

-Devon



--- Square's making money. We're making art.

Posted on 2001-10-22 01:27:16


Displaying 1-2 of 2 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.