LoginLogin
Might make SBS readonly: thread

How to make a sprite from text!

Root / Submissions / [.]

chickenCreated:
Making a text sprite is pretty straightforward, however, it may not be obvious at first glance how to create one. First, set the graphics page you’re editing to the fourth, or the spritesheet.
GPAGE 0,4
Next, clear a space out for your text. I’ll be using the entire first 8 rows of pixels for text space.
GFILL 0,0,512,8
After that, graphically print the text in there. Make sure you’re printing in the cleared out space, or you’ll get some other sprites underneath, unless you want that. Note: You should set the scales to 1, since you can always just use SPSCALE to change the size, which supports more than just integers.
GPUTCHR 0,0,”Chicken drumsticks<<“,#GREEN
Now, define a sprite that encases the text.
SPSET ID,0,0,LEN(”Chicken drumsticks<<“)*8,8
Finally, just change the graphical page back to whatever it was before, such as 0 (top screen).
GPAGE 0,0
That’s it!

You didn’t add enough arguments to GPAGE. It should be GPAGE DISPLAY,MANIPULATION

Replying to:rando
You didn’t add enough arguments to GPAGE. It should be GPAGE DISPLAY,MANIPULATION
too old to criticize too dumb to criticize spend time wisely drink milk to grow your bones

Replying to:rando
You didn’t add enough arguments to GPAGE. It should be GPAGE DISPLAY,MANIPULATION
You're welcome