This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
bicobajas's profile picture

Scrolling Text On Monitors And Text Size

Started by bicobajas, 25 July 2012 - 11:06 AM
bicobajas #1
Posted 25 July 2012 - 01:06 PM
Hi I Just got tekkit today and i have learned something of youtube vids but i dont even know what lua is
And i Need Help to code Scrolling Or Sliding Text And Text Size btw is it possible to make color text?
OmegaVest #2
Posted 25 July 2012 - 03:42 PM
Okay, so rapid-fire.
1) Scrolling text can be done more-or-less by knowing how wide/tall the screen is, how long the string is, how many line-break characters are in the string, and then having the program move the cursor from the positive into the negative until the last line fits into the center of the screen. (Roughly screenY/2) I'm not going to give you the code, because the idea of Computercraft is for you to try to figure it out on your own. This should give you a good starting point, and if you get really stuck, then we can help.

2) Color text is possible on terminals, but not monitors. Something about memory conservation. . . I forget how to make it colored though, because I rarely use it, and I think it may actually have been omitted from one of the versions.
bicobajas #3
Posted 25 July 2012 - 04:27 PM
But I Need A Code
Lyqyd #4
Posted 25 July 2012 - 06:36 PM
But I Need A Code

That's not what this section is for. We will help you with existing code, not code things for you. The poster above gave you some good information to help you get started, so go put in the effort. Or look around to see if someone else has already published a program that does what you're looking for.
Cranium #5
Posted 25 July 2012 - 08:41 PM
But I Need A Code
You also need to only capitalize the first letter of a sentence. Make sure you're capitalizing the pronouns as well. Capitalizing every word is almost as bad as typing in ALL CAPS. Plus, you'll make your English teacher proud.
One tip though, use the print or write commands. No other help unless you come back with some code, just like the Pros said.
Patistar #6
Posted 25 July 2012 - 10:59 PM
And if he really wants to write more than one letter in a sentence capitalized, then he has to learn German. Then he can also capitalize nouns, great thing! :)/>/>

@bicobajas: I think you will have much more fun, if you write the program by your own. Take a look at the forum and you will find nice starter tutorials. For more information you can also take a look at the wiki, it provides nearly all information you need! :D/>/>