# Array and Queue problem

**URL:** <https://forum.kirupa.com/t/array-and-queue-problem/198725>\
**Category:** flash\
**Created:** [August 28, 2006, 5:20am UTC](https://forum.kirupa.com/t/array-and-queue-problem/198725 "2006-08-28T05:20:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daytonatkf](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@daytonatkf](https://forum.kirupa.com/u/daytonatkf)\
**Post date:** [August 28, 2006, 5:20am UTC](https://forum.kirupa.com/t/array-and-queue-problem/198725/1 "2006-08-28T05:20:20Z")

</div>

please refer to image, i want to create this queue scene, this is how it work, the person (p1) will be in the counter for 2 seconds, then the 2nd person (p2) will move to the counter and wait for 2 seconds. This will repeat until the 5th person (p5).

I create an array named Q4\*, i can make the first person to move to the counter and wait for 2 seconds, then move the 1st person away, but the 2nd person dont move to the counter

i use Q4\* as the queue position. any idea? thanks for reply
