. . "Maybe, because X is an int, velocity is a float, and delta time is a int, maybe it is rounding up (round towards zero)? that could explain why, if his velocity is high enough, it continues to move left." . .