Hi
Math isn't my strong side, so not sure if there is a simple solution to this or how to solve it really but I'm sure its a piece of cake for someone here.
If I'd want to limit the line drawn with this snippet of code to say 10px from 64,64:
function _draw()
cls()
h = stat(32);
v = stat(33);
line(64,64,h,v,10)
end
How would that math look?


Hi
Unsure if this is a bug or what exactly.
I'm on linux, using a NES controller with USB adapter (original NES with adapter, not a NES clone with USB).
In the controls mennu pico 8 says "1 joysticks detected"
but there is no response when i press the buttons on the controller.
Am I missing settings? Is it not compatible? Is it a bug?

Hi
I'm wondering about arrays, I cant seem to find any way to delete specific IDs/keys. I don't know if the functionality is lacking or I'm missing it.
eg to do;
del(step[count(step)-1]) to remove the last entry to an array
And in extent, how do I access a specific ID/key in an array?
I'm trying to do eg;
h = step[count(step)-1].h;
v = step[count(step)-1].v;
to get key from array looking like;
step = {h=INT,v=INT}
step = {h=INT,v=INT}
step = {h=INT,v=INT}
Say I'd want the last, or second to last entry, how would this be done?

