[SOLVED] RepExec bug.

Started by Nickenstien, Mon 06/10/2008 18:49:37

Previous topic - Next topic

Nickenstien

Hi. :)

I am having a problem with the RepExec functions in room scripts.

Basically they cease to be called when anything is happening that hides the player's cursor. So during a scripted animation or whenever dialogue is being displayed, RepExec fails to be called.

This is problematic as I am developing and using a plug-in to draw full screen overlays, updating and adding them to my plug-in drawlist during RepExec. So they disappear whenever the user's cursor does.

I am using the latest version of the AGS editor.

Any ideas/thoughts would be much appreciated.

Cheers,
nick

Gilbert

Did you try repeatedly_execute_always() instead?

repeatedly_execute() is supposed to not run when a blocking action is taking place.

Nickenstien

Quote from: Gilbet V7000a on Mon 06/10/2008 18:53:19
Did you try repeatedly_execute_always() instead?

Errrm, I will now! :D

Thanks, GilbetV700a! :)

Nickenstien

#3
Ahhh, no.

"repeatedly_execute_always()" is a global script function.

Is there any way I can make the RepExec event in a room script be not-blocked?



EDIT: I can hack and bodge around this, but it would be a lot nicer and neater if I could make RepExec perform it's namesake. ;)

Pumaman

You can add a function called repeatedly_execute_always to the room script and it should get called as well as the global script one.

Nickenstien

Fantastic!

Cheers for the help guys! :D

SMF spam blocked by CleanTalk