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 ⮭

AttackBox

┗> Object > Class



Constructor


AttackBox(battler: number, offset: number, index: number, x: number, y: any)

Arguments:

battler: number
offset: number
index: number
x: number
y: any




Methods


AttackBox:draw()



AttackBox:endAttack()



AttackBox:getClose()

Returns:

1: number


AttackBox:hit()

Returns:

1: number


AttackBox:miss()



AttackBox:update()




Undocumented



AttackBox.BOLTSPEED: integer



AttackBox.afterimage_count: integer



AttackBox.afterimage_timer: integer



AttackBox.attacked: boolean



AttackBox.battler: number



AttackBox.bolt: AttackBar



AttackBox.bolt_start_x: number



AttackBox.bolt_target: integer



AttackBox.fade_rect: Rectangle



AttackBox.flash: integer



AttackBox.head_sprite: Sprite

A simple object that renders a texture.
This texture must be placed inside assets/sprites/.



AttackBox.index: number



AttackBox.offset: number



AttackBox.press_sprite: Sprite

A simple object that renders a texture.
This texture must be placed inside assets/sprites/.



AttackBox.removing: boolean


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