6 Attachment(s)
Text Blitter animated demo, blits fine but has local coordinates issue when scrolling
Attachment 27112
I've making a demo using Chris Burrow's text blitter, and I'm having a little trouble with getting the text to work when the screen scrolls. It uses alt values to position itself and the text blitter, and they're mapped to the screen coordinates. I've tried as best as I can to adjust them to be relative to the screen movement, but it's proving difficult in a couple of places.
I'm also using an old tween widget to make the text bob, which controls the Y position from values as well. I think this part could be improved, but my trigs not great enough for me to want to get into that right now ;)
When the screen doesn't move, the text renders correctly like this:
Attachment 27107
But when the screen moves to the right, each letter gets a bit offset:
Attachment 27108
Worse yet, if the screen scrolls to the left:
Attachment 27109
Up and down is also a problem:
Attachment 27110
There's also a bug I couldn't figure out whereby the first line only renders the first letter, all of the other characters are offset by a mile:
Attachment 27111
I tried to fix it, but I couldn't find any consistent reason why this first line does this, it would be interesting to see what anyone else thinks
Here's the example:
Attachment 27112