Implementing save system with resources - how to stop health from replenishing

Godot Version

Godot 4.3

Question

I haven't implemented a player death yet. When player health hits zero, it restores it automatically. That's not what I'm referring to here. I want to save the game when the player is at 1 or 2 health and have that be his health when I load it back up. When I load it now, the new position saves, but his health is back to 3. I've trying to tinker with it, and I think the issue is probably in the ready function.

Video with code here: https://www.reddit.com/r/godot/comments/1fmdrqn/implementing_save_system_with_resources_how_to/

You deleted your reddit post. Did you fix the issue? If not, can you share your scene layout and code?

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