Today, I implemented the ability to double jump!
We want to jump when pressing the space key.
I want the player to jump with out the use of a rigidbody. So I need to create the logic for gravity as well.
With the character controller script in use from Unity…
Today, I created a loading screen with asynchronous operations that will load the next level before entering!
With the main menu and a game scene already made, I want to have a loading scene in between to load the game scene before switching to that scene.
I created a new…
What is a singleton pattern? What are managers? Let’s have a look!
A manager class represents a script that manages objects or data of a specific game element, similar to how a manager of a company would manage staff for different departments.
For instance, the GameManager script will control the…
Today, I implemented the ability for the player to trigger a cutscene when near the sleeping guard!
It turned out to be quite nerve-racking! The sequences of game objects on the cutscene had to be edited, in a way, that made it difficult.
But alas, I have relentlessly defeated this…
Creating logic for security cameras is very simple! Let’s have a look.
We want the camera to rotate back and forth at a 45-degree angle. We also want the camera to detect the player.
We want to select the game object with the camera mesh.
Darren can now throw a coin to distract the guards!
We want the player to toss a coin with the right mouse button to distract all guards.
If we right-click, then we want to instantiate a coin at the position of the mouse cursor.
There are many ways to let your A.I. see. I’ll go through the easiest way to do so!
We want our agent to detect the player when in front. If the player is detected, we then want to enable the “Game Over” cutscene.
There are many ways to go about…
Let’s make our AI smarter when navigating around objects!
As a follow-up to my last article, I will show you how to have your player or AI move around objects on the nav mesh system.
If we were to move in its current state, the agent passes through objects. We…