Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Gal Shemesh on Fri 07/07/2023 16:23:51

Title: Does thinking view supposed to loop or just to play once?
Post by: Gal Shemesh on Fri 07/07/2023 16:23:51
Hi everyone,

A small question that may or may not be a bug - does thinking view supposed to loop or just to play once? I have set a thinking view to my character, and use the player.Think("some message");, however the view plays only once and then stops at the last frame. Unlike the Speech view which loops forever.

I reached these old threads: this (https://www.adventuregamestudio.co.uk/forums/beginners-technical-questions/thinking-view-and-sierra-style-dialogue/msg597893/#msg597893) and also this (https://www.adventuregamestudio.co.uk/forums/beginners-technical-questions/font-colour-and-thinkingview-issues/) one where people asked about it, but the questions remain opened.

Maybe not many people use the thinking option so it was forgotten?

Kindly let me know.

Thanks
Title: Re: Does thinking view supposed to loop or just to play once?
Post by: Crimson Wizard on Fri 07/07/2023 19:25:51
Manual:
https://adventuregamestudio.github.io/ags-manual/Character.html#characterthink

QuoteIf the character has a thinking animation, it will just loop through once (it won't repeat).
Title: Re: Does thinking view supposed to loop or just to play once?
Post by: Khris on Fri 07/07/2023 21:38:03
All three cases sound like they might be xy problems; the bigger question is whether .Think() is a suitable solution in the first place.
Title: Re: Does thinking view supposed to loop or just to play once?
Post by: Gal Shemesh on Sat 08/07/2023 17:14:33
Thanks guys!

I was just thinking about the "think" option as an easy approach to make the character change to a pre-configured thinking animation VIEW, so I saw the thinking option suitable. Only that I didn't understand why it doesn't loop. Funny that I missed the '(it won't repeat)' bit as I actually went over the Character.Think section in the built-in manual.
Title: Re: Does thinking view supposed to loop or just to play once?
Post by: Snarky on Sat 08/07/2023 19:23:18
Hot take: This is why Character.Think shouldn't exist in the first place.
Title: Re: Does thinking view supposed to loop or just to play once?
Post by: Crimson Wizard on Sat 08/07/2023 20:06:40
It's almost trivial to reimplement in script, this is a combination of
* character animating using particular view
* blocking message displayed

First may be done using Character.Animate, second using textural overlay, or GUI and Wait* commands family.