chaning alpha on character image

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
cedes
Regular
Posts: 42
Joined: Fri Aug 04, 2017 3:33 pm
itch: cedes
Contact:

chaning alpha on character image

#1 Post by cedes » Thu Aug 20, 2020 1:32 am

I'm working on a battle system and I'm trying to get the enemy to fade in opacity when they're defeated.

Code: Select all

show enemy_2 as e1 at e1_pos
and tried using

Code: Select all

show e1:
            alpha .5
when they're defeated, but it changes the correct iamge of e1 into a default character, they are at .5 opacity though

there'd be multiple different enemies as "e1" so that's why I'm mostly struggling, I'm not sure if I have to try a different method or I'm missing something simple.

User avatar
cedes
Regular
Posts: 42
Joined: Fri Aug 04, 2017 3:33 pm
itch: cedes
Contact:

Re: chaning alpha on character image

#2 Post by cedes » Mon Aug 24, 2020 6:53 pm

Any ideas?

Post Reply

Who is online

Users browsing this forum: Bing [Bot], khezo, _ticlock_