Do you already have movement code setup?
for spcol you need(spr#,u,v,w,h,true,255)//255 being the opacity of the mask i believe...
so with that you would need to set up spcol for your "player" and your "tile/enemy"
spcol (1,u,v,w,h,true,255)//one being your player
spcol (2,u,v,w,h,true,255)//being your colliding tile
now these have to be set up before sphit! // visit smilebasics website instruction manual for complete list of functions or use the 3ds manual
so when you finally get to sphit the function asks for spr#1 and spr#2
so for moving left as an example i wrote
if sphit(1,2) then px=px'if we are touching then px = its current x coordinates if !sphit(1,2)then px=-1 'minus the x coordinates and moves us to the left spofs(0,px,py,0) vsync1but this is an bad example because sphit also wants spcolvec, but this will get you results and thats one way to do it