I have created a custom move system
Moves if the character is looking in that direction when the direction key is pressed
If you see a different direction than the direction key, change the direction
Movement is no different from the basic system
However, there is a difference when you press the key once and keep it pressed
I want to create a custom battle system
As with most custom battle systems, you have to look at the direction of attack in order to attack
But if you try to look at the direction you are attacking, you will be attacked by the enemy
I wanted to solve this part.
If you do not put a 'wait' next to your turn, your character will move right away
If you put 'wait', it takes time to change direction as shown above
When attacking an enemy while raning, press once to change direction only
However, if you try to move continuously, there will be a break every time you change direction
It's uncomfortable
Are there any better ideas or examples?