- Home /
Question by
UtopianSocialist · Apr 15, 2016 at 05:41 PM ·
lighting2d game2d-platformer
How do I make something like a conical street light in a 2D side scroller platformer? (Much like that what is used in Mark of the Ninja)
Hi All,
I am extremely new to Unity (I have gone through a lot of tutorials, even the advanced ones and I am good with coding) and I have started on my first project. But I ran into a hurdle immediately. I want something as shown in the image attached. I want it to look like a street light spreading over a certain area on the ground. I tried using spotlight, but I don't know how to make it work in a 2D side scroller. How do I make it work?
Thanks a lot in advance for the help!
example.jpg
(12.9 kB)
Comment
Answer by tanoshimi · Apr 15, 2016 at 05:43 PM
Create a triangular mesh/sprite in the shape of your light cone. Place it on top of other objects in the scene, and assign the particles/additive shader to its material.