You can do a lot with sprites. Meanwhile, here is a crawling bit of text that shows how you can show credits, etc.
Some things to note:
The moving center page is defined first, then the top and bottom pages.
So they cover the moving page, but because their alpha is less than 1, it shows through a little.
The text is in a field set to a very large font.
Because the text field was created after the center page was active, the field is a child of (attached to) that page.
The field edges don't show, becuase I set the field's BACK ALPHA to zero.
The center page is 3 times as wide as the screen. Therefore you never see the graphics background.
A simple loop keeps the center page scrolling to the left, carrying the field and text with it.
Once the text disappears at the left, the center page jumps back to screen right so fast you don't see it.
Then the loop starts again.
A delay controls the speed, so you can change the delay to speed up or slow down the crawl.
Code: Select all
'Three-page example
Get screen size sw,sh
Graphics
Graphics clear 1,1,1
l$ = "above page"
m$ = "below page"
n$ = "title area"
o$ = "page above"
page n$ set
page n$ show
PAGE n$ color 1,0,0,1
Page n$ Frame 0,sh/4,sw*3,sh/2
FIELD N$ TEXT "Welcome to Hard Times" AT sw+100,150 SIZE 900,80 RO
FIELD N$ FONT SIZE 80
FIELD N$ FONT COLOR 1,1,1
FIELD N$ BACK ALPHA 0
' page at top of screen
PAGE l$ set
PAGE l$ show
PAGE l$ color 0,0,1,1
PAGE l$ Frame 0,0,sw,sh/3
page l$ alpha .6
' page at bottom of screen
PAGE m$ set
PAGE m$ show
PAGE m$ color 1,0,1,1
PAGE m$ Frame 0,2*sh/3,sw,sh/3
page m$ alpha .6
do
for t=0 to -sw*2 step -1
page n$ at t,sh/4
pause .003
next t
get touch 1 as dx,dy
until dx>-1
end
The only thing that gets me down is gravity...