nullifier.lua - Un-draw the environment
Posted: Sun Apr 21, 2019 8:21 am
A script I once created for someone. The idea is to have a BGO which un-draws parts of the environment.
Download:
https://pastebin.com/gsE0aQM9
Example:
In this example, the nullifier BGO is on a moving layer. On the lefthandside you can see the editor setup, while on the right they have moved a bit. Here, anything above the background until blocks is hidden.
Docs (also in the file):
Download:
https://pastebin.com/gsE0aQM9
Example:
In this example, the nullifier BGO is on a moving layer. On the lefthandside you can see the editor setup, while on the right they have moved a bit. Here, anything above the background until blocks is hidden.
Spoiler: show
Code: Select all
-- set nullifier.id to the BGO ID you would like to use.
nullifier.id = 5
--call addRange to select what range of priorities you want to hide. In this example, the player is hidden
nullifier.addRange(-26, -24)