If you launch Voxatron from the command line, printh will print to stdout.
Finding an actor in a script:
old_draw=_draw function _draw() old_draw() set_draw_slice(120, true) local p = get_actors(PLAYER) if p then x,y,z = p:get_xyz() print(""..flr(x)..","..flr(y)..","..flr(z), 20, 50, 10) end end
Running Voxatron from the command line
Open a terminal window (aka command console)
cd Voxatron.app/Contents/MacOS ./vox
C:\Program Files (x86)\PICO-8\pico8.exe
I'm running on a Mac and the above will launch Voxatron. Any printh statements in your code will output to the terminal window.
[Please log in to post a comment]