# Collision problems! Please help!

**URL:** <https://forum.kirupa.com/t/collision-problems-please-help/191231>\
**Category:** flash\
**Created:** [June 18, 2006, 10:56pm UTC](https://forum.kirupa.com/t/collision-problems-please-help/191231 "2006-06-18T22:56:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detective223](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@Detective223](https://forum.kirupa.com/u/Detective223)\
**Post date:** [June 18, 2006, 10:56pm UTC](https://forum.kirupa.com/t/collision-problems-please-help/191231/1 "2006-06-18T22:56:22Z")

</div>

Well, I have another problem…

I am creating a small car game (Maze car game), and I have a SERIOUS problem, and I really need it answered quick PLEASE!

I am trying to get boundaries to work, but there are several problems:

My script for collision:

```auto

 if (!_root.whatever.hitTest(_x+x, _y+y, true)) {
 _x += x;
 _y += y;
 } else {
 speed *= 0;
 }

```

Problems:

It doesn’t work right.

It only collides with the MIDDLE of the car.

The car can cut through it at slow speeds.

Now, it doesn’t even work, the car drives right through it, and occasionally stops.

Also, how can I have the game change frames when you hit things, like hit a green area, and get teleported to the second maze?

I REALLY need this to be fixed VERY soon, so can anyone PLEASE help?
