Specific question: How can I keep GUI button animations running while the Text Window is open while keeping the rest of the game paused as usual?
Details: For my character's speech, I'm opening a GUI with the character's portrait on a button, then I'm opening a separate Text Window next to the portrait using DisplayAt.Ã, While this works great with still portrait images, for animated portraits I'm having trouble keeping the portrait animated in the GUI while the Text Window is active.Ã, The Text Window seems to pause the game (actually a good thing) but unfortunately this includes pausing the portrait animations (a bad thing.)
Here is what I have been doing:
Code: ags
Of note, the portrait button image is changed a lot in the game based on who is talking and what they are doing.Ã, Sometimes it is an animation and sometimes it is still.Ã, I'm hoping to discover a solution that is flexible enough to accommodate this.
I'd greatly appreciate anyone's thoughts.
Thank you in advance.
Details: For my character's speech, I'm opening a GUI with the character's portrait on a button, then I'm opening a separate Text Window next to the portrait using DisplayAt.Ã, While this works great with still portrait images, for animated portraits I'm having trouble keeping the portrait animated in the GUI while the Text Window is active.Ã, The Text Window seems to pause the game (actually a good thing) but unfortunately this includes pausing the portrait animations (a bad thing.)
Here is what I have been doing:
gPortrait.Visible=true;Ã, // opens portrait GUI
ButtonFace.Animate(2, 0, 4, eRepeat);Ã, // Sets the animation for the button on the portrait
DisplayAt (72,44,236, "A few words.");Ã, // Text appears next to the portrait.Ã, Oh no!Ã, The portrait animation has paused.
gPortrait.Visible=false;Ã, //closes portrait GUI
Of note, the portrait button image is changed a lot in the game based on who is talking and what they are doing.Ã, Sometimes it is an animation and sometimes it is still.Ã, I'm hoping to discover a solution that is flexible enough to accommodate this.
I'd greatly appreciate anyone's thoughts.
Thank you in advance.