Hold Shift to Enable Thruster- Game Dev Series 32

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.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store