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
Everynone
(Everynone)
November 11, 2024, 12:34pm
22
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?
Everynone
(Everynone)
November 11, 2024, 12:36pm
24
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
Everynone
(Everynone)
November 11, 2024, 12:37pm
26
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 ?
Everynone
(Everynone)
November 11, 2024, 12:38pm
28
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
Everynone
(Everynone)
November 11, 2024, 12:47pm
30
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
Everynone
(Everynone)
November 11, 2024, 12:53pm
32
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?
Everynone
(Everynone)
November 11, 2024, 12:57pm
34
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