TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Shaders on Layers?
Pages:
1
Shaders on Layers?
ozz
Posts: 575
January 15, 2022, 06:07:25 pm
I'm trying to add a negative saturation effect to the game when the menu is open, but there are some images that only work in normal saturation. Is there a way to apply Shaders to Layers rather then the whole game or some other fix I haven't thought of?
« Last Edit: January 16, 2022, 05:54:52 am by ozz »
merrak
Posts: 2732
January 15, 2022, 10:43:14 pm
You should be able to accomplish this, but not with the native Stencyl blocks. OpenFL allows shaders on any sprite, which includes layers or even individual actors. Mdotedot has an actor layer extension on the forums that should have some examples, and maybe even some code you can use.
`/\=======/\"-
Website! -
http://www.anorthogonaluniverse.com
Facebook -
http://www.facebook.com/rlwatson
Twitter -
https://twitter.com/merrak
ozz
Posts: 575
January 16, 2022, 06:01:23 am
Thank you Merrak, is this the add-on you meant? If so it seems to be for Flash games, and I'm making a game for Window/Mac. Will that be a problem?
Edit: Also what about the 'Toggle shaders for HUD layer' block? There isn't much documentation on how to use it?
« Last Edit: January 16, 2022, 07:10:58 am by ozz »
merrak
Posts: 2732
January 21, 2022, 11:55:48 am
Hi,
This is the extension I was thinking about.
https://community.stencyl.com/index.php/index.php?topic=57431.msg303085#msg303085
`/\=======/\"-
Website! -
http://www.anorthogonaluniverse.com
Facebook -
http://www.facebook.com/rlwatson
Twitter -
https://twitter.com/merrak
Pages:
1