Journal 150 — Unity Project Development, 2.5D Shooter

Objective: To add final boss different movement patterns and update UI Text

In the previous article, I updated some of the player movements to show tilt and speed thrusters. In this article, I will add two more waypoint patterns on the final boss for when it takes damage. I will also experiment with the UI text and change the style.

UI Text Updates

Originally, I was using the legacy UI Text game objects, but I decided to experiment with Text Mesh Pro game objects.

In the UI Manager script, I had to add the TMPro namespace and change the Text variables to TextMeshProUGUI.

Here are the updated results.

Final Boss Attack Patterns

I copied the previously created waypoints and gave them new names and colors. I also gave them new tags so that I can find them and assign them through the Game Manager.

Here’s the basic script for drawing waypoints.

In the Game Manager, I made two new properties to get and set the new waypoints. For reference, here is the original assigned waypoints.

And here are the added waypoints.

Now, in the Final Boss script, I updated the OnTriggerEnter function to assign the new sets of waypoints. I experimented with this a few ways and found a counter to count one event to change the waypoints caused no errors.

For the two functions to switch waypoints, I wanted to accomplish a few things:

  • Assign a speed up factor and shoot faster to the movement and update method
  • Clear the existing waypoints
  • Reset the wayPointIndex to 0 (first position)
  • Reset the waypointsFinder in the GameManager
  • Assign the new waypoints
  • Move the game object to the new set of waypoints

Now, let’s see the results.

I can investigate a smooth transition to the next set of waypoints, but the behavior works!

Thank you for your time!

I have a few more planned updates:

  • Add another player weapon
  • Add a checkpoint save after the mid-level boss
  • Modify the power ups so they drop randomly
  • Add some brief animations at the start and at the mid-level and final boss stages




An Engineering Manager consultant who is seeking additional skills using Unity 3D for game and application development.

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

Recommended from Medium

Mobile application — Hybrid, Progressive or Native?

Think like a product manager

Journal 50 — Lighting Options and Light Probes in Unity

Journal 51 — Create a Transparent Window Effect in Unity

Industry Use Cases of Jenkins

How to change your Desktop Environment in Linux

Foundation of STORM

XIB vs Storyboard vs Creating views programatically

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
Chris Nielsen

Chris Nielsen

An Engineering Manager consultant who is seeking additional skills using Unity 3D for game and application development.

More from Medium

Journal 142 — Unity Project Development, 2.5D Shooter

Making a RTS game #48: Various fixes, improvements and clean-ups (Unity/C#)

A Series On Creating Immersive Audio in Unity with Custom Wwise Scripts

Journal 149 — Unity Project Development, 2.5D Shooter