Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Nickenstien on Mon 06/10/2008 18:49:37

Title: [SOLVED] RepExec bug.
Post by: Nickenstien on Mon 06/10/2008 18:49:37
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
Title: Re: RepExec bug.
Post by: Gilbert on Mon 06/10/2008 18:53:19
Did you try repeatedly_execute_always() instead?

repeatedly_execute() is supposed to not run when a blocking action is taking place.
Title: Re: RepExec bug.
Post by: Nickenstien on Mon 06/10/2008 18:57:07
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! :)
Title: Re: RepExec bug.
Post by: Nickenstien on Mon 06/10/2008 19:10:51
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. ;)
Title: Re: RepExec bug.
Post by: Pumaman on Mon 06/10/2008 21:21:30
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.
Title: Re: RepExec bug.
Post by: Nickenstien on Tue 07/10/2008 00:37:48
Fantastic!

Cheers for the help guys! :D