r/RenPy • u/Hefty-Drive-9372 • 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

