In this article, we are going to create behaviors that require the player to collect all of the coins and a key before being allow to activate the elevator button. If the player tries to activate the elevator without all of the coin and key, the elevator button will not work.
In this quick article, I will cover how to reset or restart a level. In this example, when the player is out of lives the level will automatically reset. This technique to be used with input, like if the R key is pressed then restart the level.
In this article, I will go over how to respawn the player to a location if they fall off the platform and lose a life. I am not going to cover the updating of the Lives UI as it is similar to the coin count UI I wrote in the previous article.
In this article, we will cover when the Player lands on a moving platform the Player will move with the platform. When the Player jumps off of the moving platformer, they are no longer moving with the platformer.
In this article, we are going to talk about how to create a platform that moves back and forth between two points. When the Player jumps on it, the Player doesn’t move with the platform and this will be addressed in a future article.
In this article, we will talk about what Classes with MonoBehaviour
Classes are needed for Object Oriented Programming or OOP. OOP is programming that revolves around “objects” containing fields (attributes/variables) and procedures ( methods). Classes will define and established the attributes and methods that each object(s) of that class will inherent.
In this article, we will cover setting up the player be able to collect coins and display the amount of coins that have been collected.
We are going to add a UI element of Text Mesh Pro to the scene. This will create a Canvas and Event System. A script will be created, UIManager, and attached it to the Canvas. In the script, we will need to access the Text Mesh Pro library by…
In this article we will cover that platformer staple of double jumping because sometimes we need to put on our Reebok Pumps to be able to get to a platform that is just out of reach.
We will need to be able to track if we can double jump or not, so we are going to create a bool called canDoubleJump.