xtom Posted January 20, 2015 Share 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 Link to comment Share on other sites More sharing options...
Ameshi Posted January 21, 2015 Share 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 Link to comment Share on other sites More sharing options...
xtom Posted January 21, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Ameshi Posted January 21, 2015 Share Posted January 21, 2015 I'm glad it works for you Quote Link to comment Share on other sites More sharing options...
Naughty Alien Posted January 21, 2015 Share Posted January 21, 2015 @Ameshi ..so you are not a Troll after all..hehehe..good, good 3 Quote Link to comment Share on other sites More sharing options...
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.