Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Wed 20/04/2011 15:14:52

Title: Keeping slider going during a blocking process?
Post by: on Wed 20/04/2011 15:14:52
A simple question, couldn't find much in the search, but probably didn't use the right keywords.

Basically I have a slider that is decreasing, but when the character walks to a hotspot or interacts inventory with it (I have Walk to hotspot mode on, and preferably need it to stay on) the slider stops moving whilst the character walks around. When the character stops moving the slide continues.

How do I get it so the slider always keeps moving, no matter if there's a blocking command going or not? I can't figure it out. If this is even possible, I'm looking for a solution for 2.72.

Many thanks!

Mods
Title: Re: Keeping slider going during a blocking process?
Post by: Khris on Wed 20/04/2011 15:30:10
Are you moving the slider inside repeatedly_execute? Just use repeatedly_execute_always instead.
Title: Re: Keeping slider going during a blocking process?
Post by: on Wed 20/04/2011 15:37:49
Grazias! That is definitely the problem, stupid me! Cheers Khris.
Title: Re: Keeping slider going during a blocking process?
Post by: on Wed 20/04/2011 15:42:11
Edit: Wait, one thing - I'm doing this mostly in room rep executes, so in 2.72 there is no room specific rep ex always, is there? Am I going to need to tend to it all in the global script?
Title: Re: Keeping slider going during a blocking process?
Post by: Khris on Wed 20/04/2011 15:47:04
Just put a repeatedly_execute_always function in any room script and it is called.
Title: Re: Keeping slider going during a blocking process?
Post by: on Thu 21/04/2011 00:56:50
Not really sure how to do that dude  :-[
Title: Re: Keeping slider going during a blocking process?
Post by: Matti on Thu 21/04/2011 01:06:02
Just put


function repeatedly_execute_always() {
}


anywhere in the room script. The function doesn't have to be linked from somewhere else.
Title: Re: Keeping slider going during a blocking process?
Post by: on Thu 21/04/2011 01:19:42
Thanks Matti :) aers dumb, you see.