# Help please reply

**URL:** <https://forum.kirupa.com/t/help-please-reply/310861>\
**Category:** Uncategorized\
**Created:** [June 21, 2010, 3:46pm UTC](https://forum.kirupa.com/t/help-please-reply/310861 "2010-06-21T15:46:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![omexibricko](https://avatars.discourse-cdn.com/v4/letter/o/b5e925/32.png) [@omexibricko](https://forum.kirupa.com/u/omexibricko)\
**Post date:** [June 21, 2010, 3:46pm UTC](https://forum.kirupa.com/t/help-please-reply/310861/1 "2010-06-21T15:46:48Z")

</div>

so i am making a game where you must reach a key to advance but you are guarded by moving walls. im trying to make it so that when you hit a wall then you are reset to the coordinates x-25 y-350  
this is some of the code i put in my char

if(this.hitTest(\_root.wall))  
this.\_y=350  
if(this.hitTest(\_root.wall))  
this.\_x=25

this only resets it to the y coordinate and not the x coordinate. i attached a swf file so you know what i mean.
