Also just commenting this for others that might want to use shaders with this, as it took me a bit to figure out --
if is_talking: # Apply the talking transformation
trans.shader = "outline"
else: # Apply the not-talking transformation
trans.shader = None
Likely you will need to make a copy of the shader you're using with uniform variables, instead of them being set through a transform. This means you're stuck with one preset (unless you make it a variable potentially?), but it works like a charm!
It's not causing any errors/unintended behavior for me in game, but my Lint report says the following, and I was curious if others were encountering this or whether I should be concerned about it
As kinda the opposite of onebulb's comment below, for my use case I needed the sprites to transition between being tinted when speaking but left fully untouched at baseline. My modification ended up looking like the following:
← Return to asset pack
Comments
Log in with itch.io to leave a comment.
Also just commenting this for others that might want to use shaders with this, as it took me a bit to figure out --
Likely you will need to make a copy of the shader you're using with uniform variables, instead of them being set through a transform. This means you're stuck with one preset (unless you make it a variable potentially?), but it works like a charm!
This is super cool, thank you for sharing it!!
It's not causing any errors/unintended behavior for me in game, but my Lint report says the following, and I was curious if others were encountering this or whether I should be concerned about it
Unreachable Statements:
game/00auto-highlight.rpy:
* line 1
* line 31
* line 58
* line 64
* line 81
As kinda the opposite of onebulb's comment below, for my use case I needed the sprites to transition between being tinted when speaking but left fully untouched at baseline. My modification ended up looking like the following: