Open in app

Sign In

Write

Sign In

Bradley Yachimowski
Bradley Yachimowski

6 Followers

Home

About

Jan 10, 2022

New Enemy Movement Behavior

One of the GameDevHQ 2D Game Course is to create a new Enemy Movement Behavior. In the current enemy movement behavior, we instantiate a new enemy prefab at a random location on the X-axis just above the game window and it moves in a straight line down the game window. …

Gamedevhq

2 min read

New Enemy Movement Behavior
New Enemy Movement Behavior
Gamedevhq

2 min read


Jan 10, 2022

C# Operators

One of the first programming surprises I can remember is when I wrote this line of code in C++ many years ago… if ( speedSetPoint = 10000) maxSpeedSet = true; Now the intention was to run the machine at a slow 5% speed or “speedSetPoint =500” since this was a…

Gamedevhq

2 min read

Gamedevhq

2 min read


Aug 2, 2021

How to Create a Homing Missile Part 1

Objective: Create a script to guide our missile to the nearest enemy. Welcome to the first part of this series. In this article, we are going to create some requirements for the functionality of our homing missile. So let's get started. The projectile needs to target the enemy and set…

Gamedevhq

1 min read

Gamedevhq

1 min read


Jul 18, 2021

How to Remove Color From Sprites Using GIMP 2.10

OBJECTIVE: Remove the color from an animated shield sprite sheet so we can assign a color from a C# script The first step is to copy the sprites to a new directory.

Gamedevhq

2 min read

How to Remove Color From Sprites Using GIMP 2.10
How to Remove Color From Sprites Using GIMP 2.10
Gamedevhq

2 min read


Jul 3, 2021

2D Spaceship Thrust Control in Unity Part Three

Objective: Write C# code to control the left and right side thruster animations. In part two of this series, we added thruster animations to our spaceship, the main thruster on the rear of the spaceship, and two side thrusters. The main thruster on the rear of the spaceship is always…

Gamedevhq

2 min read

2D Spaceship Thrust Control in Unity Part Three
2D Spaceship Thrust Control in Unity Part Three
Gamedevhq

2 min read


Jun 20, 2021

2D Spaceship Thrust Control in Unity Part Two

Objective: Add thruster animations to our main engine and side thrusters for left and right movement. In part one we added some C# code to allow us to move our space up, down, left, and right. Now we need to add some animations to provide the thruster visual effects. Next…

Gamedevhq

3 min read

2D Spaceship Thrust Control in Unity Part Two
2D Spaceship Thrust Control in Unity Part Two
Gamedevhq

3 min read


Jun 20, 2021

Moving the Player at a Faster Speed While the Left Shift Key is Pressed

Objective: Increase “Player Speed when the “Left Shift” key is held down. To make this magic is the use of the “Input.GetKey” function call. If we use the “Input.GetKeyDown” we only get a TRUE condition for a very brief moment after the key is pressed. “Input.GetKey” stays TRUE as long as we hold the key down. While holding down the “Left Shift” key we change the value of “_speed” from 4 to 8.

1 min read

Moving the Player at a Faster Speed While the Left Shift Key is Pressed
Moving the Player at a Faster Speed While the Left Shift Key is Pressed

1 min read


Jun 18, 2021

2D Spaceship Thrust Control in Unity Part One

Objective: Add movement to our spaceship or what we will refer to as our “Player” game object.

Gamedevhq

2 min read

2D Spaceship Thrust Control in Unity Part One
2D Spaceship Thrust Control in Unity Part One
Gamedevhq

2 min read


Jun 12, 2021

The Escape Button is a Feature

Objective: Provide functionality to quit a Unity application using the “Escape” (Esc) key. This is a simple task to complete thanks to the “Application.Quit( )” function. Place the above code in a “void Update( )” function body as shown below and you are finished.

Gamedevhq

1 min read

Gamedevhq

1 min read


Jun 12, 2021

How to Format Your Unity Games for the Web

Sharing an early version of your game on the web can be a quick way to get feedback from family and friends. The process of creating a “Web GL” build will allow you to do just that.

Gamedevhq

3 min read

How to Format Your Unity Games for the Web
How to Format Your Unity Games for the Web
Gamedevhq

3 min read

Bradley Yachimowski

Bradley Yachimowski

6 Followers

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams