#2D Look Ahead Camera Problem

3 messages · Page 1 of 1 (latest)

tough coral
#

I think I could potentially change the way I'm getting the player's input so that it always reads as -1 or 1, but I'd hate to change my input method just to appease the issue with the camera.

patent oxide
#

You could do a Math.Round() on the values of the direction vector

direction.x = Math.Round(direction.x)
direction.y = Math.Round(direction.y)
tough coral
#

I don't know why rounding the number didn't come to mind. I'm off for the night, but I'm almost certain that will do it. Thanks