I have gotten text to render using opengl es on android and currently am trying to find out how to “animate” it like in pokemon games where it “reveals” the characters from left to right at a certain speed.
How is this done?
I have gotten text to render using opengl es on android and currently am
Share
Basically, this “text-sliding-in” is like all other animations.
For example, look at this sample code:
Notice that a game object class has more fields describing them, but for example purposes this should be enough.
Well, what happens? To summarize:
This is the basic idea. You can add more methods where you change the frames per character amount, change text, slow/speed up the animation after each character, etc.
I also wrote an example of this, but for the
Canvassystem. It should be easy for you to adapt to whatever you choose.You can find my example here.