How do I make it so that the health bar stays at one value when you enter the next level, but resets when you die and respawn into Planet Level 2? I’d also like to do this same thing for the ammo and oxygen values. I tried replacing the number variables in the oxygen bar code with global variables, but it still shows up as full once you go to the Crystal level. What can I do instead?
https://flowlab.io/game/edit/3001751
EDIT: No longer a problem. I ended up putting the boss into the end of planet level 2.
Global varibles and save values, now thats cool!
Where exactly would I put this in my code? Would I have to attach the once, save, and input blocks into each number in the health/ammo/oxygen code?
yo who TF and why TF was my post flagged?
ohh
(what I meant by that is put it in the player)
Yeah I figured as much. I put what you suggested in the “health” bundle of the player, but now it has to connect to something to save. I can’t even test out my project because it keeps moving the camera to one side rapidly.
I removed the save values, which fixed the issue. Is there a way that I can fix the problem addressed specifically in my game?