Learn to code by making a 2D space shooter game.

Suleiman Abdullah
3 min readJan 16, 2022

Objective: Add Player Thruster and Player Damage visual.

The first step drag the first frame of the thruster and rename it to thruster then create animation for it.

In the second step, drag the first frame of the Player damage sprite rename it ad duplicate it then reposition to end the two wings.

Let's fix the cutout issue with our sprite, put sorting layer to the background, and order in layer to 1 to render it above the ship wings.

Select the first left engine sprite, and create the animation for it.

Next, select the next left engine add the animator component then choose the same controller used by the first engine to animate it.

The next step is to add logic to enable engine hurt when we got hit by enemy or laser so disable them, then create two-game object variables for the left engine and right engine inside the player script.

The Next step is to check if we have been hit to enable the first engine , and if we have been hit twice we enable the second engine(Left_Engine).

The last step drags the Object in the hierarchy to the field in the Player field.

See you in the next article.

--

--

Suleiman Abdullah

Self taught Unity Developer, who is passion about making games ,and he loves Math For Game Development