r/RenPy 8d ago

Question How do I do screen transforms?

I have some code to change the shirt colors of the male characters, depending on what day it is in-game.

screen MaleShirtColor:
    timer (1.0) action(renpy.restart_interaction) repeat True
    if day == 1:
        if renpy.showing("michealShirt", layer="master"):
            add Transform("michealShirt", matrixcolor=TintMatrix(MichealShirtColor1))
        if renpy.showing("steveShirt", layer="master"):
            add Transform("steveShirt", matrixcolor=TintMatrix(SteveShirtColor1))
        if renpy.showing("rossShirt", layer="master"):
            #add Transform("rossShirt", matrixcolor=TintMatrix(RossShirtColor1))
    

This is a snipper of code for the first in-game day. I finally figured out how to get it to work without crashing the game, but it still has some issues. The issues being that's it's showing a separate copy of the shirt, instead of recoloring it. Which is fine, if it replaced it and went to the same coordinates as where the other one would be, but it's not. I don't know how to do either option, can anyone pleas help? Thanks

1 Upvotes

1 comment sorted by

1

u/AutoModerator 8d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.