I was wondering if there's a script which does the following: If the directional buttons aren't pressed (up, down, left, right), the playable character goes into an idle pose (not animated).
I did this using a common event, but it has a flaw and it would be easier to use a script. The problem with my common event is that, when the playable character is up against a wall, and the button is pressed, the "walking" pose still shows (because the event obviously only checks if the button is pressed, not what the player is doing), and that looks weird.
Event screenshot:

I did this using a common event, but it has a flaw and it would be easier to use a script. The problem with my common event is that, when the playable character is up against a wall, and the button is pressed, the "walking" pose still shows (because the event obviously only checks if the button is pressed, not what the player is doing), and that looks weird.
Event screenshot:
