PlaceholderGames / 2021-yr2-group-1

CS2S561 2020/1 Group 1
0 stars 0 forks source link

With new animations if you don't release space the jump animation doesn't end #330

Closed Wgcsam closed 3 years ago

Wgcsam commented 3 years ago

Because of the new implementation of isJumping for consistency, the jump animation doesn't stop if you don't release the space bar.

I resolved this by changing the transition for the jump animation to a trigger, which i set in a script attached to the playerCharacter image image and then on the return transition I ticked the Has Exit Time box to make sure the animation only plays once and then resets back to its correct state