I was hoping not to have all them spaces in the text, Do you know of a way so the scroller will re start as soon as the last letter goes off screen
please
There are a few ways of doing that, here's some of them..
You could have a texture that you draw for the scroll each frame, and just draw new letters on the right hand side of it every time you pass one letter width and simply draw this texture each frame.
or
You could have an array of letters that are displayed accross the screen, scroll an offset and when it goes further that the width of a letter, move them all over one place so the first becomes the second, the second becomes the third until you get to the end where the new one goes.
Finally (and probably useless for PC coding)
You could have a texture twice the width of a screen and scroll it the same amount each frame;
| <- 1 Screen -> |
========================
<< |A |B <<
========================
have two points where you draw the letters (A+B), when you've scrolled one screen width, flip the screen back (a trick I used to use on the amiga with hardware scrolling under interrupt), because you have two copies of the scroll it will look like it's moving continuously.
All the above methods would do what you need.