PlatformStand.getPlatformDirection

public int getPlatformDirection(float characterWidth, float fromXPosition)
Parameter Description
characterWidth The actual width of the NPC.
fromXPosition From which x postion to get the direction from.

Description

Returns the direction to the platform from a point on the x axis.

  • 1 : right
  • 0 : at platform
  • -1 : left