Dark Bit Factory & Gravity
PROGRAMMING => Freebasic => Topic started by: Shockwave on December 16, 2009
-
This shows how to achieve the classic Amiga barrel scroll effect in Freebasic, the archive includes the music and gfx.
-
Strange.. I get this..
-
Hmmm.. What version of FB mate?
Did you compile with -lang deprecated ?
-
Yes, depracated as always.
Latest version (checks) - 0.20.0
Strange?
-
Ah I know, I came accross this problem before.. I solved it here;
http://www.dbfinteractive.com/forum/index.php/topic,3621.msg51246.html#msg51246
-
instead of the rgb line try this:
dim col as uinteger=( pdxfnt.bmp.pal(L*3) shl 16 )or( pdxfnt.bmp.pal(L*3+1) shl 8 )or(pdxfnt.bmp.pal(L*3+2))
if col>0 then FONT_COLOURS(L)=col
-
:clap: That fixed it.