Set relative_x and relative_y to accept decimals as well as ints.