Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Final Touches and Packaging | Packaging for Windows
Unreal Engine FPS Game
course content

Kursinnhold

Unreal Engine FPS Game

Unreal Engine FPS Game

1. Unreal Engine Introduction
2. The Character Blueprint
3. Enemy Blueprints
4. Level Design and Aesthetics
5. User Interface and Sound Effects
6. Gameplay Logic
7. Packaging for Windows

book
Final Touches and Packaging

Before moving on to the packaging, make sure you set the EnemyCount variable in the GameMode back to 0. You should also open the EnemyChar blueprint, hide the arrow, and double-check that the enemy mesh is the one you want.

If you'd like, you can create a new blueprint for health items. To do this, make a blueprint based on the Actor Class, then add a sphere collision and a static mesh to the components. Use the sphere collision’s On Begin Overlap event, get your player pawn, and cast it to FirstPersonCharacter. Then, check if the player's health is full. If it’s not, add the desired number of points to the PlayerHealth variable and destroy the actor.

Next, go to your BP_EnemyChar and create a new function that spawns the health item blueprint. It's a good idea to include some probability logic, similar to what's shown in the video, since having a health item drop every time an enemy is defeated can make the game less challenging. Feel free to experiment to find what works best for your game, but a 20% drop chance is a reasonable starting point.

Furthermore, if you want to, you may add some particle effects to your projectiles. This is easily done by adding a niagara or cascade particle effect as a child component to the sphere mesh of your projectile. There are many particle effects on the Marketplace so take a look there if you want to and see what suits your needs.

Lastly, in the FirstPersonCharacter blueprint, find where you set up the pause menu, right click beside the P input and look for Escape. Make sure that it is executable when paused, and connect Pressed to the branch that checks if the game is paused.

Then from Platforms>Windows choose Package Project. Choose a destination and once the packaging is done, you should be able to run your game using the .exe file!

If you're encountering errors in Unreal Engine 5 (UE5), especially related to SDKs or project packaging, here are some of the most common troubleshooting tips:

Unreal Engine relies heavily on the correct versions of the Windows SDK or other toolchains. If any of these are missing, misconfigured, or out of sync, you may encounter build or packaging errors.

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 7. Kapittel 2
Vi beklager at noe gikk galt. Hva skjedde?
some-alt