Was this helpful?
Gravity Attribute
Data Type: varchar(2)
4GL Access: RW
The Gravity attribute specifies the reference point on the sector (if specified) or field, relative to which the location of the sprite is defined. Valid values can be either an anchorpoint numeric value (as text) or an initial pair:
BC or varchar(AP_BOTTOMCENTER)
BL or varchar(AP_BOTTOMLEFT)
BR or varchar(AP_BOTTOMRIGHT)
CC or varchar(AP_CENTER). C is also allowed.
CL or varchar(AP_CENTERLEFT)
CR or varchar(AP_CENTERRIGHT)
TC or varchar(AP_TOPCENTER)
TL or varchar(AP_TOPLEFT)
TR or varchar(AP_TOPRIGHT)
For example, the text values “BC” and “9” both specify a top left gravity.
If the descriptor defines a sector rather than a sprite, the Gravity attribute is applied to any sprites whose positions are defined relative to this sector. For more information about this, see the Sector Attribute.
For more information about system constants, see AnchorPoint Settings.
Default: NULL (no gravity)
Last modified date: 12/20/2023