how to make my character rotate to the position of the mouse?

i already know how to make a simple roguelike, and making the character rotate would make my games much better

Mousemove pointat

Without scroll view it’s simple.

In your player:
[mousemove (x)] --> [(x) point at] --> [(set) rotation]
[mousemove (y)] --> [(y) point at] --> [(set) rotation]

Use 1 mousemove, 1 point at, and 1 rotation behavior. Don’t do it twice for the x and the y. Do it together.

If you have scroll view in your player. Then it’s harder. Even hard for me.

I made a video for someone about scroll view with mousemove. It’s just a tutorial to make a simple diep.io game. You may copy it. I don’t care.

https://youtube.com/qDFqGnEE8lU