BSA228 - Defeating enemies and Menu

i finally found a way to let the ghost disappear when it get hits. Also will a coin appear when the enemy is defeated. At first I tried a slightly different script attached to the bullet but that didn't worked that well because it wouldn't access the method.



In class I also added that the number of Coins will be set up with one when you collect a coin. At first it wouldn't update the Text of it but that was because the overwriting was in the Update method. When I changes it into the OnTrigger() it work just fine. Now I just have to add a better font to it and then the HUD is finished. Maybe I will change the Coin text into a image of the coin and will put it above the person HUD so it won't be a distraction for the player.



To let the character die when the ghost attacks him I needed a Game Over Screen. So I started to build on in another Scene. For the design I build a wall with the bookshelves and added a image of the open book that I created for my proposal.



I decided to use the same screen for all the menus to have a bit of consistent. I added some light to the scene so that the shelves are a bit lit behind the book and so the book has a light halo. Still has to replace the buttons with something more fitting to the game but for now everything is working with that.



Kommentare