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.

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Secure a FastAPI Server with Asgardeo

Create a Repeating Task Using Coroutine

Leetcode[141] Linked List Cycle

Automate desktop applications & convert in to windows Executable

A Comparison of SRE Workflow Tools

How to Do Web Scraping Using Python

Linear Programming: Introduction

How to set up VS code with Github

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
S.J. Jason Liu

S.J. Jason Liu

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

More from Medium

Creating Elevator in Unity — Part 3: Moving Elevator.

How I used scriptable objects to build a powerup system

HitBox Attack System in Unity

Day 105: Working with Animation Events in Unity