Toggle Shaders

Get help using Construct 2

Post » Sat Aug 25, 2012 12:28 am

Say for example I want every single object in my game to have the sketch shader, but I want the player to be able to toggle it whenever they want.

So, to do this, I put every object into the same family, and then applied the shader to that family. This does what I want in-game, but when I try to edit the levels, they all have the shader applied. This isn't such a big deal when it comes to sketch, but lens? Glass? Then it gets hard.

So, my question is... how do I toggle the shader on and off in layout mode?
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 961
Reputation: 10,717

Post » Sat Aug 25, 2012 12:32 am

You can set "Enable WebGL" to off while you working in editor.
ImageImageImageImage
B
157
S
64
G
41
Posts: 2,590
Reputation: 34,640

Post » Sat Aug 25, 2012 12:43 am

[QUOTE=shinkan] You can set "Enable WebGL" to off while you working in editor.[/QUOTE]

Good idea, but I have to remember to turn it on each time I test the level, which I do quite often. Seems odd I can enable/disable them in the editor, but not in the layout.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 961
Reputation: 10,717

Post » Sat Aug 25, 2012 12:44 am

Yeah it would be good to have a way to toggle them, like a checkbox in the 'view' menu.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,630

Post » Sat Aug 25, 2012 12:50 am

[QUOTE=ramones] Yeah it would be good to have a way to toggle them, like a checkbox in the 'view' menu.[/QUOTE]

Yeah, that way we could have them start disabled, just like booleans. I'd also like to be able to toggle them:

Upon pressing space, toggle effect active. I know you can work around this easily enough, but it's nice to have the option.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 961
Reputation: 10,717


Return to How do I....?

Who is online

Users browsing this forum: SturmIV and 6 guests