top of page

UE 5 Combat

ROLE

Programmer 

DESCRIPTION

This project is one I started to teach myself the ins and outs of Unreal Engine 5 and C++.

My focus is to create an action combat system using a combination of C++ and Blueprints.

This is a learning project I'm working on to improve my skills in this area during my free time.

YEAR

2025

GENRE

PLATFORM

PC

Developed with

Unreal Engine 5 , Blueprint , C++

Stats and hit detection

DESCRIPTION

Using enums, I ensure that both the player and the boss have certain stats we can reference through interfaces and events.

From there, I linked animations to create a combo attack and traced a hitbox around the sword to check for collisions with the enemy.

When a collision occurs, I reference the enemy’s HP stat and decrease it using our power stat.

Lock On Trace

DESCRIPTION

The lock-on system uses a trace method to detect an enemy. If an enemy is detected, the player's behavior is adjusted to lock onto the target, and the camera behavior is changed to focus on it.

Fireball

DESCRIPTION

Using spawning in C++ and detecting the player's position when in range, I created a projectile for the enemy to fire at the player.

The enemy knows when to fire through an animation notification and uses the GetWorld function to access the necessary information.

I also use the animation notification system to determine when the enemy should rotate to improve the feel of the attack. The system calculates the locations and rotations of both the enemy and the player to properly set the enemy’s rotation at the moment of firing.

And of course, when the fireball collides with the player, it deals damage, changes its particle effect, and then destroys itself.

bottom of page