3.5 Movement Speed

I remember there was a script or scriplet available that automatically changed movement speed 3 or 4 to 3.5 (or anything else you want). But I can't find it anywhere. Someone still has something like this and wants to share it?
Move route > Script > @move_speed = 3.5
Now i remember! I tried that but just as a script call. Thanks for refreshing my memory 😉
Well, I didnt notice that it was RMXP Script request. And I didnt remember if RMXP has script call in move route ._. 

Anyway, it's good to know that it's solved lol
Only problem is that 3.5 isn't the 3.5 you imagine.  This is because that number is used as an Exponent, thus, the solution needs to be Logarithmic.

    # Convert map coordinates from map move speed into move distance
    distance = 2 ** @move_speed
Brief Ruby Math

* is a Multiplier

4 * 4 = 16  this means four times four

** is an Exponent

4 ** 4 = 256  this means four to the power of four, or four times itself four times.

Exponential Move Speed:

2 to the power of 3 is 8

2 to the power of 4 is 16

2 to the power of 5 is 32

2 to the power of 6 is 64

So on and so forth.

Thus, the value you are looking for is a logarithm of 12 (base 2).

The actual value you are looking for is 3.58496250072116.  2 to the power of that number = 12, and as an added benefit, you dont get screen tearing (in XP anyway) because your real coordinates are whole numbers.

  #--------------------------------------------------------------------------
  # Defines Log Base 2 - Allows Logarithms of ANY Base, not just Natural 2.77
  #--------------------------------------------------------------------------
  def logBaseX(x, n=2)
    # NOTE: x must be a Positive number larger than 0 or this will
    # blow up and give a "Domain Error"
    return Math.log(x) / Math.log(n)
  end
If you try the 3.5 method, you are saying 2 ** 3.5, or 2 to the power of 3.5, which is 11.3137084989848 which is NOT the half way speed answer you are looking for.  This number is used as your "distance" for your real coordinates.  Real Coordinates are basically your map coordinates * 128 (for XP) and * 256 (in VXA).  Move Speed of 3 will result in the characters real coordinates being adjusted by 2 ** 3 every frame, or 8 real coordinates.  2 ** 4 results in 16 real coordinates every frame.  When these numbers are not whole numbers, at least in XP, all sorts of screen tearing starts to occur.  This only happens when the map is scrolling, so as long as a move speed of 3.5 isnt applied to the player while the screen is scrolling, it will be acceptable.

Not trying to say it is being done "wrong", but to expect some consequences if done in this fashion.

You could throw this code in your game somewhere.

class Game_CharacterBase

  def logBaseX(x, n=2)
    return Math.log(x) / Math.log(n)
  end

end
Then, you can do this:

Script: @move_speed = logBaseX(12)

This allows you to use Real Values and dont have to worry about crunching that big string of numbers.

Original thread: https://forums.rpgmakerweb.com/threads/3-5-movement-speed.36311/