Making A List Of Messages To Scroll Down The Screen by WhizzRich13th May 2004 6:15
|
---|
Summary Simple adding of text which scrolls down the screen for easy reading. Description Allows for upto 10 lines of text, although the amount is very easy to change! Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com dim text$(10) : dim textstay(10) textstaylength = 200 if text$(0) <> "" for a = 10 to 1 step -1 text$(a) = text$(a-1) textstay(a) = textstay(a-1) next a endif text$(0) = "" for a = 1 to 10 textstay(a) = textstay(a)-1 if textstay(a) > 0 ink rgb(50,20,20),0 box 0,(a*30)-30,text width(text$(a)),((a*30)-30)+text height(text$(a)) ink rgb(255,255,255),0 text 0,(a*30)-30,text$(a) endif next a `simply put this line in whenever you want a new line of text text$(0) = "Text here." : textstay(0) = textstaylength |