Hold Shift to Enable Thruster- Game Dev Series 32

S.J. Jason Liu
May 27, 2021

--

Objective: Create boost function when left shift is holding.

In this article, we will create a function to boost up the speed when we hold down left shift during the game.

Let’s check out the concept first:

With this concept, we need to create a variable to storage the boost up speed.

Make this SerializeField we could adjust it later on.

Then add a statement check inside Update() to boost up our player.

Then we can play our game and check the result.

It’s not quite obvious but you will feel the different in your game.

--

--

S.J. Jason Liu

A passionate gamer whose goal is to work in video game development.