# Making the code wait

**URL:** https://forum.kirupa.com/t/making-the-code-wait/195637
**Category:** Uncategorized
**Created:** [August 2, 2006, 2:12am UTC](https://forum.kirupa.com/t/making-the-code-wait/195637 "2006-08-02T02:12:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![spyderfx](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@spyderfx](https://forum.kirupa.com/u/spyderfx)
#### Post date: [August 2, 2006, 2:12am UTC](https://forum.kirupa.com/t/making-the-code-wait/195637/1 "2006-08-02T02:12:31Z")

</div>

is there a way to tell the code in a function to wait a few seconds before executing the next action? i want it to play the fade out transition before it loads the next movie
