So see the script first
program xxx;
var x,y:integer;
begin
repeat
getmousepos (x,y);
X;=x-1; // Is it posiible to move it only for 0.1 or even 0.001 ?
movemouse (x,y);
until false;
end.
So is it posible ?
Printable View
So see the script first
program xxx;
var x,y:integer;
begin
repeat
getmousepos (x,y);
X;=x-1; // Is it posiible to move it only for 0.1 or even 0.001 ?
movemouse (x,y);
until false;
end.
So is it posible ?
i dont think it is possible, because 1 is one pixel, and a you cant look at half a pixel, because that is not how pixels work(function as a whole). You wouldnt want to move 1 10,000th of a pixel anyways, completely pointless.
So i ll try to explain whats the prblem with my bad enlish knowledge
Its something like a action game
If the scar mouves the cursor even for 1 pixel the camera jumps too fast
Thats becouse if the mouse moves faster then game understand that need to do it fast
So the question is can i make the curson move slower ?
Move slower from x,y to the x-1,y
You do that by changing the MouseSpeed. This is a global variable, so you can set it in any SRL script.
Lower = Faster.
Code:program xxx;
{.include SRL/SRL.scar}
begin
SetupSRL;
MouseSpeed:=30; //Change this value to test different speeds
repeat
getmousepos (x,y);
x:=x-1;
movemouse (x,y);
until false;
end.
Yea thats how to do it, but forget something? Replace MoveMouse(x,y) with MMouse(x,y,0,0) So you can change mousespeed. :)
PHP Code:program xxx;
{.include SRL/SRL.scar}
begin
SetupSRL;
MouseSpeed:=30; //Change this value to test different speeds
repeat
getmousepos (x,y);
x:=x-1;
MMouse(x,y,0,0);
until false;
end.
Tnx guys
Mouse moves slower but the wait time between moves is the same
I need that mouse moves slower between x,y to x-1,y :(
I guess thats imposible with scar
But thnx for helping
try this:
the script will move at one pixel per time you set until you press the f3 key if this isn't what you meant please post again in more detailCode:program xxx;
//Setup////////////////
const waittime = 100;//
///////////////////////
var x,y:integer;
begin
repeat
getmousepos (x,y);
X;=x-1;
wait(waittime);
movemouse (x,y);
until(isfkeydown(3))
end.
i'm not sure what you mean, but is is something like this:
Now it lowers speed everytime when it moves mouse.PHP Code:program xxx;
{.include SRL/SRL.scar}
begin
SetupSRL;
MouseSpeed:=200;
repeat
getmousepos (x,y);
MouseSpeed:= MouseSpeed+1
MMouse(x-1,y,0,0);
until false;
end.
Look guys
The mouse first moves from x,y to x-1,y then it waits and finally moves to (x-1,y)
it moves for 1 pixel in the same time ...
In the game thats too fast and camera jumps too far
I need that coursore makes slower speed between it moves
I ned that scar starts move coursor from (x,y) and moves it slowlly
.... Thats a nightmare so gorget about this ...
Its impossilbe like said IronTeapot
Humm... What settings can the game possible have that moving the mouse one pixel moves the camera too far? Moving the mouse manually (a lot of pixels) would then mean that it moves like superman. Like said try using a mouse speed with a high number ( 25+) moving the total distance you need to move ( instead of 1 pixel a ta time which seems to be confusing the mouse movement speed readings in the game itself). By the way, which game is it? Maybe knowing that will help others help you solve your problem?