variable: x_velocity (float)
variable: max_velocity (float or intiger)
variable: tileset_scale = actual tileset's scale
func calculation():
-position.x = x_velocity / tileset_scale
-if position.x > max_velocity:
--position.x = max_velocity
(edited)