Weapon Spawner & Dialogue
Coding & Game Design (Fall 2024) » Devlog
In class, I learned a lot about Data Tables, Structures, and Enumerations. It's a handy and easily accessible tool that holds data such as variables. I found it pretty easy to set up, but the programming aspect was a bit tricky. For this assignment, I had to make a weapon spawner with randomized damage values based on a "base damage" variable in the struct. I implemented static meshes of weapons (even though they're not actually weapons). I wanted to see if it would work with my code, and it did.
BP_WeaponSpawner (small yellow platform):
BP_Weapon (the item spawning on platform):
This was the result. The static meshes spawned as I told it to:
The second part of this assignment was the Dialogue System. I needed a Structure with text, sound wave, emotion, and speaker. I also need a Data Table showing at least 10 lines of text with speaker included and at least 3 emotions set. For my assignment, I decided to grab a snippet from the show iCarly.
Here is the result:
Data Tables and Structures are really useful for implementing dialogue since there are tons of lines to keep track of. They are also useful to hold information on variables and such. Later on in the semester I use this method to implement Dialogue into another project in my Game Design 3 class.
Get Coding & Game Design (Fall 2024)
Coding & Game Design (Fall 2024)
A mini portfolio.
Status | In development |
Author | Godfright |
More posts
- Behavior Trees25 days ago
- Bullet Drop25 days ago
- Saving and Loading25 days ago