Sleep command?
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Sleep command?
Is there any way to pause the execution of code without pausing the game?
Re: Sleep command?
When do you want the next bit of code to run? What happens if the player moves units while the code is paused, will you still want the next bit of code to run?
Re: Sleep command?
Yes, I do. I want a pause of a couple of seconds.
Oh, and my Wesnoth build is the stable one.
Oh, and my Wesnoth build is the stable one.
Re: Sleep command?
Is [delay] what you want?
Re: Sleep command?
Nope, delay pauses the game. I only want to pause the execution of a given bit of code.
Re: Sleep command?
I got an idea to use time stamps during every select event, does anyone have any better idea?
Re: Sleep command?
Depending on what you want to do, something like showing animation might work.
Re: Sleep command?
Great idea, thank you! But can you animate hidden units?