CodeBase - Making A List Of Messages To Scroll Down The Screen

Return to the CodeBase listing

Category: Text

Version: 1.0

0
0

Information

Uploaded: 13th May 2004 06:15

Modified: 1st Jan 1970 01:00

Author:  WhizzRich

Summary

Simple adding of text which scrolls down the screen for easy reading.

Full Description

Allows for upto 10 lines of text, although the amount is very easy to change!<br /> <br /> The textstaylength is how many game loops the text stays on the screen for, the higher the longer.<br /> <br /> In the repeat loop I made it make a darkly coloured box, with the white text over it. There is a space of 30 pixels between the top of each box/text, which is plenty. However, if you wish to have a different space simply change each of the 30's to whatever you want. It is simple enough to understand.<br /> <br /> One small glitch is that if you have 2 new lines of text appearing in the same game loop, the latter text will replace the original text. To get rid of this simply make the code a gosub, and after entering the new text call the gosub. <br /> This will, however, decrease the length of time the text will stay on the screen. To remedy this, take out the textstay(a) = textstay(a)-1, and place it on it's own (with the repeat loop) outside the gosub. Easy!<br /> <br /> Thanks,<br /> Rich (WhizzRich)

Comments

No comments yet.