The objective is to create a modular sound system to call a specific sound clip to their respective place in code. If you know about the SOLID Principles in software engineering, then you should remember the ‘S’ in Solid.
Single Responsibility Principle.
We want to create an object that will be responsible for the audio of the game. Then we can use it as a reference for other scripts to communicate too.
First, let's create an empty game object and name it “Audio_Manager.”
This will hold the data for all of our sound clips.
We also want to attach the…
Hello everyone! A lot has happened since my last progress update! I added a 3rd power-up, created a simple UI, and added some VFX to spice up the visuals.
Before getting into them, I want to say that the journey so far into becoming a Unity Developer has been an experience! It is more than what I had hoped for it to be! It’s like an actual class in College but straight to the point with no fillers.
I can now collect a shield power-up! The implementation went smoothly. Different than the others.
Since the shield power-up gives a permanent…
Hello everyone! Today is another exciting day. I implemented a damage VFX visualizer for when the player is hurt!
The objective is to show player damage through the stages of its lives. Let’s go on!
I used a sprite ready to be animated that resembles a fireball.
I created a new animation clip, dragged in the frames, and voila! It’s alive! Ready to be used.
We have to remember that the player has three lives. When the player has three, we do nothing. Its hull is in mint condition.
If the player gets hit, then reduce the lives to two…
Hello everyone! Today is another day for game dev! This time it's about having the enemies explode when destroyed.
Let’s check out the asset we are going to use.
The objective is to have the animation play when the enemy is destroyed.
Loading scenes in Unity is simple! Here’s how.
Open an existing or a new project. Let’s create a new scene so that we have two scenes available.
We have to add our scenes in the Build Settings: File > Build Settings. This keeps track of our scenes and issues an index number to them.
Would you like to create a simple Retro Game Over behavior like an arcade game in Unity? I’ve got you covered!
The behavior we want is to have a Game Over UI element flicker when the player dies. It requires setting up the UI element in Unity and create logic through code for it to flicker.
First, let us create a new UI element of “text.”
Hello everyone, My name is Gabriel Perez, I am a Unity Developer and a creator who is always learning and experimenting.