A beginner-level tutorial for making a top-down adventure game in PICO-8. · By MBoffin (Dylan Bennett)
what is the symble beetween the x and the 8 and the y and the 8 in this function:
function draw_player()
spr(p.sprite,p.x?8,p.y?8)
end
That's an asterisk! Shift-8. In coding, * is used for multiplication.
so when i run it it says "ERR :45: attempt to index global 'p'
(a nil value)
ps i am on liko 12 a pico clone so this could be the problem