# Keeping variables from a different frame

**URL:** <https://forum.kirupa.com/t/keeping-variables-from-a-different-frame/251194>\
**Category:** programming\
**Created:** [February 6, 2008, 6:00am UTC](https://forum.kirupa.com/t/keeping-variables-from-a-different-frame/251194 "2008-02-06T06:00:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darth\_Turtle](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@Darth\_Turtle](https://forum.kirupa.com/u/Darth_Turtle)\
**Post date:** [February 6, 2008, 6:00am UTC](https://forum.kirupa.com/t/keeping-variables-from-a-different-frame/251194/1 "2008-02-06T06:00:20Z")

</div>

How do you keep a variable from a different frame?  
in a game that i am trying to make, every level is a different frame. And i want to keep the main characters health the same is it was from the last frame. For example in frame 1 the main character loses some health. I want to make it so that the main characters health stays the same in the next frame.
