-
place the library in the base of your episode or level folder. you can place it elsewhere if you know what your doing, but this guide assumes your unfamiliar with this process.
-
make a luna.lua file in the base of your episode or level folder. this is most easily done by making a new text document and renaming it to luna.lua (assuming you have show file extensions on.
here's a guide on that for each windows version if you do not.) you can also use a text editor of choice to make one. select "All Files (".")" as the type and put .lua at the end of the filename when saving.
make sure the file is luna.lua and not luna.lua.txt! you can skip this step if you already have a luna.lua file.
-
place this code in your luna.lua file and save:
Code: Select all
local iLP = require("inLevelPathing")
-
call this when you want to show a path:
Code: Select all
iLP.showIntersecting(x1, y1, x2, y2)
x1 & y1 are the top left of the area to affect. and x2 & y2 are the bottom right. these use overworld coordinates, not level coordinates. you can get those through the editor by:
- holding control while placing an object
- using the to map X/Y menu
- right click > copy preferences > position
for those still confused, here's a diagram using the example code i wrote as a base:

read the documentation spoiler for other information.