AlphaBlend issue

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
zabuzaeldemonio
Regular
Posts: 103
Joined: Sun Jan 08, 2017 7:24 pm
Projects: Call Me
Location: Spain
Contact:

AlphaBlend issue

#1 Post by zabuzaeldemonio »

Hi guys,I have been reading about the use of this function, and looking for the forums, I found this:

Code: Select all

transform alphatransform:
    alpha .0
    linear 1.0 alpha 1.0
 
init python:
    def shade(d):
        return AlphaBlend(alphatransform(d), d, Solid("#000", xysize=(x, y)), True)

Code: Select all

label start:
	show soldier at shade

In theory should darken the sprite, but nothing happens, it does not even show it, I do not know what I'll be doing wrong, if someone has an idea I would appreciate the help.
My personal Project:
Image

philat
Eileen-Class Veteran
Posts: 1909
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: AlphaBlend issue

#2 Post by philat »

What is the x, y that you're setting xysize to?

Post Reply

Who is online

Users browsing this forum: No registered users