FrontEdgeDist

From M.U.G.E.N Wiki

Jump to: navigation, search



Trigger: FrontEdgeDist

FrontEdgeDist gives the distance between the x-axis of the player and the edge of the screen in front of the player.

Format:
FrontEdgeDist
Arguments:
none
Return type:
float
Error conditions:
none

Example:

trigger1 = FrontEdgeDist < 30
  Triggers if the x-axis of the player is within 30 pixels
  of the edge of the screen in front of him.


Personal tools