Skip to content

function any (client-side)

Available since version: 0.3.0

Note

Use this function only when you want to convert y 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 on screen Y 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 any(number pixels)

Parameters

  • number pixels: The pixels to convert.

Returns number

The virtuals after conversion.