Quote: "If you just want to reset the sprite to it's oldest non-colliding position I would store the last good position and reset to that one."
cls rgb(255,0,0)
get image 1,0,0,64,64,1
cls rgb(0,255,0)
get image 2,0,0,64,64,1
cls 0
x=0
y=100
sprite 1,x,y,1
sprite 2,100,100,2
sync on : sync rate 60
do
ox=x
oy=y
if upkey()=1 then y=y-1
if downkey()=1 then y=y+1
if rightkey()=1 then x=x+1
if leftkey()=1 then x=x-1
sprite 1,x,y,1
`collision
hit= SPRITE collision(1,0)
if hit>0
` back tracking
x=ox
y=oy
sprite 1,x,y,1
endif
sync
loop
end