Home
Wiki
Source
Downloads
Discord

Kristal Wiki


General Information


These pages get you ready to use the engine.

  • Main Page
  • Downloading Kristal
  • Installing and Playing Projects
  • Glossary

General Project Creation


These pages teach you about project development.

  • Lua Tutorial
  • Understanding the Basics
  • Creating a Project
  • Writing Text
  • Using Libraries
  • Creating an Item
  • Creating a Shop
  • Creating a Spell
  • Actors
  • Party Members
  • Custom Keybinds
  • Releasing Projects

The Overworld


Everything to do with the overworld.

  • Designing a Map
  • Cutscenes
  • Map Properties and Layers
  • Events
  • Battle Areas
  • The World Tool

Battles


Everything related to creating battles.

  • Battlers
  • Encounters
  • Enemy Attacks (Waves)
  • Wavemaking Tricks and References

Advanced


These pages teach you more complex but powerful parts of the engine.

  • Debugging
  • Hooks
  • The UI System

API Reference


An auto-generated API reference for Kristal.

⮬ Back to Top ⮭

Kristal Wiki


General Information


These pages get you ready to use the engine.

  • Main Page
  • Downloading Kristal
  • Installing and Playing Projects
  • Glossary

General Project Creation


These pages teach you about project development.

  • Lua Tutorial
  • Understanding the Basics
  • Creating a Project
  • Writing Text
  • Using Libraries
  • Creating an Item
  • Creating a Shop
  • Creating a Spell
  • Actors
  • Party Members
  • Custom Keybinds
  • Releasing Projects

The Overworld


Everything to do with the overworld.

  • Designing a Map
  • Cutscenes
  • Map Properties and Layers
  • Events
  • Battle Areas
  • The World Tool

Battles


Everything related to creating battles.

  • Battlers
  • Encounters
  • Enemy Attacks (Waves)
  • Wavemaking Tricks and References

Advanced


These pages teach you more complex but powerful parts of the engine.

  • Debugging
  • Hooks
  • The UI System

API Reference


An auto-generated API reference for Kristal.

⮬ Back to Top ⮭

LancerKeyItem

┗> Object > Class


The object used to represent Lancer when he appears in the Dark World key items menu if present in the inventory (item id lancer).


Constructor


LancerKeyItem(x: number, y: number)

Arguments:

x: number
y: number




Methods


LancerKeyItem:update()




Undocumented



LancerKeyItem.con: integer



LancerKeyItem.contimer: integer



LancerKeyItem.contimermax: integer



LancerKeyItem.custom_animation: string



LancerKeyItem.flipchance: integer



LancerKeyItem.lancer: ActorSprite

An extension of Sprite that can integrate with an actor. If an object defines an Actor, it will use this over Sprite for its sprite.



LancerKeyItem.maxx: number



LancerKeyItem.maxy: number



LancerKeyItem.minx: number



LancerKeyItem.movecon: integer



LancerKeyItem.parallax_x: integer



LancerKeyItem.parallax_y: integer



LancerKeyItem.remmovecon: integer



LancerKeyItem.sleeptimer: integer



LancerKeyItem.spincount: integer



LancerKeyItem.spinmax: integer



LancerKeyItem.spintimer: integer



LancerKeyItem.stop: integer



LancerKeyItem.timer: Timer



LancerKeyItem.wavetimer: integer



LancerKeyItem.x: number



LancerKeyItem.y: number


DELTARUNE by Toby Fox.
Website designed by NyakoFox.
© 2026 Kristal Team. All rights reserved.