Checking Movement Items.


Above is a example of code I’ve made to check if the player is moving in a project. Currently I’m using “EventTick” but I know I wont be able to use this the whole time.
Its a check to update a variable for my Animation Blueprint to change the state in my state machine.
Any ideas what I could use or do instead of “EventTick” to check? Possibly making my program run smoother?

If the player is a character, you could just say

image

To further ClockworkOcean’s reply, you should place these nodes in your Animation Blueprint event graph instead. Typically, you would execute them on the “Blueprint Update Animation” event. However, a newer, more efficient solution is to override the “ThreadSafeAnimation” function and set your variables using “PropertyAccess” nodes.