Objective: make the player die and respawn after falling of a platform
How to make the player die by falling?
Well, the solution to the problem lies beneath the solution to another one: how do I detect a falling off a platform?
We could check for y-position being lower than…
Objective: script a moving platform with modular path
Another evergreen platform component is the moving platform. We are going to create and script it in a modular way, so we can easily duplicate its behaviour and just change the waypoints defining the path.
Objective: make the coins collectable
In order to have a true platform game, we have to collect coins or whatsoever. Since both coins and player have a collider it will be very simple.
Let’s create a separated script for the player CollectionManager.
As usual, we are going to switch…
Objective: initial setup of the game objects and of the Character Controller
The next project in my “to do” list is platform. I’m going to go with a 2.5D setup, meaning that the gameplay will take place on 2D but all objects and effects are actually 3D.
The first thing…
Objective: play a footstep sound, as accurately timed as possible, during Darren and guards walking
Footstep sounds are mandatory for an adequately immersive gameplay. But how can we play them? How can we repeat them at each step?
At first, I wanted to try and modify di walking routine in…