# Creating timing for movement

**URL:** <https://forum.kirupa.com/t/creating-timing-for-movement/280682>\
**Category:** Uncategorized\
**Created:** [January 30, 2009, 11:16am UTC](https://forum.kirupa.com/t/creating-timing-for-movement/280682 "2009-01-30T11:16:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gencoglu](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gencoglu](https://forum.kirupa.com/u/gencoglu)\
**Post date:** [January 30, 2009, 11:16am UTC](https://forum.kirupa.com/t/creating-timing-for-movement/280682/1 "2009-01-30T11:16:16Z")

</div>

hi,

what I am after is to make the object(hero) move to any direction randomly for 3000 millisecond and pause/delay for 2000 milliseconds and move again…  
// move any direction for 3000 ms  
//delay for 2000 ms  
//now move any other direction again…and so on…then I wiil use a hittest to create my simple game…but I can not figure out how to create start and pause functions…to get timing…  
any help ?  
thanks
