I just started experiementing with renpy and everything has been great so far, but I'm slowly trying to do more advanced stuff.
So the effect I'm trying to do now is to "darken sprites".
Yes, I know there are already a few threads in the forums with this, and I already know the gist of executing it, so hear me out a bit.
To push for polishness, what I want to do is to be able to interpolate images between the normal image and the darkened image. (Yes, I am aware of the silhouette post: https://www.renpy.org/wiki/renpy/doc/co ... silhouette)
The ideal code snippet in my mind goes like:
Code: Select all
show person at darken
So the first question is whether there is a way to achieve this?
If there is, then my problem is solved for all cases.
If not, then I would have to create a darkened silhouette version of the image, place it on top of the image I want, and increase it's alpha over time etc...
For this method, I'm looking for a cleaner way to do this.
The main problem is that it will become very annoying to manage 2 separate images that will ALWAYS share the same position and size. If I have 4 characters on screen, that means 8 images to manage. If each character has 2 different poses, that means 12 images to manage.
The thought of moving characters and their darkened images around makes me dizzy. Feels alot to do just for darkening an image.
Does anyone have any suggestions to make the management and code base lighter (helper functions, etc)?
Sorry for the long ranty post.