All Questions


Erik Shuttlesworth

Why is right the negative direction?

Is it because the player's battlers face left? Since the positive direction of the x-axis is to the right, the decision to make right negative is confusing.

  • Nathan Lovato replied

    That's just the scale we set to -1, and yes, it's because the sprites look to the left by default.

    In any case, to check the direction, you would use the enum members: Direction.LEFT and Direction.RIGHT, so the -1 thing is an implementation detail you can right once and forget (or you could design all your sprites to look to the right).