I have a very big hotspot and I want my character to face the point where you clicked on it. Is there a way to use the clicked place's coordinates as the coordinates that have to be faced?
// Any click on hotspot
player.FaceLocation(mouse.x, mouse.y);
I knew it was simple!
Thank you!
Seeing as you've declared this solved, I presume you actually tested it?
Glad to have been of assistance.
Yes. I did test it. But I don't even think that that was necessary. Your hint was very "I-am-gonna-work"-looking. ;)
Thank again.
This is a clear case of 'READ THE MANUAL'. One thing that's not explicitly in the manual or monkey's post, however, is that that won't work properly for scrolling rooms. Mouse coords are Screen based, FaceLocation is Room based; so for scrolling rooms you'd need to use:
// Any click on hotspot
player.FaceLocation(mouse.x+GetViewportX(), mouse.y+GetViewportY());