Okay. I'd like to have some background characters chitchat back and forth. This isn't the only animation that they do, so I'd like to create a function that:
1)Stops their Platform Behavior, so that they stand still
2)Switches their default "Walk" animation to the "Stand Still" animation
3)Character A plays "Talk" animation for 4 seconds while Character B plays animation "Listen" for 4 seconds
4)Then switch to Character A plays "Listen" animation for 4 seconds while Character B plays "Talk" animation.
5)Repeat.
All my NPCs are in a Family called "Extras", so I'll be coding this function for the whole Family.
I've created the following Instance Variables for the Family:
Chatting (true/false)
ChitChat (1-Listen, 2-Talk)
FacingDirection (1-Not Mirrored, 2-Mirrored)
The Problem is that on Layer Start, the NPCs that have Chatting(true) continue their walking animation, do not play the chatting animation, and are never mirrored when I set them to be. I did, however, manage to get them to hold their position instead of moving around the screen like those who have Chatting(false).
Can anyone help? Possibly using a Timer behavior in there somewhere? Please remember that I'm brand-new to coding and Construct 2!