# Non-bouncing-off-of-wall hitTest question

**URL:** <https://forum.kirupa.com/t/non-bouncing-off-of-wall-hittest-question/145588>\
**Category:** Uncategorized\
**Created:** [April 23, 2005, 10:19pm UTC](https://forum.kirupa.com/t/non-bouncing-off-of-wall-hittest-question/145588 "2005-04-23T22:19:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ar1](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@ar1](https://forum.kirupa.com/u/ar1)\
**Post date:** [April 23, 2005, 10:19pm UTC](https://forum.kirupa.com/t/non-bouncing-off-of-wall-hittest-question/145588/1 "2005-04-23T22:19:02Z")

</div>

I found out how to use hitTests, but I’m having a problem. How do I make a hitTest where the character doesn’t bounce off of the wall when you ‘hit’ it? I don’t understand what you have to put in it, so, could someone help out?

This is a sample of the hitTest that I’m using:

```auto
 

	if (this.hitTest(_root.top_wall)) {
		_y+= my_speed
	}

```

How could I fix that?  
If you want to see what it does, then go [size=4][HERE](http://es.voetsjoeba.com/yoshi.swf)[/size] for an example.

Thanks[color=DeepSkyBlue]

!GB! - PEACE -  
[/color]
