Collectable System not Updated the UI Correctly
Author: Ethan Ortega
Problem: The UI that would pop up on the top right corner of the screen to alert the player what the number of collectibles they have gathered. Each time you would pick up a collectible it would be added to an array of collectibles where each one had its own unique id. When the UI would appear, for each collectible it would say you have collected collectible zero meaning the id was being read wrong. One of the reasons was that I was destroying the actor once you interacted and claimed a collectible. The other reason was I was adding each collectible to an array that was specific to one collectible so when the collectible actor was destroyed the array and information with it was lost.
Solution: To fix the issue I started by creating an array of collectibles in the game mode blueprint so that not only can I access the information ad not lose it, but the information can be accessed by the save system. Then, I went and changed what would happen to the collectibles actor after the user interacts with it. Instead of destroying the actor after the user interaction, I turned off the actor's mesh and collision to prevent the actor from colliding and seeing an object that was already collected. with these changes that were made the UI began to update properly giving the player the correct feedback.
Shutdown
Status | Released |
Authors | TheSenate2002, ekicks0, Vrixic, CameronEuston, Boomishhe, mditcharo |
Genre | Puzzle, Adventure |
Tags | First-Person, Singleplayer |
Languages | English |
More posts
- The FinallyApr 27, 2023
- Post Mortem VideoApr 27, 2023
- Fixing issue with Hud not being validApr 27, 2023
- Finalization of GameplayApr 27, 2023
- Circuit Puzzle ChangesApr 27, 2023
- Touching Up SoundsApr 22, 2023
- Level MusicApr 22, 2023
- Getting people to play the gameApr 21, 2023
- Tuning the Lighting in Level 3Apr 21, 2023
- Static Mesh Mass ScaleApr 21, 2023
Leave a comment
Log in with itch.io to leave a comment.