# Objects re-spawning when coming back to frame. how do I fix this?

**URL:** https://forum.kirupa.com/t/objects-re-spawning-when-coming-back-to-frame-how-do-i-fix-this/316424
**Category:** Uncategorized
**Created:** [November 21, 2010, 2:49am UTC](https://forum.kirupa.com/t/objects-re-spawning-when-coming-back-to-frame-how-do-i-fix-this/316424 "2010-11-21T02:49:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mow966](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@mow966](https://forum.kirupa.com/u/mow966)
#### Post date: [November 21, 2010, 2:49am UTC](https://forum.kirupa.com/t/objects-re-spawning-when-coming-back-to-frame-how-do-i-fix-this/316424/1 "2010-11-21T02:49:09Z")

</div>

I’ve had this problem for a while with alot of my games i’m making. I am kind of a noob. what happens is I have a key, a door and a health bar and an enemy. the enemy takes off some of my health…I pick up the key and it disapears and is added to my inventory. I then us it to open door then my character can move off the screen to the next frame where there is a castle., but my health bar is full again. when I go back into the previous frame the key is back, the door is closed and I cant pass through it again until I pick up the key.

the only way I have found around this is to make sure the objects are in every frame but that only solves a few problems. one of the problems is my health bar always re-plenishes no matter what when going from frame to frame. and I still cant pass thru the door even though its open.

can somebody help?  
thanks  
Mike
