↧
Answer by Banana for How do I get the rotation of degree with...
This is more of a math question rather than programming, but you should basically calculate the x and y differences between your character and its target, and then calculate the angle. Assuming x1,y1...
View ArticleHow do I get the rotation of degree with getBoundingClientRect?
In my game, you can click on the orange box (it's supposed to represent a monster). Upon clicking, a green line will be appended to the characters div. For example for a better explanation: This is...
View Article