Reset button

How can I reset my coin widget (0) back to 0 after I press PLAY and RESET button. At the moment coin widget goes trough Game Instance so it stays the same all the time even when I press PLAY or RESET button. What would I add to OPEN LEVEL. ![alt text][1]

In the OnClicked event for your button, get a reference to your Game Instance and set the value to 0.

What value is that? Where would I see that?

The variable that you stated the coin widget gets from the game instance. Set its value.

Clean Cut don’t let me stranded. Game instance is really confusing to me.
Would I set these up in PLAY button pressed. Get coin widget doesn’t show up If I type get coin widget. It does in my game mode.
Could you quickly tell me what do I need to call and how to connected properly other wise I’m gonna sit at the computer whole week…Lol. Thanks for the answers though!!!

Here is actual text node from Coin widget. There are to text widgets one for Highest LV completed and another one for Coins Collected. How do I send message to reset it when I open level on button pressed. Also I can only Cast to game instance and can’t GET game instance inside the button pressed blueprint.

I think perhaps you have not gotten as far as I thought.

On your coin widget, have you used the “bind” key to bind the value of the coin to a function? Did you set the function up to get a value from the game instance? That is what I thought you said you had already done in your first post.

Thanks Clean Cut. Yes it’s all working. If you collect coin it will added to Text (01) in game menu. Also it goes trough Game Instance as Coin Bank. So when player dies the Coin Count remains in my Main Menu Widget and when I press play again to begin new game after i died the score (01) is still there. I just don’t know or what to connect to my PLAY button to begin fresh at (00) coins collected. I connect level reset but nothing happens. Clean Cut get me out of these mass. HELP!!!

Can you show us what your functions “GetText0” and “GetText1” look like?

Here is the Coin Widget Bind blueprint.

And here is the New Game Instance

Okay, so in your “OnClicked (Button_55)” do the “Variables > Default > Get Game Instance”, then drag off of that and do “Set Coin Bank” and set it to 0.

Here is my PLAY button blueprint. These is where I think the reset function should be on PLAY button. I put in Reset Level but that’s not working. Only Opens up a level with Coin Widget un reset. Where exactly do I need to put the values you mention. Game Instance, Coin widget, Coin_BP, Game Mode inside the Coin Widget (00) Bind? The Coin Widget I think.

What you suggested should work. Maybe it’s the Open Level node.

I tried but Text Values still stay from previous levels. Still not resting.
How come it’s not setting values to 0? Strange. Inside the level blue print I’m calling Coin Widget on Level begin but shouldn’t the Set Coin Bank (0) filter it back to 0. Like you suggested.

The game instance is persistent to all maps, the game mode is only persistent to the current level, so if you switch levels all variables in the game mode will go back to default

Well my Coin Bank is in the Game Instance and if I called in my Game mode it shows in every level with the highest Coin Count. If you don’t Create Widget --Add to View Port inside Game mode then it will not show up in every level and you have to to call your widgets inside ever level. So Game Mode puts in every level Automatically. That’s why I call Coin Widget inside my Game Mode. Actually just now I tried taking it out of Game mode and called them in first few level individually but that didn’t do nothing.

Also I tried connecting Coin Widget I got two On Level Begin but still not Resetting on PLAY button pressed


What do you mean by switching levels?

What was needed at the beginning was Cast to game instance and of course open level at the end but you were right all along!! ----THANK YOU CLEAN CUT! YOUR THE MAN!! -----