Moving Cursor while walking

Hey guys!

For my game im currently working on a gun, and I went to this one game and saw how there cursor worked. When you move the circle expands out, and when you stop moving it go tights, im wondering how I can do this!

Any help loved!

check the velocity of the player, if it’s more than 1 then expand the circle, otherwise close.

You can check how fast the player’s character is moving with: