ApericotStudio / Poltergeist

Main repository for development of the Poltergeist game
0 stars 0 forks source link

Fix: Realtor Sliding Around (IMPORTANT) #483

Closed ThijsvanDijk closed 9 months ago

ThijsvanDijk commented 9 months ago

He sometimes keeps playing his investigate, soothe or idle animation when he is walking. The speed threshold for when he starts going into his walking animation is probably set too high.

ThijsvanDijk commented 9 months ago

After some digging, i found that when the realtor sees a scare and when a visitor is nearby both the animation for the soothe and the animation for investigate get triggered. The soothe animation however waits until it's done and then sets Agent.IsStopped back to false allowing it to move. However the investigate animation is still waiting to play, so it will start to play at this point. That is my theory as to why he's sliding on the ground

ThijsvanDijk commented 9 months ago

This will get fixed with the new Soothe State, so it will get coupled to that pr

ThijsvanDijk commented 9 months ago

Still not perfect but way better