for the scrolling with sprite borders i need more time.
re:some sort of force effect
you mean somthing like this?
setbordercolor(125,0,0)
setclearcolor(0,125,0)
setsyncrate(30,0)
SetViewZoomMode(1) //Center!
zoom# = 1.0
setviewzoom(zoom#)
img = loadimage("field.PNG")
spr=createsprite(img)
setspritesize(spr,100,-1)
setspritepositionbyoffset(spr,50,50)
x#=0
y#=0
xs#=0
ys#=0
do
t = GetRawFirstTouchEvent(1)
if t=0 // getrawtouchtype(touchno)=3
else
print("touch")
x1# = getrawtouchstartx(t)
y1# = getrawtouchstarty(t)
x2# = getrawtouchcurrentx(t)
y2# = getrawtouchcurrenty(t)
drawline(x1#,y1#,x2#,y2#,255,255,0)
dx# = (x2#-x1#)
dy# = (y2#-y1#)
xs#=dx#/ 50.0
ys#=dy#/ 50.0
endif
x#=x#+xs#
y#=y#+ys#
xs#=xs# * 0.95
ys#=ys# * 0.95
sw#=getspritewidth(spr)/2.0
sh#=getspriteheight(spr)/2.0
//...
setviewoffset(x#,y#)
sync()
loop
end