Player movement speed

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
RSBat
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Dec 28, 2018 10:29 pm
Contact:

Player movement speed

Post by RSBat » Fri Dec 28, 2018 10:54 pm

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?

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 2659
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Player movement speed

Post by DaveMcW » Fri Dec 28, 2018 11:05 pm

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.

RSBat
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Dec 28, 2018 10:29 pm
Contact:

Re: Player movement speed

Post by RSBat » Fri Dec 28, 2018 11:13 pm

Wow, that was simple
Thanks!

Post Reply

Return to “Gameplay Help”

Who is online

Users browsing this forum: No registered users and 4 guests