Results 1 to 10 of 10

Thread: help me

  1. #1
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    help me

    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 ?

  2. #2
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  3. #3
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  4. #4
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  5. #5
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by tarajunky View Post
    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

  6. #6
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  7. #7
    Join Date
    Nov 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    try this:
    Code:
    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.
    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 detail

  8. #8
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by raimis89 View Post
    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
    i'm not sure what you mean, but is is something like this:
    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
    Now it lowers speed everytime when it moves mouse.

  9. #9
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  10. #10
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •