# Invincible while hiding

**URL:** <https://forum.kirupa.com/t/invincible-while-hiding/80184>\
**Category:** Uncategorized\
**Created:** [February 20, 2005, 3:55am UTC](https://forum.kirupa.com/t/invincible-while-hiding/80184 "2005-02-20T03:55:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fayte](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@Fayte](https://forum.kirupa.com/u/Fayte)\
**Post date:** [February 20, 2005, 3:55am UTC](https://forum.kirupa.com/t/invincible-while-hiding/80184/1 "2005-02-20T03:55:00Z")

</div>

i have a problem here …

the hero hides with \<down\> key and attacks with \<up\> key but how do i script it such that the hero doesnt receive hits from the enemy while hiding?

heres the .fla  
[http://www.geocities.com/cloudstrife\_infini/TrueEnemy.fla](http://www.geocities.com/cloudstrife_infini/TrueEnemy.fla)

any help would be appreciated, thanks!
