Const480p/fr

From M.U.G.E.N Wiki

Jump to: navigation, search


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



Trigger: Const480p

Converts a value from the 480p coordinate space to the player's coordinate space. The conversion ratio between coordinate spaces is the ratio of their widths.

Format:
Const480p(exprn)
Arguments:
exprn
Expression containing the value to convert. (float)
Return type:
float
Error conditions:
Returns SFalse if exprn evaluates to SFalse.
Notes:
Non-zero position and velocity offset values in common1.cns should use one of the Const triggers to maintain consistency with characters from a different coordinate space.

Example:

value = Const480p(6)
  Sets value 3 if the player has a coordinate space of 320x240 (240p).
  Sets value 6 if the player has a coordinate space of 640x480 (480p).
  Sets value 12 if the player has a coordinate space of 1280x720 (720p).


Personal tools