It's actually really simple, you just have to know how it works.
The
pixelcol function is just a collision function. It returns 1 if any part of the two sprites you specify is touching the other.
It can't get much simpler, but check this out:
`Move player downward
sprite 2,sprite x(2),sprite y(2)+1,2
sprhit=sprite collision(1,2)
if sprhit>0
`If it does, check pixel collision
while pixelcol(1,2)=1
`If pixel collision occurs, move player up
sprite 2,sprite x(2),sprite y(2)-1,2
endwhile
endif
`Control player with arrowkeys
if leftkey() then sprite 2,sprite x(2)-2,sprite y(2),2
if rightkey() then sprite 2,sprite x(2)+2,sprite y(2),2
Really, you can just copy-paste that into your loop, add the function to the end, and replace sprites 1 and 2 with your own sprites.