Objective: Use Cinemachine to follow the player through the dungeon.
Open the package manager from Unity window menu and search for Cinemachine. Install the latest version of Cinemachine, which will add a new menu in Unity.
Use this menu to add a new virtual camera called CM_Follow_Cam as a child of Player, see below.
Objective: Add idle, run and jump sprite animations to 2D game.
Our player is organized into the Player game object and a child object called, Sprite. Select the Sprite and create an animation named Idle, placing it in the animations folder within the Sprites folder. With the Sprite child selected…
Objective: Create a player for 2D Unity game that can move and jump.
Before adding the player make sure the ground tilemap or Floor has a rigidbody 2D with body type static and box collider with used by composite checked. Make sure the floor layer is set to Ground.
Objective: Create a small 2D tilemap in Unity.
In a 2D Unity 2020.3.20f1 project, right click in hierarchy and choose 2D object > tilemap > rectangular to create a Grid. Open Grid and rename the child tilemap to Ground_Tilemap, set the order in layer to 2. Create three more tilemaps…
Objective: Create a vegetation tile pallet in Unity 2D
For this article create a Unity 2020.3.20f1 2D project. Import the 2D Mobile Adventure assets from GameDevHQ Filebase. Create a Sprites folder in the project Assets folder. To the Sprites folder create a Tilemap folder and two new subfolders, Palettes and…
Objective: Player completes level by finding container and can restart game.
The player completes the level by finding the container. Add a box collider with is trigger checked to the Scifi_Container and edit the collider so that it extends into the players plane of motion, see below.
Objective: Create Game Over UI allowing restart, when the player dies.
The player dies when they fall off the platform, but not when jumping. The difference is the velocity of impact. The code below in the Player script occurs only if the the player is grounded, as detected using Physic.Raycast…