Question about im.AlphaMask

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
chisa-chan
Regular
Posts: 197
Joined: Fri Nov 10, 2006 3:25 am
Location: at a village near Bandung, Indonesia
Contact:

Question about im.AlphaMask

#1 Post by chisa-chan » Fri Oct 26, 2007 6:56 pm

Just being curious, how should I write the im.AlphaMask code? And is the image that is used is like in the NScripter one (with silhouette on the right side?)

Thanks a lot.
Kalau tidak suka ya jangan diladeni, gitu aja kok repot™.
Cynanthia's Blog (Indonesian)

User avatar
PyTom
Ren'Py Creator
Posts: 15447
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Question about im.AlphaMask

#2 Post by PyTom » Sat Oct 27, 2007 1:15 am

What are you trying to do? If it involves using BMP files, I'll be zotting you.

The Ren'Py version takes two images, with the base image being the first, and the mask image being the second.

In Ren'Py, the mask should be black in areas of full transparency, and white in areas of full opacity. IIRC, this is the opposite of the way nscripter does it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
chisa-chan
Regular
Posts: 197
Joined: Fri Nov 10, 2006 3:25 am
Location: at a village near Bandung, Indonesia
Contact:

Re: Question about im.AlphaMask

#3 Post by chisa-chan » Sat Oct 27, 2007 2:35 am

I don't try any bmp files. I only don't understand about how it works, really.

So, how should I write the code if I want to use this function? I don't understand @_@
Kalau tidak suka ya jangan diladeni, gitu aja kok repot™.
Cynanthia's Blog (Indonesian)

User avatar
monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: Question about im.AlphaMask

#4 Post by monele » Sat Oct 27, 2007 5:06 am

But what is your goal in using this function? ô_o

Post Reply

Who is online

Users browsing this forum: Google [Bot]