Page 1 of 1

vertical scroll announce

PostPosted: Tue May 24, 2011 1:15 pm
by ndm
hi ppl.

somebody got an idea, how to make a vertikal scroll text ?
from bottom to top, character by character...

sorry, can't program this by myself :(

greetz from switzerland
ndm

Re: vertical scroll announce

PostPosted: Thu Sep 01, 2011 7:53 am
by rabidhamster
As a quick start, you could copy the file announcescrollblur.r4 to a new file, and change the name of it.

Then, if you look towards the bottom of the file, you'll see two lines that look like this:

if ((ch>=0) & (ch<len)) gl.glChar(text[ch],x-ofs-(screenchars*0.5),-0.5,x+1-ofs-(screenchars*0.5),0.5);

The arguments to glChar are character,x1,y1,x2,y2 - so if you want to change the orientation of the text, you can change the Xs and Ys around:

if ((ch>=0) & (ch<len)) gl.glChar(text[ch],-0.5,x-ofs-(screenchars*0.5),0.5,x+1-ofs-(screenchars*0.5));

This won't do characters separately, but it'll at least scroll from top to bottom....

Re: vertical scroll announce

PostPosted: Tue Aug 07, 2012 5:22 pm
by ndm
this works fine. tnx a lot.
is it also possible from bottom to top ?

greets