how to make collectables not reset after death?

i’m still getting used to UE and i was working on a bigger project and was like nah i have to do something small first so i chose to make a platformer with collectables and stuff, i figured out how to make the respawn “by figure out i mean YT” and collectables were me actually finding out… but everytime i die the amount of collected ducks reset!, and tbh i have no idea how to stop that from happening!

this is the collectable blueprint

This is how character dies

This is how it respawns

And this is the checkpoint

And this is the amount on the UI

Thanks for helping!

Hey there @Grespy1! If you already need some form of save system for these collectables, you can just create a saving and loading system that you can use to keep this data and either use it to populate the ducks or destroy those you’d already gotten when the level loads. I would recommend keeping that loaded data in your GameInstance since it keeps data for the entire play session. Alternatively if you just want to do this per game session, you can do the same inside of an GameInstance alone instead.

2 Likes

Hey @Grespy1!

To add just a bit more to @SupportiveEntity’s explanation, check out this non-Epic affiliated tutorial that goes over the basics and you can customize it as they described above:

I hope this is the solution you need!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.