Page 1 of 1

Player movement speed

Posted: Fri Dec 28, 2018 10:54 pm
by RSBat
I was doing some calculations and found out that player moves at 0.1484375 tiles/tick. As this is a strange number I thought that either my calculations are wrong or I have a problem with the game. But this wiki page suggests that I am correct
However in data.raw (link can be found here) has this line for player:

Code: Select all

running_speed = 0.15
so player should be running at 0.15 tiles/tick
All mods are turned off and I am running on natural terrain and character_running_speed_modifier is 0 and it is same for all directions
So what am I missing?

Re: Player movement speed

Posted: Fri Dec 28, 2018 11:05 pm
by DaveMcW
Each tile is divided into 256 pixels. 256 * 0.15 = 38.4 pixels/tick.

But the game can't track locations smaller than a pixel. So it rounds down to 38 pixels/tick.

38 / 256 = 0.1484375 tiles/tick.

Re: Player movement speed

Posted: Fri Dec 28, 2018 11:13 pm
by RSBat
Wow, that was simple
Thanks!