I went through the final set of tutorials for making a horizontal endless runner game this week. I was introduced to effects and applied an explosion effect for when the player dies. I also added dirt splatter particles to the player's feet to make it appear as though they are kicking up dirt as they run. I added an audio source component to the main camera object and applied a music clip which plays during the game. I also applied a jump sound for when the player jumps and a crash sound for when the player hits an obstacle.
After completing these tutorials, I did another challenge. The game in the challenge was a horizontal endless game where the player has control of a balloon and the obstacles are bombs. I had to apply what I learned in the previous tutorials to complete this challenge. The player was unable to control the balloon using the spacebar because the GetComponent method was not used so I corrected this. I edited the script applied to the background so it moves during gameplay. Obstacles and rewards were able to spawn when I corrected the spelling of SpawnObjects in the SpawnManager script. I repositioned the firework effect so it is in the same position as the balloon and edited the RepeatBackground script so that it repeats smoothly.
The challenge was a little difficult because the scripts are busier and there is a lot of new skills to apply but referencing the tutorials helped me through it.
Comments
Post a Comment