Sorry for the late reply.
After many testing until late yesterday, I reduced the problem by adding one more key is down condition. But there are still unresolved problems.
And when I checked the code you suggested, the 2 second delay problem disappeared. And by adding a release condition at the bottom, the idle animation problem was also solved.
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
Here is an unresolved problem.
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
• Press the → key : (AnTo_1)Animation is played from frame 1 to frame 4. (ok fine)
but, Is it possible to disable the → key or all keys while (AnTo_1)animation is playing?
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
• If i continue to holding down the → key, the (An1) animation will play until the last frame,
(ok fine)
then stop and go back to frame 1 after 2 seconds. If i don't release the → key, play after 2 seconds and repeat after 2 seconds. over and over again.
I want to give a delay of 2 seconds only when changing from (AnTo_1)animation to (An1) animation.
When repeating, I want (An1) animation
to repeat without a delay of 2 seconds.
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
• When I short press the A key, the (AnTo_1) animation plays once from frame 1 to frame 4, stops at the last frame. (ok fine)
but, Is it possible to change to an (idle) animation after playing to the last frame?
also the same, is it possible to change to an (idle) animation after the last frame of the (AnTo_1) animation has finished playing?
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
Thank you both so much.
The rest of the problem will be asked after testing.
God will be pleased to see you both.
thank you.