# Collsion detection / object avoidance HELP!

**URL:** <https://forum.kirupa.com/t/collsion-detection-object-avoidance-help/256266>\
**Category:** Uncategorized\
**Created:** [April 1, 2008, 2:33pm UTC](https://forum.kirupa.com/t/collsion-detection-object-avoidance-help/256266 "2008-04-01T14:33:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuk](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@samuk](https://forum.kirupa.com/u/samuk)\
**Post date:** [April 1, 2008, 2:33pm UTC](https://forum.kirupa.com/t/collsion-detection-object-avoidance-help/256266/1 "2008-04-01T14:33:16Z")

</div>

Hi, i have the following problem.

In my file i basically have a movie clip called bluecell. Now, when you press the ‘up key’, he moves to a new position.

My problem is that when he collides with other coloured cells i would like him to avoid them but still aim for his new position, so it dosent matter really wat his x position is, just as long as he gets to the y position but is not touching anyone.?

I have it set up, although the hit tests are tempermental (any advice about that is much appreciated), i just cant get it to change direction???

PLEEEEEEEEEEEEEEEEAAAAAAAAAAASSSSSSEEE Help!!!:d:
