ok so i looked over all of the pages that i could find on text sprites and i really dont understand them. What r they used for, how do u create and implement them? stuff like that
text sprites are a very fast and easy way to make a very detailed graphic.
here's what the master of text sprites builderboy respoded to my questions about text sprites
The text function is the key to text sprites (Hence the name). They provide a quick way to display 15 pxls onto the screen, as each character is represented by a 3x5 sprite of its own.
Text Sprites use this function in a very unique way. try this code out:
Text(0,5," //This is 2 spaces
It somehow displays a brick like pattern! What is happening is this.
-First the X is displayed at x position of 0. The leftmost column is 00=00
-Next the Y is displayed at x position of 1. The leftmost column is 00===
The y overwrites all but the first column of the x, leaving the part we want
-This process continues, with each character overwriting the other characters, but with the first columns of all 5 characters being left behind, forming the sprite you want.
0=000 //This is an attempt to replicate the sprite using ASCII ;)
The line of code at the end is to make sure that the rest of the X at the end gets erased as well.
This technique can be used in games to create very detailed maps and images, as the text sprites are quick to make, and very flexible. Almost any 5x5 sprite can be created with the right combination of characters. There are even programs that will create the text for you.
hope this helps you, it helped me a lot
you could also use the same brick pattern like this:
"XYXJX "→Str1 For(A,1,Lenth(Str1)) Text(0,A,Sub(Str1,A,1)) End
you could, but its slower, and you always want maximum speed when dealing with text sprites.
And Rhombus, Thank You! What a great compliment, i truly am humbled. :)
and thank you for helping me.
and larry's right, the text sprites page is very confusing. i think that we should update it and maybe add that PM to it somewhere
i think that should help would u guys recommend them for creating deal or no deal?
well i noticed that the sprite given above displays some sort of weird part of a maze, how would i create something in large font
hmm ok so would i use these for an rpg?