Pause Button Editing Health Bar? (Beginner!)

Wilko
Wed, 16 Aug 2023 18:02:14 +0000
Rendering

Hello!
I’m having some issues with having my pause button and health widget work separately?

I have gameplay UI onscreen during gameplay. This game will ideally be an Android mobile game so the pause button is a widget in the top right, when this is clicked the game would ideally pause then have a ‘continue’ button to resume. The game has a health bar in the middle of the screen and, currently, I have the gameplay UI widget displaying on ‘Event Begin Play’ and the Health bar update happening on ‘Event Tick’:

This is the logic for displaying the Gameplay Widget:

And this is the logic for updating the health bar:

Although, there is a strange issue where, after pausing, the health bar will look half empty (it actually isn’t, the player still has maximum health and can take the same amount of damage)?

https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/8/ed8d759e2d5118fc0841e3731263c05658e0b148.mp4

As a beginner I’m really stumpted about why this is happening? I’ve played around with the blueprints and even followed 2 other pause menu tutorials but it doesn’t change it? (This is the pause logic I’m using in case it’s the problem):

(And this is the pause widget continue logic):

I tried having the UI Gameplay widget creation and the update health function both being on event tick, however this had very strange results, it made the pause menu constantly pressable even in the puase menu so it kept spawning them on top of each other?

https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/b/62b1833741459701b68e1c1377215e179a9995a8.mp4

(And for some reason in this video the health bar is also still broken?? )

I’d really appreciate any help/ advise about this issue if anyone has any ideas! Thanks so much for taking the time to read this!

4 posts - 3 participants