Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SirLean on Sat 22/07/2023 17:33:26

Title: [SOLVED] Character say something WHILE walking
Post by: SirLean on Sat 22/07/2023 17:33:26
(https://i.postimg.cc/dV2k5tYf/pregunta-foros.jpg)


When I click that book, my character is supposed to say something and then walk towards it and grab it

So basically I'd like my character to say that WHILE walking towards the object (book)

Is is possible?

thanks!
Title: Re: Character say something WHILE walking
Post by: Tomags on Sat 22/07/2023 20:58:08
Hi SirLean,

You may want to try with the instruction "SayBackground", that would let the character talk while walks?

Ie, I'd expect the below to take your character to a place while talking:

player.SayBackground("Un libro... veré de qué se trata...");
player.walk(300,160,eNobBock);


Regards,
Tomas
Title: Re: Character say something WHILE walking
Post by: SirLean on Tue 25/07/2023 15:16:48
Yay cool, it worked, thanks Tomas (but I used "eBlock", otherwise with eNoBlock the character doesn't walk to the object to grab it. Thanks again!