ScreenPos/ja

From M.U.G.E.N Wiki

Jump to: navigation, search


This page is in progress of being translated to ja. You can help translating it or go to another language version that follows:



Trigger: ScreenPos

Gets the value of the player's absolute (screen-relative) position. You must specify the component that you want to check, eg. "Pos Y" to check the Y-position.

Format:
Pos [component]
Arguments:
[component]
X, Y
Return type:
float
Error conditions:
none
Details:

For "ScreenPos X", the value is relative to the left of the screen (value 0). Negative is left, positive is right.

For "ScreenPos Y", the value is relative to the top of the screen. Negative is above the screen, positive is downward.

Example:

trigger1 = ScreenPos Y = [0,239]
  True when the player's is in the screen's vertical extent.


Personal tools