SetOffset

From ZDoom Wiki
Jump to navigation Jump to search
Note: This feature is for ZScript only.


Screen

native static Vector2 SetOffset(double x, double y)

Usage

Sets the base offset to use when drawing textures on the screen. Coordinates are absolute and start from the top left of the screen with positive x values shifting to the right and positive y values shifting downward.

Parameters

  • x - The base amount to offset by horizontally in pixels
  • y - The base amount to offset by vertically in pixels

Return value

Returns the previous offset before setting the new one.

Examples

Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.