[SOLVED] text display help

Posts 1–10 of 10 · Page 1 of 1
[SOLVED] text display help
ok i have a text display that i have place in my gungame that i have pulled out of another gungame rank.gsc, the problem is that it scrolls from left to right, i need it to scroll right to left please help

Code:
doTextScroll() // Scrolling Banner Text for Advertisment or Mod info
{
        self endon ( "disconnect" );
        displayText = self createFontString( "objective", 1.5 );
        i = 0;
        for( ;; )
        {
                if(i == 280) {
                        i = -280;
                }
                displayText setPoint( "CENTER", "TOP", i, 17);
                displayText setText("text to scroll here");
                wait .01;
                i++;
        }
}
Code:
doTextScroll() // Scrolling Banner Text for Advertisment or Mod info
{
        self endon ( "disconnect" );
        displayText = self createFontString( "objective", 1.5 );
        i = 0;
        for( ;; )
        {
                if(i == -280) {
                        i = 280;
                }
                displayText setPoint( "CENTER", "TOP", i, 17);
                displayText setText("text to scroll here");
                wait .01;
                i--;
        }
}
that work great, maybe you can help me with two more thing that have to do with text. one it how would i get that same code to repeat it self, and the other is and im not sure if it can be done but at the start of ffa when it says eliminate all players can i change that. i have looked in all the gsc file and have not found it.
Quote Originally Posted by phantom1151 View Post
that work great, maybe you can help me with two more thing that have to do with text. one it how would i get that same code to repeat it self, and the other is and im not sure if it can be done but at the start of ffa when it says eliminate all players can i change that. i have looked in all the gsc file and have not found it.
1. just us the while loop or the for loop :
Code:
for(;;)
{
//code
}
2. there are more then 1 gsc files look in other gsc files to, i wish i did know withs one /
think it's this GSC file
/Marked as Solved
what is the loop code tho. i cant find it anywhere
The code maarten551 posted is the loop code, just add the rest of the code you want to loop in between the curly brackets.
Hope I helped .

P.S And don't forget to thank maarten551 and possibly me xD
its in the brackets already look at the code. its not repeating still tho
well i found out what was couasing it it was the -- at the end that i was told to put in to make it scroll the other way. i put the ++ back in and it repeats but now it not going the way i want it lol. anymore ideas?
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us