Objective: In order to have our score be more competitive let’s create a way for the player to lose score.
On the enemy script reduce score on player by your desired amount for me I am going to utilize random.range so that it doesn’t always hurt the player as much and it isn’t always the same every game. I am having this happen everytime an enemy gets past the player and respawns at the top.
Just make sure to make it be a negative to get the score to reduce. This is an easy thing to do and only requires…
Objective: Setup the boss to play music at different stages
As with previous audio articles I’ve setup a youtube video to show it enjoy!
Step 1: Disable current background music. For this I’ve created a tag for the background music object and wrote a script for destroying it.
Step 2: Find the tag on the boss at the start
Objective: Make it so the player doesn’t run out of ammo on the boss level
Step 1: Using the method we created previously on the player to detect when it’s the boss level we can change up our fire code. First we need to check if it’s boss level when trying to fire normal