Thursday, March 5, 2020

Unitys Own: Unity Tutorial 06

This week we've moved onto another unit and another game to create almost from scratch. We had to follow along with three of the lessons from the unit which took me roughly three hours.

The goal of this weeks unit is to set up the basic gameplay for this yet another prototype. We of course start by importing the starter files that unity provides us before we start. This game will be all about the character jumping over obstacles as they come at them from off screen.

Screenshot of Jumping Game

Next we had to choose a background and a character from the selection in the starter files, and code to allow that character to jump when the player hits the spacebar. We also had to choose an obstacle for the character to jump over, and create a spawn manager that throws them in the player’s path in intervals.

Now that we have that done we have to deal with that the character appears to be running for the first few seconds, but then the background we chose just disappears. In order to fix this problem we need to have the background repeat to make it look like the character is running non-stop. We also want the game to stop when the character hits an obstacle, triggering the background to stop repeating and the obstacles spawning.

Now we need to have the character actually run and jump instead of just sliding across the ground, we to give it animations for these things. We will also have to adjust the speed of the animations given in order to make them look for natural in the game.

These three lessons were just the beginning of the unit but I'm excited to see where this game is going.

No comments:

Post a Comment