Skip to content

function anx (client-side)

Available since version: 0.3.0

Note

Use this function only when you want to convert x position or width on the screen.

Note

Virtual screen coordinates are similar to percentage values, where 0 is 0% and 8192 is 100%.

Convert pixels to virtuals screen X dimension and return it as a result. Virtuals are special type of unit used by the game to position UI elements independent from game resolution.

Declaration

number anx(number pixels)

Parameters

  • number pixels: The pixels to convert.

Returns number

The virtuals after conversion.