This post is dead Problem has been solved
DBP
Alright heres the problem i am making a very nice little file browser and am using a sprite to load the text to the screen for easy scrolling
the checklist string is set to print 20 lines at a times in different collems witch then can be easily targeted using mouse pos and text width.
2 sprits at the bottom for scroll bar i is background none mobile and sprite (scroll#) witch is the the scroller. it is set to move -169 lines incremented witch will set the next columb at the starting point for reading. the total number of coulums specified buy the page# command
with each new columb that is scrolled +20 must be added to the checklist to tell it to point to the new columb
The Problem
its getting the +20 to be added relative to the sprite x(2) command
Don't know if you can help me but if your willing to try i would appreciate it
90#=checklist value a(a)
`text 10,0,checklist string$(a#)
`endif
if 90#=1
set current bitmap 2
print checklist string$(a)+".dir"
else
print checklist string$(a)
endif
next a
get image 2,0,0,2080,281,1
`bitmap and gui crap slider positioning @@@@@@@@@@@@@@@@@@@@@@@
set current bitmap 0
sprite 5,mousex(),mousey(),5
sprite 2,0,66,2
sprite browser#,0,0,browser#
set sprite priority browser#,browser#
`##############################
stop#=337+sprite x(scroll#)-sprite x(scroll#)
end#=27-sprite x(scroll#)+sprite x(scroll#)
if sprite x (scroll#) < 27
sprite scroll#,end#,330,scroll#
endif
if sprite x (scroll#) >337
sprite scroll#,stop#,330,scroll#
endif
if sprite collision (5,4)=1 and mouseclick()=1
sprite scroll#,mousex(),330,scroll#
endif
`page movment
page#= (int(b#/20+1))
k#=0
for r = 1 to page#
if sprite x(scroll#) > 310/r
sprite 2,k#,66,2
inc k#,r/r+-170
endif
next r
`PROBLEM////////////////////////////////
if sprite x(2) <=K#*R and not >=K#*r+K#
g#=20*r
`///////////////////////////////////////////
endif
a#=mousey()/12-5
`1st set
if mouseclick()=1 and mousex() < 180
text 400,460,checklist string$(a#+g#)
endif
`2nd set
if mouseclick()=1
if mousex()>180 and mousex()< 350
text 400,460,checklist string$(a#+20+g#)
endif
endif
`3rd set
if mouseclick()=1 and mousex() >=350
text 400,460,checklist string$(a#+40+g#)
endif
sync
loop
A child's dream never dies.