Mouse Cursor Position vs Real Position

Mouse Cursor Position vs Real Position


Replies | Reply | Tomb Raider Level Editor & Utility Discussion Forum

Posted by BitShifter on June 04, 2000 at 15:34:51:

In reply to: Re: To RGBold and Turbo posted by Turbo Pascal on June 04, 2000 at 02:11:05:

:
: Oh, I always work in 640x480, i remeber that in my formula i used the
: screen dimension for calc the position when drag the room with the mouse,
: but i don't remeber if i use constants values or i use function for get the
: screen resolution dinamic; i will cheq that.
: my apologize for the problem,
: Very well that now treditor work for you, hope the 2 simple samples was like it,
: also i suggest donwload the example from Rgbold.

In the TextureAssign, I set the controls to use a scale in pixel and corrected for the zoom factor, so no matter what position the mouse was, it always fed back the correct position relative to the side of the picture.

I set it to constant feedback by using the Mouse_Move method and the coordinate capture using the Mouse_Down and the Mouse_Up method.

It might eb different on a grid, though, I haven't tried it.





Replies:



Reply

Name:

Email:

Subject:

Message:

Optional
Link URL:

Link Title:

Image URL:


Replies | Reply | Tomb Raider Level Editor & Utility Discussion Forum