ID:120074
 
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
I have seen a lot of attempts at rotating a mob(or object) based on the person's mouse coordinates. While this is a neat trick that would improve quality in a lot of Action games(or any game that it is necessary in), it is also detrimental on the server - in a way. There could probably be a solution to this, I don't know how but I'm pretty sure it can be incorporated.

Two built-in variables for handling the mouse's x and y location.
var mouse_x = 0;
var mouse_y = 0;


A function that retrieves the mouse_x and mouse_y location and then changes the image based on that angle.

angle = mouse_direction(mouse_x, mouse_y)


Instead of having people making their own ways of doing this, which will probably hurt the server some how depending on how it's coded, this should be incorporated in the language as a built-in tool developers can use.

This has been suggested many times...
This is the version of the request with the most votes. I'd like to see this feature added and it's pretty simple, but for some reason the staff is hesitant.