Skip to main content

UNITY TUTORIAL 06

Computer gamer illustration from Freepik.

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.

Personal screenshot from my work in Unity3D.

Comments

Popular posts from this blog

PROTOTYPE

I browsed through the Unity asset store to find a package with nature objects that I could use to set up the scene for my infinite runner game. I downloaded the Nature Starter Kit 2  and started building my scene in Unity. This was a little time consuming but I'm satisfied with the way it turned out. I upscaled the trees and bushes, keeping in my mind my initial idea of gaining inspiration from the movie "The Secret World of Arrietty." I got the character from a tutorial I have completed for this module before and positioned the camera behind it. Screenshot of my work in Unity3D. With reference to the lesson 3 Unity tutorial, I started coding by creating the PlayerController script. I used the AddForce method and allowed the player to jump by clicking the spacebar. I declared two public variables to be able to adjust the gravity and player's jump force. Looking into the player's animator controller, I applied a static running animation. I then added a jumping ani...

FIRST PLAYABLE

Continuing with the creation of my game, I resized the player character to make them even smaller based on a comment that was left on my last project blog. I also repositioned the trees to make the space slightly narrower and added some flowers to bring some colour into the scene. With reference from the animal feeding game tutorial, I was able to get the player moving left and right by clicking the arrow keys. I brought in rocks and a branch for obstacles but I need to apply a SpawnManager script and get them to spawn randomly during gameplay. I also have to figure out how to get some branches falling from the trees and bringing in power-ups and points too. Screenshot from Unity3D of my game production.

INTRODUCTION TO SOMEONE WHO'S JUST VIBING

HEY!! Look who made it to her second year of college!! Me, Nadine, I did!! Yeah, I'm even more surprised than you are.  Happy girl illustration by 94MLK_ on Twitter. Saved from Pinterest . Last year wasn't too bad, but that was up until the whole country went into quarantine and I began to fear for my college career. I was constantly on the verge of giving up on my assignments but I would like to thank my friends for not allowing that to happen. I'm so glad I get to start year two with them and hopefully we'll make it to the end together too!  Despite the stress, there are a few pieces of work from year one that I'm proud of. I liked the websites that I created for Web Development 1 and 2, the video I edited from Introduction to Digital Media mission 3 and the advertisement poster I made for Digital Photography. I hope to produce better work this year.  Personal screenshot from the index page of my web development 1 project. Personal screenshot from the index page ...