# Random movement prob

**URL:** <https://forum.kirupa.com/t/random-movement-prob/10346>\
**Category:** Uncategorized\
**Created:** [December 30, 2002, 2:18am UTC](https://forum.kirupa.com/t/random-movement-prob/10346 "2002-12-30T02:18:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sk8erboi\_Q8](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@sk8erboi\_Q8](https://forum.kirupa.com/u/sk8erboi_Q8)\
**Post date:** [December 30, 2002, 2:18am UTC](https://forum.kirupa.com/t/random-movement-prob/10346/1 "2002-12-30T02:18:38Z")

</div>

how can i increase speed of the movement of the movie clip of the tutorial in this site about “random movement (Motion)…”  
and also is there a way that i can stop the movie clip from randomly moving after a while and make it stay on a certain point that i provide (x , y)… thank you…  
any help at all will be appreciated 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 30, 2002, 2:55am UTC](https://forum.kirupa.com/t/random-movement-prob/10346/2 "2002-12-30T02:55:39Z")

</div>

you mean on this tutorial?

[http://www.kirupa.com/developer/mx/random\_motionMX.asp](http://www.kirupa.com/developer/mx/random_motionMX.asp)

i think you just change the number a bit where it says

this.speed = Math.random()\*4+2;

so i’m guessing jsut chnange the 4 or 2…?!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 30, 2002, 3:00am UTC](https://forum.kirupa.com/t/random-movement-prob/10346/3 "2002-12-30T03:00:24Z")

</div>

yeah, that tutorial 🙂  
actually i found out how to make it faster 😛 i just both numbers…

this.speed = Math.random()\*24+12;

and now its much faster 🙂  
only now i’d like to know how i can make it stop at a certain point after like 5 randomly chosen places…if thats even possible ofcourse 😏

thanks alot for u’r reply though 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 30, 2002, 3:11am UTC](https://forum.kirupa.com/t/random-movement-prob/10346/4 "2002-12-30T03:11:09Z")

</div>

i dont need the help anymore, thank you all 🙂
