finding a way for me so far has slozhno.esli explanatory tutorial I would posmotrel.a at the expense of mouse clicks I figured, thank you, but I have 8 directions, and I did not get a sprite animation in 8 directions, how to do it? if I make the motion on the keyboard then everything works, but when you click neraboaet, there may be a formula that would be needed when the sprite has been rotated 45 degrees to play a certain animatsiya.aot what my problem is.