How do I save coins?






My first to pictures are located in the third person character. My next picture is the bottles(aka coin) bp. The last two is the playersave bottles and the the last one is the widget. My coins/bottles are saving what did I do wrong.

I’d look into this first:

You destroy the actor and then do things in it. May not work as intended.


Also, wouldn’t it be easier to just, you know, take screenshots?

Various things :wink:

One being, you can’t run anything after ‘destroy actor’, because the actor is not there any more to run the code.

Here’s a save game 101:

Also, we need to see what’s here

May I also recommend:

https://app.prntscr.com/en/index.html

Also this could use improving, there’s no need to cast and update text every frame all the time.

You created a widget, keep its reference and use it to update the text block only when the player interacts with the bottle.