ID:1689566
 


Problem description:

I used
step_size = 35
and than remove it. Now my movement is jumpy and I cant change it back. How can I solve this ?

Why would someone use an odd number? :D
And it's so big! :D

Advice:
Try setting it to 32 if that is your world.icon_size and you want to move by tiles.
Set it to 1 if you want your movement to be smooth.
If you have any of these variables as not multiples of world.icon_size (e.g. if world.icon_size = 32, you can have bound_width = 64 without pixel movement), then tile-movement gliding will be disabled.
step_size
step_x
step_y
bounds
bound_x
bound_y
bound_width
bound_height

If you're sure you've changed it back in the code, also make sure that savefiles don't carry over tile-glide-disabling values.

You could probably use something like this to check at any point in time if there are any atoms with non-tiled values.
// warning: untested
mob
// should tell you which atoms, if any, are disabling tile gliding
verb/check_movement_mode()
var tiled = TRUE
var smooth_variables[] = list(
"step_size", "step_x", "step_y",
"bound_x", "bound_y",
"bound_width", "bound_height")

for(var/atom/movable/a)
for(var/v in smooth_variables)
if(a.vars[v] != round(a.vars[v], world.icon_size))
tiled = FALSE
src << "[a].[v] = [a.vars[v]] (disables tile gliding)"

src << "Tile gliding is [tiled ? "dis" : "en"]abled!"
Thank you so much Kaiochao :)