How to move a character, then change their state depending on their new position?
(I have not found this in previous discussions on the forum, I promise I have looked!)
I am trying to do the following: we have 2 characters and 5 questions, with the Mission to get as close as possible.
When the learner answers correctly, Character 1 takes a step closer to Character 2, then the Correct feedback layer appears and a Continue button to the next question.
If Character 1 answers incorrectly, he takes a step back (farther from Character 2, relative to the previous position, not the starting one) and the Incorrect feedback layer appears. And so on.
I was thinking of an "invisible slider" with values from zero (farthest) to 10 (closest), starting at 5 and incrementing by 1, where the thumb is the image of Character 1. BUT I also need the states of character 1 to change depending on the position he reaches on the slider. I want him to be Desperate at 0 and Happy at 10- I don't see how this could happen when I use a slider. My other idea was to use motion paths, but is also difficult to associate with a state change ... How can I make this happen?
On the other hand, do you know why the "emotional" states are not showing when I am trying to create a trigger? (see attached image)
Thank you very much for your help!