GameDev : how create the Triple Shot (Part I)!

This Game is a 2D shooter.
To make this better, we need more type of “fire”!
So, why not create a Triple Shot?!

Triple Shot is a classic in this type of game.
How can we made it?

First, to shoot Triple Shot, we have to instantiate three Laser and not only one.
Said that, we create it.
We take Laser prefab, drag it in the Scene, duplicate it and set the position of every Laser.

Drag the Laser in Scene

With Laser highlighted, we press CTRL+D to duplicate it

Now we have 3 Laser

And we position them in the right place

This is my final result

Now, we have create Triple Shot, how can we “shoot it”?

We can Instantiate three times every time, but is not the best thing to do.
Is better create a CONTAINER for Triple Shot, and make every Laser be a CHILD of that object.

We create an Empty GameObject and call it Triple shot

Since we need to instantiate from our Ship, I set the empty game Object exactly above our ship, and then I added the Lasers as children

Then we make Triple Shot a Prefab

My final result is something like this

The empty gameObject is over our Ship

In the next part we create the logic in code to fire Triple Shot!

Always in love with programming, even if late (I'm already 39 years old) I decided to follow my dream! We will see how far my passion will take me!