- Home /
Zelda Lens of Truth effect in a 2D game with sprites
Hello, been looking into how to do a lens of truth effect where you cant see certain sprites unless you have a an item, made a post about it here
http://answers.unity3d.com/questions/1074359/make-a-depthmask-in-unity-2d-without-multiple-came.html
Cant seem to figure it out for 2d as almost everything relating to this is for 3D games, anyone got any ideas how i can have certain sprites only visible if you have an aura item or something, see the pic for what i mean

Answer by Steven H · Oct 10, 2015 at 01:10 PM
Try http://docs.unity3d.com/ScriptReference/Physics2D.OverlapCircleAll.html and write a shader that changes alpha to 1 for all pixels within the overlap area?
Hey thanks for your reply, i haven't actually worked with either of those things before, im well versed in c# but ive never used an overlap circle and never written any shaders either, can you give me any examples of either of those used in a script? would be greatly appreciated
Your answer
Follow this Question
Related Questions
Sprite color invert 1 Answer
Depth Masking of sprites. 3 Answers
Resize sprite to 3D text 1 Answer
Using large number of big ( 4096 ) sprites. Error while launching Mac Standalone 0 Answers
Scissor tool with 2d sprite 0 Answers