SFML community forums
Help => Graphics => Topic started by: dabo on December 20, 2008, 03:00:02 pm
-
Hi, is it possible to for example display only the first 200 pixels of a string of length say 250 pixels (or any length > 200 :))?
-
ok thanks. I would have needed to be able to display parts of letters. I guess I can fool the eyes though.
-
Hi!
What if you want to have a dialogue box where the text appears letter by letter, or fade in.
Which is the best way to accomplish that?
-
Is there no hack that can be done? For example convert the rendered text to an image? so that the sprite method SetSubRect() can be used later.
-
You can of course make a lot of ugly hacks to solve this problem.
One simple i can think of, not very general but at least a cheap solution is to draw a color in a PNG (or fileformat with support for alpha channel) and make a gradient with Your color to transparent, then just move this over the text corresponding to what you want to fade in.
WOILA INSTANT FADE!
-
I don't quite understand what you mean.