have done some further tests with this code, and it seems not to take into consideration that the mouse is moving, Eg. the main character has stopped but the player is accessing a menu, inventory, save, load etc.
Can it be made so that if the player does not move the mouse the idle animations kick in.
Many thanks for your help.
Best regards
Steve