# hitTest, here we go again!

**URL:** https://forum.kirupa.com/t/hittest-here-we-go-again/158086
**Category:** programming
**Created:** [August 6, 2005, 10:32pm UTC](https://forum.kirupa.com/t/hittest-here-we-go-again/158086 "2005-08-06T22:32:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![danulf](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/danulf/32/555_2.png) [@danulf](https://forum.kirupa.com/u/danulf)
#### Post date: [August 6, 2005, 10:32pm UTC](https://forum.kirupa.com/t/hittest-here-we-go-again/158086/1 "2005-08-06T22:32:07Z")

</div>

so, I have been without flash for a long while, and to be honest, I don’t remember jack of it!

I have this:

```auto

if (ball.hitTest(bat1)) {
 **yspeed*=-1;**
 **yspeed+=.5;**
 **xspeed=(ball._x-bat1._x);**
}

```

I took this from a thing I made some time ago, and I can’t remember the meaning of the things in **bold**. But that’s not the thing…  
I want to write if (ball.\_x = bat1.\_x reverse ball.\_y and ball.\_x)  
But I don’t remember how or IF you can write that…

Hope you understand what I am saying…  
I better start re-learning…
