I am trying to script a Scumm game in ScummC, but I am having troubles organizing 2 parallel scripts that both manipulate the ego actor's animation. In detail, the problem is as follows:
- If the ego actor is talking, and the user then issues a new walk command, the actor starts walking with the talking script still running.
- Once the talking script ends, it forces the actor into a standing hold, overriding the walk animation.
- The walk script, however, still moves the actor across the room, now without a walk animation, making it look like he's sliding.
It is even more evident with 2-sentence-responses: try to make Bernard look at his textbook, or Guybrush at the Woodtick sign, and then start walking. They will say the second sentence while walking, but without breaking the walk animation.
Does anyone know how this is scripted?
I browsed the original scripts, but couldn't find any answer in the VERB or SENTENCE scripts that start the responses to interaction. If anyone could point me to a specific location in the code, it would help too.
Thanks in advance!