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⮭

PushBlock

┗> Event > Object > Class


Constructor


PushBlock(x: any, y: any, w: any, h: any, properties: any, sprite: any, solved_sprite: any)

Arguments:

x: any
y: any
w: any
h: any
properties: any
sprite: any
solved_sprite: any




Methods


PushBlock:checkCollision(facing: any)

Arguments:

facing: any

Returns:

1: unknown


PushBlock:onInteract(chara: any, facing: any)

Arguments:

chara: any
facing: any

Returns:

1: boolean


PushBlock:onPush(facing: any)

Arguments:

facing: any


PushBlock:onPushEnd(facing: any)

Arguments:

facing: any


PushBlock:onPushFail(facing: any)

Arguments:

facing: any


PushBlock:onReset()



PushBlock:onSolved()



PushBlock:onUnsolved()



PushBlock:playPushSound()



PushBlock:reset()




Fields



Undocumented



PushBlock.collidable: boolean



PushBlock.collidable: boolean



PushBlock.collidable: boolean



PushBlock.collidable: boolean



PushBlock.default_sprite: any



PushBlock.input_lock: unknown



PushBlock.lock_in_place: boolean



PushBlock.press_buttons: boolean



PushBlock.push_dist: integer

Options



PushBlock.push_sound: string



PushBlock.push_time: number



PushBlock.solid: boolean



PushBlock.solved: boolean



PushBlock.solved: boolean



PushBlock.solved: boolean



PushBlock.solved_sprite: any



PushBlock.start_x: unknown

State variables



PushBlock.start_y: unknown



PushBlock.state: string

IDLE, PUSH, RESET



PushBlock.state: string



PushBlock.state: string



PushBlock.state: string



PushBlock.state: string



PushBlock.x: unknown



PushBlock.y: unknown


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