i want to make a banner with scrolling text. i have used the scissor option to create a space for the text to occupy, and i have got the text to scroll, but what i want to have is some way to calculate the length of the text.
currently the text exists outside the scissored area, and then its x value is reduced until it appears on the screen and off the other side. then i want to loop it back around but to do this i need to know when the text has left the area.
because the text is drawn from the centre, i can't use the text position as an indicator. if it was right justified then this would be possible.
but if i know how long the text is i can calculate when it is off the screen by halving the length and measuring from the X coord. but as the text is dynamic i can't just take the width of a letter and calculate how many letters there are because the result depends on if the text is full of thin letters like "i" or wide letters like "w"