'Is Not Valid' but it seems to work?

okay remaining issue for the night is that the scoreboard doesn’t update when i have quit and started the game again, it resets to 0

COIN

GAME MODE

LEADERBOARD

LEVEL BP

Nowhere in the screenshots above do you show how you load the game and update the UI.


Also, why Get All Widget of Class?

this one updates the UI but I guess i’m not loading anywhere, where should i call that?

In the same BP that handles saves. I’d assume you want to load it on Begin Play, since we quit the game.

is there a different way to do it? i’m not aware

What do you mean?

Reference the widget. The same way you reference everything else.

do i call the load function from the game mode or the level?

if the game mode should i do it on this ?

As mentioned above, avoid using the Level BP for anything that is not unique to this very level.

this should be okay?

i tried that but the scoreboard still isn’t updating :frowning:

1 Like

You load the game, you still need to read the coins value and send it to the UI.

not sure how to load the value, do i cast to leaderboard somehow?

this doesn’t work either

You did not set the save game variable after loading the game. You do it when you create a new save game, you need to do the same when you load the data.

so am i creating another variable from this cast to playersavegame?

That’s up to you, you can use the same variable. Also:

This is your UI update so you’re calling the wrong thing anyway. Unless those two are somehow connected. Note that I don’t follow what you have - to me it’s utter chaos. Unnecessarily complicated.

this still isn’t working after changing it

GAMEMODE

SCOREBOARD