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.