xtom Posted January 20, 2015 Posted January 20, 2015 Does anyone have an example or tutorial on how to apply a post effect in the lua code? I want to simulate the player being sick so I tried adding a blur and wobble effect in Post Effects dialog in the editor. The effect is pretty cool but I don't know how to apply these in the lua code. Quote Check out my games: One More Day / Halloween Pumpkin Run
Ameshi Posted January 21, 2015 Posted January 21, 2015 Maybe is not the best solution but when I need to do this I do: camera:ClearPostEffects() camera:AddPostEffect("Shaders/Posteffects/shaderIwant.shader") And when I need to back everything to normal I use ClearPostEffects() + all the original shaders with AddPostEffect() 2 Quote
xtom Posted January 21, 2015 Author Posted January 21, 2015 Thanks a mil, that works great! I thought I would need a page of code or something to get it working! Quote Check out my games: One More Day / Halloween Pumpkin Run
Naughty Alien Posted January 21, 2015 Posted January 21, 2015 @Ameshi ..so you are not a Troll after all..hehehe..good, good 3 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.