Creating a Hologram

How to create a hologram.

Overview and Example

This is a tutorial on how to create a hologram using SkLib's hologram api. Below is an example of how to create a hologram.

set {_lines::*} to "&aLine 1", "&bLine 2", "{skip}" and "&cLine 3"
sklib_createHologram("test", {_lines::*}, {_loc}, false)

How to Create a Hologram

When creating a hologram you need to set an id, lines, a location, and inverse. The id is how SkLib will identify the hologram. This is a string. The next thing you need to set are lines. You can create a list with texts for SkLib to read. The location will be where the hologram will show up. The final option called inverse will change the direction the lines go. (up instead of down)

You can use {skip} to add a blank line in a hologram.

# Setting Lines. This is a text list.
# Use {skip} to add a blank line.
set {_lines::*} to "&aLine 1", "&bLine 2", "{skip}" and "&cLine 3"

# This is the order of arguments for the function.
# sklib_createHologram(id, lines, location, inverse)

# An example of the function is below.
# The id is `test` for the hologram.
sklib_createHologram("test", {_lines::*}, {_loc}, false)

Inverse Hologram

The last option for holograms (inverse) is a boolean. This will change the direction of the hologram. False goes down, true goes up.

Last updated