HomeWikiSourceDownloadsDiscord

Kristal Wiki


Getting Started


These pages get you ready to use the engine.

  • Downloading Kristal
  • Installing and Playing Mods

General Mod Creation


These pages teach you about mod development.

  • Understanding the Basics
  • Creating a Mod
  • Using Libraries
  • Creating an Item
  • Creating a Spell
  • Actors
  • Party Members
  • Custom Keybinds
  • The UI System

The Overworld


Everything to do with the overworld.

  • Designing a Map
  • Cutscenes

Battles


Everything related to creating battles.

  • Battlers
  • Encounters

API Reference


An auto-generated API reference for Kristal.

⮬Back to Top⮭

AttackBox

┗> Object > Class


Constructor


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

Arguments:

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




Methods


AttackBox:draw()



AttackBox:endAttack()



AttackBox:getClose()

Returns:

1: number


AttackBox:hit()

Returns:

1: number


AttackBox:miss()



AttackBox:update()




Fields



Undocumented



AttackBox.BOLTSPEED: integer



AttackBox.afterimage_count: integer



AttackBox.afterimage_count: integer



AttackBox.afterimage_timer: integer



AttackBox.afterimage_timer: number



AttackBox.attacked: boolean



AttackBox.attacked: boolean



AttackBox.attacked: boolean



AttackBox.battler: any



AttackBox.bolt: AttackBar



AttackBox.bolt_start_x: unknown



AttackBox.bolt_target: integer



AttackBox.fade_rect: Rectangle



AttackBox.flash: integer



AttackBox.flash: integer



AttackBox.flash: number



AttackBox.head_sprite: Sprite

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



AttackBox.index: any



AttackBox.offset: any



AttackBox.press_sprite: Sprite

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



AttackBox.removing: boolean



AttackBox.removing: boolean


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