I think my subject line says it all, but I'll try to explain further.
I want to use:
Room.ProcessClick(player.x, player.y, eModeInteract);
But I can't, because player.x and player.y returns the position of the player relative to the room, and Room.ProcessClick wants an x and y value relative to the screen. This in turns causes a lot of problems for scrolling rooms.
I'm sure the answer is a simple formula of some kind involving the viewport and room width or something, but I can't for the life of me figure it out.
Scrolling rooms use;
Room.ProcessClick(player.x + GetViewportX(), player.y+ GetViewportY());
Changing it to:
Room.ProcessClick(player.x - GetViewportX(), player.y - GetViewportY());
Makes it work perfectly. Thank you so very much Slasher. :D
And sorry for being so very VERY dumb.