Selene logoSelene Worlds
  • Downloads
      • debug
      • mathx
      • os
      • package
      • selene.grid
      • selene.http
      • selene.i18n
      • selene.registries
      • selene.resources
      • selene.schedules
      • stringx
      • tablex
      • selene.attributes
      • selene.config
      • selene.dimensions
      • selene.entities
      • selene.map
      • selene.network
      • selene.players
      • selene.saves
      • selene.server
      • selene.sounds
      • selene.camera
      • selene.entities
      • selene.game
      • selene.input
      • selene.map
      • selene.movement.grid
      • selene.network
      • selene.sounds
      • selene.textures
      • selene.ui.lml
      • selene.visuals
      • Component Definition
      • Entity Definition
      • Sound Definition
      • Tile Definition
      • Transition Definition
      • Audio Definition
      • Visual Definition
      • Coordinate
      • CustomRegistryObject
      • LuaReference
      • Observable
      • RegistryObject
      • Signal
      • Dimension
      • Entity
      • LoginQueueEntry
      • MapTree
      • Player
      • ScopedChunkView
      • TransientTile
      • Actor
      • Drawable
      • DrawableVisual2D
      • Entity
      • IsoVisualComponent
      • LuaTexture
      • Skin
      • TextFieldTextFieldClickListener
      • Tile
      • Visual2D
      • Visual2DComponent

Coordinate

PropertyTypeWritableDescription
X
number
Read-only
X coordinate in the tile grid.
Y
number
Read-only
Y coordinate in the tile grid.
Z
number
Read-only
Z coordinate in the tile grid.
Function
GetHorizontalDistanceTo(other: Coordinate): number
Calculates the horizontal distance to another coordinate. Uses 2D Euclidean distance (ignoring Z coordinate).

Visual Definition

CustomRegistryObject

About

  • Downloads

Resources

  • Bundle Developer Guide
  • Scripting Reference

Social

  • Discord
  • GitHub

Copyright © 2026 Jean Baker. All rights reserved.