SRL Archive - Bugs

SetScreenMouse & Boredhuman bug!


J J

2012-03-24 15:36:08

They aren't functioning right. It has something to do with changing angles and moving the map around. For some reason it doesn't work properly. The mouse starts jumping randomly across the screen.

momotron

2012-03-24 16:42:58

setscreenmouse does work but you probably dont know how to use it

Abu

2012-03-24 16:45:14

From: momotron
setscreenmouse does work but you probably dont know how to use it


^^^ This.

You should always check the include of functions that you don't know how to use properly:
(*
SetScreenMouse
~~~~~~~~~~~~~~

.. code-block:: pascal

function SetScreenMouse(Direction, CameraAngle: Variant): Boolean;

Aligns RS to specified direction and camera angle using the middle mouse button.
- Direction: 'n', 's', 'e', 'w' or any degree angle. Accepts 'random'
and 'rand', or '' for no movement.
- CamerAngle: any number from 1 to 10 (1 = lowest angle), or '1', '10'.
Accepts '' for no movement.

J J

2012-03-24 16:50:37

Yes I actually found out about those functions by reading through the includes. I don't think it's functioning correctly because my mouse starts jumping around the screen when the screen starts moving or going up/down.

momotron

2012-03-24 20:21:49

it uses the mouse to move the screen? Thus the mouse needs to move llol.