Hamza had created a battery pack from which the players character could walk into and charge up their suit from which they breathe - essentially giving them a life. I had imported his asset into the game and added a box collider to it and ticking the "is trigger" box. I also added a pick up script to the battery pack and linked it to the data manager. This would mean everytime the players character would run into the battery pack, they would gain a "life". I also admitted the parameters so that the maximum amount of "lives" a player can have within the game is 4.
After I had done this, Dason had imported his character into our game. I then did something similar to Dason's character. I added a box collider to his character making it a trigger. I then added the pick up script to the character and attached it to the data manager which recognises the amount of health the player has within the game. I added a pickup value of "-1" so that each time a player bumps into the enemy, they lose a life.


No comments:
Post a Comment