During the second segment of the game, if the "rope_segment" (second segment) is true, a "rope_segment_count" is incremented every second. When this count reaches ten, a "Switch_Segment" signal is sent, which ends the second segment and returns the player to the first segment. (Just for testing purposes, the second segment is kept short.)
NOW HERE'S THE PROBLEM! Upon receiving the "Switch_Segment" signal, the "ComeUp" animation should play, where the player rises from the bottom of the screen to the level at which the "scroll3" animation (the default floor scroll animation) should start playing. HOWEVER, for some reason, the transition from the "ComeUp" animation to the "scroll3" animation DOES NOT OCCUR! Instead, the animation simply freezes on "ComeUp." Interestingly, I can replace "ComeUp" with the default scroll animation immediately upon receiving the "Switch_Segment" signal, and it works fine. But it doesn't look nice and it's too abrupt. Therefore, I don't want to do it that way.
I don't know exactly what the problem is, but it seems to be related to the animation transition in the state_machine.
I've been dealing with this for a week and a half, so I would be EXTREMELY GRATEFUL to anyone who can help.
Here are the codes that may be related to the problem and a screenshot of the AnimationTree - StateMachine: