Skip to content

Simple 2D project developed in Unreal Engine 5.2 using PaperZD and Blueprints.

Notifications You must be signed in to change notification settings

hnqca/captain2D-platformer-UE5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation



Captain2D Platformer

Simple 2D project developed in Unreal Engine 5.2 using PaperZD and Blueprints.

ObjectiveTechnologiesWidgetsDownloadCredits

screenshot

Notice: This is my first project in Unreal Engine. I intend to improve it as I learn to use the engine.
You are more than welcome to help me enhance this project, especially if you also want to venture into the world of 2D games in Unreal Engine

Objective:

Your goal is to find all the keys scattered throughout the map to unlock the door and advance to the next level. Each level will have its own difficulty and a different number of keys to be collected.

Technologies:


Widgets

Image Description
lifeBar Player's life based on health bar
countDeath Number of times the player has died
currentLevel Player's current level
amountKeys Collected keys / Total keys

Creating New Levels

You can find all the levels in the "Maps" directory.

To create a new level, simply create a new map and follow the numerical sequence of the existing levels. For example, name them as "LEVEL_6," "LEVEL_7," and so on. This will ensure that the player is automatically teleported to the corresponding next level.

Remember that it's important for the level you create to have a name starting with "LEVEL_" (all in uppercase) followed by the level number.

createLevels


Traps (Saw)

trap_saw_1

  • 1. Place the trap anywhere in the level.
  • 2. Click on it and open the "Details" window.
  • 3. In "Details", find the "Default" option and customize it according to your preference.

trap_saw_2

Variable Type Description
Loop? Boolean If true, the trap will return to its initial position when it reaches the end of the path and vice versa.
Spline Movement Duration Float Set the time, in seconds, that the trap will take to complete its trajectory.
Player Damage Value Float Damage the player will take upon touching the trap.

Setting the number of keys 🔑

To define the quantity of keys the player will need to collect to open the door is quite simple. Just place the keys somewhere in the level (it can be as many keys as you want). When you start the level, the count of keys created in the level will be automatically done through the "BP_DoorLevel" class.


PaperZD

The "PaperZD" plugin was used to perform player animations.

paperZD


Lever (Interaction)

In level 3, you will come across a lever that can interact with the environment, opening a passage.

However, you can also use it to interact with one or several characters in the environment. This is completely customizable without the need to create a new class for each interaction.

To do this, go to the actor class you want the lever to interact with. Add the "leverInteract" tag.

leverInteract_1

Next, create a new function also named "leverInteract"

leverInteract_2

Inside this function, you can define what will happen when the lever is triggered.

leverInteract_3

Then, to link the lever to one or several specific actors, place the lever somewhere in the level and, in the detailed settings, look for "Actors interacting with the Lever." Add the classes that will be called when someone interacts with this specific lever.

leverInteract_4


Download

Download this project and open it by clicking on the "captain2D.uproject" file.

download


Credits:

Pixel Frog's art, which is freely available on itch.io, was used in the creation of this project.

Itch.io Pixel Frog
Pixel Frog
Assets

About

Simple 2D project developed in Unreal Engine 5.2 using PaperZD and Blueprints.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published