PlayerSettings (class)

From PGE Wiki
Jump to: navigation, search

This class provides access to the hitbox and offsets of the player.

PlayerSettings class
Type Function/Field Return values/Value type Description
Field PlayerSettings.hitboxWidth number The hitbox width.
Field PlayerSettings.hitboxHeight number The hitbox height.
Field PlayerSettings.hitboxDuckHeight number The hitbox height when ducking.
Field PlayerSettings.grabOffsetX number The graboffset value of x.
Field PlayerSettings.grabOffsetY number The graboffset value of y.
Field PlayerSettings:getSpriteOffsetX(number indexX, number indexY) number Returns the sprite offset value of x.
Field PlayerSettings:setSpriteOffsetX(number indexX, number indexY, number value) nil Sets the sprite offset value of x.
Field PlayerSettings:getSpriteOffsetY(number indexX, number indexY) number Returns the sprite offset value of y.
Field PlayerSettings:setSpriteOffsetY(number indexX, number indexY, number value) nil Sets the sprite offset value of y.