Open in app
Home
Notifications
Lists
Stories

Write
Chance Cornell
Chance Cornell

Home

Aug 26, 2021

Creating the boss encounters.

Today, we will be creating our boss encounters that the player will face throughout the game. This was the final thing left to add to the game before build and release. I decided I wanted the game to continue until the player dies and kind of do a high score…

Unity 2 D

3 min read

Creating the boss encounters.
Creating the boss encounters.

Aug 25, 2021

Creating a diagonal moving enemy.

Today we’re getting closer to wrapping up the Space Shooter game. In this article, we create a new enemy type that will move diagonally and shoot a triple shot laser. You will need to create a new enemy prefab as well as a new prefab of the triple shot. You…

Unity 2 D

3 min read

Creating a diagonal moving enemy.
Creating a diagonal moving enemy.

Aug 24, 2021

Giving the player a homing missile

Today, we will be creating a homing missile for the player to use against the enemies. First, find a sprite that you want to use for the missile, then add a BoxCollider2D on it and set it as a trigger. Then add a Rigidbody2d component and set the gravity scale…

Unity 2 D

3 min read

Giving the player
Giving the player

Aug 23, 2021

Creating a ‘Smart’ Enemy.

In today’s article, we create an enemy that can shoot backward at the player if they get past them. I duplicated the base enemy and changed its appearance to look like there were guns on the tail of the ship. …

Unity 2 D

2 min read

Creating a ‘Smart’ Enemy.
Creating a ‘Smart’ Enemy.

Aug 22, 2021

Allowing the enemy to destroy powerups.

In today’s article, we will give the enemy the ability to shoot and destroy powerups. To start this, we will open our ‘Enemy’ script and create a couple of new variables.

Unity 2 D

2 min read

Allowing the enemy to destroy powerups.
Allowing the enemy to destroy powerups.

Allowing the enemy to destroy powerups.

In today’s article, we will give the enemy the ability to shoot and destroy powerups. To start this, we will open our ‘Enemy’ script and create a couple of new variables.

--

--


Aug 21, 2021

Giving the enemy a dodging chance.

In this article, we create an enemy type that can dodge shots from the player. To start we need to duplicate an enemy prefab and place it in the hierarchy. We will rename it as ‘Enemy_Dodge’. We will create an empty game object on it and call it ‘LaserDetector’. We…

Unity 2 D

2 min read

Giving the enemy a dodging chance.
Giving the enemy a dodging chance.

Aug 20, 2021

Oh No! The Enemy Have Shields!

In today's article, we will add a shield to an enemy at random. This system is quite simple but can cause a headache which I will explain at the end. First, in the ‘Enemy’ script, we will be adding some variables.

Unity 2 D

2 min read

Oh No! The Enemy Have Shields!
Oh No! The Enemy Have Shields!

Aug 19, 2021

Creating a spray shot.

In this article, we will be adding a new secondary fire powerup. I’m wanting to create a spray shot that will shoot three lasers. One laser will be shot forward, while two other lasers will be shot out diagonally from the left and right wings. Let’s get started. Let’s create…

Unity 2 D

3 min read

Creating a spray shot.
Creating a spray shot.

Aug 18, 2021

Weighted Enemy Spawn System

Today I add on to the spawn manager and balance out some enemies. The technique I used is exactly as I did when I balanced the power-up up spawn system. Here is the article for that which explains some things better. …

Unity 2 D

2 min read

Weighted Enemy Spawn System
Weighted Enemy Spawn System

Aug 17, 2021

Doing a little clean-up.

It’s been about a week since my last article. I went on vacation with my family and now I’m ready to wrap up this project. Today I’m fixing a couple of tiny bugs that were bothering me. The first was when the player collected the health pickup when they already…

Unity 2 D

4 min read

Doing a little clean up
Doing a little clean up
Chance Cornell

Chance Cornell

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable