vertical scroll announce

Suggestions + Info on development of R4 visuals

Moderators: rabidhamster, Rovastar

vertical scroll announce

Postby ndm » Tue May 24, 2011 1:15 pm

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
ndm
 
Posts: 8
Joined: Sat Aug 28, 2010 9:06 pm

Re: vertical scroll announce

Postby rabidhamster » Thu Sep 01, 2011 7:53 am

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....
rabidhamster
Site Admin
 
Posts: 1100
Joined: Fri Mar 21, 2003 12:31 pm
Location: Cambridge, England

Re: vertical scroll announce

Postby ndm » Tue Aug 07, 2012 5:22 pm

this works fine. tnx a lot.
is it also possible from bottom to top ?

greets
ndm
 
Posts: 8
Joined: Sat Aug 28, 2010 9:06 pm


Return to R4

Who is online

Users browsing this forum: No registered users and 9 guests

cron