# My platform game(need help)!

**URL:** https://forum.kirupa.com/t/my-platform-game-need-help/161875
**Category:** Uncategorized
**Created:** [September 7, 2005, 8:48pm UTC](https://forum.kirupa.com/t/my-platform-game-need-help/161875 "2005-09-07T20:48:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kickapk](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@kickapk](https://forum.kirupa.com/u/kickapk)
#### Post date: [September 7, 2005, 8:48pm UTC](https://forum.kirupa.com/t/my-platform-game-need-help/161875/1 "2005-09-07T20:48:07Z")

</div>

ok im making a platform game and i want it so that when the health reaches 0 (health is a dynamic textbox starting at 100) the main timeline goes to a frame called “LOSE”

here is the code i have the the character u play with.

onClipEvent (enterFrame) {  
if (this.hitTest(\_root.enemy)) {  
\_root.health -= 1;  
}  
}

thx in advance(please help if you know how to do this and u r reading this)!!!
