Make two variables, “Last Location” a vector, and “Is Moving?” a boolean.
Off of begin play set the Last Location vector.
Then off of Event Tick (inside a macro shown here), get actor location and subtract that from last vector. Drag out from that to a vector2dlength (for a platformer in this case), Plug that green float output into the top of an is greater > node and set the bottom to .01. Feed that bool output to a branch. If true set your Is Moving? bool to true and right after it also set your Last Location vector. If not true set your Is Moving? bool to false.

