# How to make random motion without objects overlapping during mvt

**URL:** https://forum.kirupa.com/t/how-to-make-random-motion-without-objects-overlapping-during-mvt/195033
**Category:** Uncategorized
**Created:** [July 27, 2006, 10:29pm UTC](https://forum.kirupa.com/t/how-to-make-random-motion-without-objects-overlapping-during-mvt/195033 "2006-07-27T22:29:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![renasci00](https://avatars.discourse-cdn.com/v4/letter/r/dfb087/32.png) [@renasci00](https://forum.kirupa.com/u/renasci00)
#### Post date: [July 27, 2006, 10:29pm UTC](https://forum.kirupa.com/t/how-to-make-random-motion-without-objects-overlapping-during-mvt/195033/1 "2006-07-27T22:29:42Z")

</div>

[FMX]

Hi, I’m trying to create a flash demo for my prof and we want green dots to move randomly across the screen without ever overlapping each other.

I saw the kirupa tutorial on random motion: [http://www.kirupa.com/developer/actionscript/random\_motion2.htm](http://www.kirupa.com/developer/actionscript/random_motion2.htm), which is really good. I’m wondering if I can add something to the code so that the dots won’t overlap, (as soon as one touch another they move away) as they move.

Thanks so much!

Jane
