# Movement on random time

**URL:** <https://forum.kirupa.com/t/movement-on-random-time/170914>\
**Category:** flash\
**Created:** [November 30, 2005, 1:32pm UTC](https://forum.kirupa.com/t/movement-on-random-time/170914 "2005-11-30T13:32:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LippuZz](https://avatars.discourse-cdn.com/v4/letter/l/3d9bf3/32.png) [@LippuZz](https://forum.kirupa.com/u/LippuZz)\
**Post date:** [November 30, 2005, 1:32pm UTC](https://forum.kirupa.com/t/movement-on-random-time/170914/1 "2005-11-30T13:32:12Z")

</div>

Hi there,

i want to make a movement. An object has to come from behind an object and go back again. The interval between each time the object appears has to be random.  
i was trting to maken something with the setTimer() function, and a random. The random gives a var. This var i would use as time for the object appears in combination with the setTimer()  
Problem is that i can’t come up with a decent code that would work.

been a long time i used AS so i need somebody who can help me with this, simple, code. Where do i need to define the start vars, adn where do i define the random script.

greetz
