# Putting a loop "on hold" until user input?

**URL:** https://forum.kirupa.com/t/putting-a-loop-on-hold-until-user-input/234623
**Category:** Uncategorized
**Created:** [August 3, 2007, 8:17pm UTC](https://forum.kirupa.com/t/putting-a-loop-on-hold-until-user-input/234623 "2007-08-03T20:17:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![therealfog](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@therealfog](https://forum.kirupa.com/u/therealfog)
#### Post date: [August 3, 2007, 8:17pm UTC](https://forum.kirupa.com/t/putting-a-loop-on-hold-until-user-input/234623/1 "2007-08-03T20:17:41Z")

</div>

i have a problem and the solution might be simple so i hope someone can help.

i have a loop that moves a game piece every time a dice is tossed using tweens (i loop the movement the amount that comes out on the dice). it all works fine.

the problem is that when mid movement i need to ask a user a quesition with a popup movie with buttons that would determine the movement - i cant pause the loop.

basically i need to know how to put a loop on hold until further user input

if i have a loop that increments a number by one until it hits a predefined amount- i want to pop up a menu that would ask the user if he wants to continue incrementing the number by 1 or by 2. I still want the loop to run a total set amount of times (lets say 100)

anything would help at this point  
thank you
