I have a game where the user picks a character to play as, then traverses the levels for that character. There are two indicators I keep in each level: health and time left. However, I want to save a character’s score and time remaining between levels without using the “keep between levels” option on the sprite.
A screenshot of the time progress bar behavior, which is currently set to “keep between levels,” is attached here.
To make the keep between levels you could use globals. Connect the health and score numbers each to a seperate global and connect them into the input of “Set”. Then make it so that with a once it is connect to two globals for both Health and Score and connect it to the Input of “Get”.
Btw if you need help with other games it’s suggested you send a link to your game so people have an easier time looking at it.
For the health when 0 or time bar you could make the output to the number connect to a filter which should be set to “Less Than Or Equal To 0” then through the pass output connect it to a game restart behavior or the level behavior and set it to reset current level.
This is what I have, but it’s not resetting the player’s “energy points” back to 10 on a game restart. The actual saved value is whatever the score was before the level restart.