Thursday, 24 October 2019

Everstone Capstone Project: Unity work part III

To bring more life to my environments, I have added in some lights to my project.
At a first glance, when adding in lighting into a 2D unity project it does not seem to affect the imported sprites at all. 

After a little research and watching this tutorial: https://www.youtube.com/watch?v=fwyAoE_uMFo  I found that there was a way to allow unity lighting to appear. Since I did not have too much time left, I decided to only apply this technique to some things in the level such as the statue. By following along the tutorial I was able to make the statue light up with a point light. This was achieved by creating a clipping mask from the drawn asset and colouring it white, before importing both the asset and its mask into unity. Within unity, I followed through with the process by creating a new material and attaching the mask to it.

In addition to this, with the help of increasing and lowering the alpha channels of the light and the unity animator, I was able to animate the light to pulse. 


This same light effect was added to a set of keys that I added into the game as part of a collection system for the game as suggested by my lecturers. 

The keys I took inspiration from the logo I created and drawn and coloured in Krita.

When a player collects a key, the script will update the amount collected on the canvas overlay with the player icon. 




No comments:

Post a Comment