Keeping slider going during a blocking process?

Started by , Wed 20/04/2011 15:14:52

Previous topic - Next topic

m0ds

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

Khris

Are you moving the slider inside repeatedly_execute? Just use repeatedly_execute_always instead.

m0ds

Grazias! That is definitely the problem, stupid me! Cheers Khris.

m0ds

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?

Khris

Just put a repeatedly_execute_always function in any room script and it is called.

m0ds


Matti

Just put

Code: ags

function repeatedly_execute_always() {
}


anywhere in the room script. The function doesn't have to be linked from somewhere else.

m0ds


SMF spam blocked by CleanTalk