I just tried the tut, DBP TUT 1
Screen Scrolling Techniques
It will not run as posted. I had to mess around to get it to compile.
Has something changed since then (it is fairly dated)?
This is what I have. Is this as it was intended?
Rem Project: tut scrolling
Rem Created: Saturday, August 14, 2010
Rem ***** Main Source File *****
Sync on
Sync Rate 60
Backdrop off
Load Image \"Media\\800x600.jpg\",1
Paste image 1,0,0
x1 = 352
y1 = 16
x2 = 784
y2 = 384
get image 2,0,0,800,600,0
get image 3,x1,y1,x2,y2,0
sprite 1,0,0,2
sprite 2,x1,y1,3
spr = 2
Repeat
tv# = tv# + 0.01
set sprite texture coord spr, 0, 0.0, 0.0 + tv#
set sprite texture coord spr, 1, 1.0, 0.0 + tv#
set sprite texture coord spr, 2, 0.0, 1.0 + tv#
set sprite texture coord spr, 3, 1.0, 1.0 + tv#
if upkey()=1 then spr=2
if downkey()=1 then spr=1
sync
until spacekey()=1
If so, they really should fix it. Kinda frustrating to do a tut that wont run! A total noob will have fits with that!
Mike
some cool stuff someone else said here