Thread: Increasing screen movement speed

Results 1 to 5 of 5
  1. #1 Increasing screen movement speed 
    Registered Member
    Join Date
    Aug 2013
    Posts
    15
    Thanks given
    0
    Thanks received
    1
    Rep Power
    14
    [Unsure if there's already a snippet about this, but whatever]

    Anyways I don't know about the rest of you but imo the screen movement when using the arrows keys is slow af in 317, SO I decided to increse the speed

    In client.java find
    Code:
    void method108()
    In there you'll see something like
    Code:
    if(super.keyArray[1] == 1)
    				anInt1186 += (-24 - anInt1186) / 2;
    			else
    			if(super.keyArray[2] == 1)
    				anInt1186 += (24 - anInt1186) / 2;
    			else
    				anInt1186 /= 2;
    			if(super.keyArray[3] == 1)
    				anInt1187 += (12 - anInt1187) / 2;
    			else
    			if(super.keyArray[4] == 1)
    				anInt1187 += (-12 - anInt1187) / 2;
    			else
    				anInt1187 /= 2;
    super.keyArray[1] = left, super.keyArray[2] = right, super.keyArray[3] = up, super.keyArray[4] = down

    anyways all you have to do is increase these numbers from 12 & 24 to whatever

    Here's mine:
    Code:
    if(super.keyArray[1] == 1)
    				anInt1186 += (-44 - anInt1186) / 2;
    			else
    			if(super.keyArray[2] == 1)
    				anInt1186 += (44 - anInt1186) / 2;
    			else
    				anInt1186 /= 2;
    			if(super.keyArray[3] == 1)
    				anInt1187 += (20 - anInt1187) / 2;
    			else
    			if(super.keyArray[4] == 1)
    				anInt1187 += (-20 - anInt1187) / 2;
    			else
    				anInt1187 /= 2;
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2014
    Posts
    11
    Thanks given
    30
    Thanks received
    0
    Rep Power
    11
    Thanks for this!
    Reply With Quote  
     

  3. #3  
    Rune-Server Affiliate

    Join Date
    Apr 2014
    Posts
    1,761
    Thanks given
    75
    Thanks received
    714
    Rep Power
    1073
    could just add a local variable to have another value, and swap it out with the / 2;

    so like,

    Code:
    int denom = 2;
    nInt1186 += (-24 - anInt1186) / denom;
    Reply With Quote  
     

  4. #4  
    Registered Member OP411's Avatar
    Join Date
    May 2014
    Posts
    293
    Thanks given
    28
    Thanks received
    31
    Rep Power
    0
    what? kind of like the camera glide?
    should be toggleable or have different speed settings
    gj nice idea
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2018
    Posts
    136
    Thanks given
    143
    Thanks received
    10
    Rep Power
    58
    Quote Originally Posted by Zion View Post
    could just add a local variable to have another value, and swap it out with the / 2;

    so like,

    Code:
    int denom = 2;
    nInt1186 += (-24 - anInt1186) / denom;
    Thank you for this tip!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 5
    Last Post: 11-08-2016, 07:11 AM
  2. [718 Client] Increasing Cache Download Speed
    By romo173 in forum Configuration
    Replies: 7
    Last Post: 06-23-2013, 03:35 PM
  3. How do you Increase your Running speed?
    By 123happy in forum Requests
    Replies: 2
    Last Post: 11-13-2010, 11:43 PM
  4. Increase Browser Speed (FireFox)
    By Numbers in forum Forum Related Help
    Replies: 10
    Last Post: 11-05-2009, 07:04 AM
  5. Movement speed
    By Runite in forum Help
    Replies: 11
    Last Post: 09-08-2009, 12:29 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •