# Stop the actions for 1 sec

**URL:** <https://forum.kirupa.com/t/stop-the-actions-for-1-sec/199992>\
**Category:** Uncategorized\
**Created:** [September 7, 2006, 8:36pm UTC](https://forum.kirupa.com/t/stop-the-actions-for-1-sec/199992 "2006-09-07T20:36:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ceetah](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@ceetah](https://forum.kirupa.com/u/ceetah)\
**Post date:** [September 7, 2006, 8:36pm UTC](https://forum.kirupa.com/t/stop-the-actions-for-1-sec/199992/1 "2006-09-07T20:36:16Z")

</div>

[FONT=Arial][COLOR=#494920]hello again.  
i need a second or less in between 2 consecutive actions.  
i need a function… like delayfor(seconds) which I have to insert between 2 actions.

i tried something with getTimer… but the computer then works slow because it checks the time very often. [/COLOR][/FONT]  
[FONT=Arial][COLOR=#494920][/COLOR][/FONT]  
[FONT=Arial][COLOR=#494920][/COLOR][/FONT]  
[FONT=Arial][COLOR=#494920]this is my buttons code:

on(release) {[/COLOR][/FONT]  
[FONT=Arial][COLOR=#494920] for (p=0;p\<10;p++) {[/COLOR][/FONT]  
[FONT=Arial][COLOR=#494920] // i need here a second to stop/pause/delay/to do nothing but wait (\*)[/COLOR][/FONT]  
[FONT=Arial][COLOR=#494920] line.lineTo(…);[/COLOR][/FONT]  
[FONT=Arial][COLOR=#494920] }[/COLOR][/FONT]  
[FONT=Arial][COLOR=#494920]}[/COLOR][/FONT]  
[FONT=Arial][COLOR=#494920][/COLOR][/FONT]  
[FONT=Arial][COLOR=#494920]so i need a second delay between every action in that “for”.[/COLOR][/FONT]  
[FONT=Arial][COLOR=#494920]

can you help me please?  
thx[/COLOR][/FONT]
