Attack while I'm in Idle position?

It works while I’m running on the right side when I click F, but while I’m in idle position it doesn’t work.

Please help. Thanks.

The issue seems to be in the 3rd event (Right key is released…).
The “key is released” condition only checks once the key is released. This makes the event work only if the f key was already pressed when the Right key is released.

Try moving the subevent (f key is pressed → change animation to attack right) out of the parent event, and add this condition to it: The animation of player = “Idle right”

[sorry I deleted the previous answer by mistake]

Thank you so much it works!

This is what worked in the code if anyone wants to know