Guest Posted June 15, 2012 Share Posted June 15, 2012 Okay so when there is alot of players, or stress on the machine walking can become a little buggy, choppy, or just looks glitchy at times. This fix will aloow peak smoothness of walking even if your systems are running perfectly. All this is done client side!First in modGameLogic, in Sub ProcessMovement find:```Select Case Player(Index).Moving Case MOVING_WALKING: MovementSpeed = ((ElapsedTime / 1000) * (RUN_SPEED * SIZE_X)) Case MOVING_RUNNING: MovementSpeed = ((ElapsedTime / 1000) * (WALK_SPEED * SIZE_X)) Case Else: Exit Sub End Select```Replace that whole code to this:```Select Case Player(Index).Moving Case MOVING_WALKING: MovementSpeed = RUN_SPEED '((ElapsedTime / 1000) * (RUN_SPEED * SIZE_X)) Case MOVING_RUNNING: MovementSpeed = WALK_SPEED '((ElapsedTime / 1000) * (WALK_SPEED * SIZE_X))Case Else: Exit Sub End Select```Whala your done.Credits: Jcsnider Link to comment Share on other sites More sharing options...
Stein Posted June 16, 2012 Share Posted June 16, 2012 Note that this will make your character run INSANELY FAST if you don't adjust a few other things when your picscreen has a different size or whatever. You'll need to change the same for NPC movement along with the movement speed constants. ;] Link to comment Share on other sites More sharing options...
jcsnider Posted June 16, 2012 Share Posted June 16, 2012 @Scypher:> Note that this will make your character run INSANELY FAST if you don't adjust a few other things when your picscreen has a different size or whatever. You'll need to change the same for NPC movement along with the movement speed constants. ;]Why? Player movement is still processed under a time interval…And he is mainly referencing to map scrolling... he can change the npc movement and stuff if he wants but that is not as important. Link to comment Share on other sites More sharing options...
Stein Posted June 16, 2012 Share Posted June 16, 2012 I just tried this in ED with the different screensize, and without the math in it it suddenly made my char run four times as fast ;) It might look the same in a standard EO but it is not for modified screen sizes. Link to comment Share on other sites More sharing options...
Guest Posted June 16, 2012 Share Posted June 16, 2012 If you CORRECTLY change the screen sizez, everything should be normal. Link to comment Share on other sites More sharing options...
jcsnider Posted June 16, 2012 Share Posted June 16, 2012 Meh, you could simply not change your screen size o.O. Link to comment Share on other sites More sharing options...
Growlith1223 Posted June 16, 2012 Share Posted June 16, 2012 I sized mine perfectly and it doesn't have any speed ups or anything :3 Link to comment Share on other sites More sharing options...
or3o Posted June 16, 2012 Share Posted June 16, 2012 yes this worked perfectly for me :) Link to comment Share on other sites More sharing options...
Guest Posted June 17, 2012 Share Posted June 17, 2012 Glad to help. This is mainly for when your server host has lagg or if your client has lag. This will make gameplay more smoother when walking around. Link to comment Share on other sites More sharing options...
Doctor Toenail Posted June 17, 2012 Share Posted June 17, 2012 Is this pixel based screen movement instead of tile based? Link to comment Share on other sites More sharing options...
Guest Posted June 17, 2012 Share Posted June 17, 2012 Tile based Link to comment Share on other sites More sharing options...
erkro1 Posted June 18, 2012 Share Posted June 18, 2012 I have thesame problem as Stein, so how did you fixed it Stein, or did you just changed the numbers untill those were good? Link to comment Share on other sites More sharing options...
Stein Posted June 18, 2012 Share Posted June 18, 2012 I adjusted the speed values accordingly.. Not sure if I kept the edit in though, seems more of a nuisance than worth using. Link to comment Share on other sites More sharing options...
Guest Posted June 18, 2012 Share Posted June 18, 2012 Explain why it is a nuisance Link to comment Share on other sites More sharing options...
Robin Posted July 6, 2012 Share Posted July 6, 2012 It simply removed a bodged FPS-based movement modifier that someone made a while back.Ignore the bloke with the gold name. This system works fine as it's the default movement system used in every single Mirage-based source ever.We tried something new and it didn't work. That's it. Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2012 Share Posted July 6, 2012 Thanks robin ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now