Hi! So I'm very new to Pico-8 and recently purchased Pico-8 to test my skills in coding and currently I'm having problems trying to find collision. My Current Code is shown below:
function update_game() if fget(2,0) then --wall else if btnp(⬅️) then p_x-=1 end if btnp(➡️) then p_x+=1 end if btnp(⬆️) then p_y-=1 end if btnp(⬇️) then p_y+=1 end end end |
To describe my problem, I currently can go through any wall I want to, and it still moves.




