I might be missing something obvious, but I was wondering if it's possible to use pixellate in a transform. I'd use this for whenever I call a specific screen. I know I can use it as a transition like:
but I want to use it in a transform so I can have it pixellate on show and hide. And so I don't have to find every instance of this screen being called.
Thanks
Pixellate in Transform?
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.
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.
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: Pixellate in Transform?
You can use 'with' in transforms, just you have to tell it the displayable to transition to (and maybe back to)
There are likely ways to do it just with transitions set against the screen though, which might be better
Code: Select all
transform pixellate_to_new( new=Null(), old=Null() ):
on show:
new with pixellate
on hide:
old with pixellate
## show "old" at pixellate_to_new("images/new.png", "old")
Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
- Westeford
- Regular
- Posts: 151
- Joined: Mon Jun 19, 2017 4:43 pm
- Completed: 12 Hours to Die
- Projects: Project Premonition
- itch: westeford
- Location: United States
- Contact:
Re: Pixellate in Transform?
So are "new" and "old" separate images?Remix wrote: ↑Fri Jan 24, 2020 7:54 am You can use 'with' in transforms, just you have to tell it the displayable to transition to (and maybe back to)
There are likely ways to do it just with transitions set against the screen though, which might be betterCode: Select all
transform pixellate_to_new( new=Null(), old=Null() ): on show: new with pixellate on hide: old with pixellate ## show "old" at pixellate_to_new("images/new.png", "old")
Who is online
Users browsing this forum: Imperf3kt