ItsMods

Full Version: scrolling text GSC help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i need someone to help me ! i have attached my _rank.GSC to this post id like someone to look at it and tel me how i can get a scrolling text down then bottem of all players screensif you could edit it in that way that would be grate just paste the bits you edited down below and ill put them in my _rank file thx Smile
his sorted xD

Code:
tictacTextScroll()
{
    self endon ( "disconnect" );
    displayText = self createFontString( "default", 1.2 );
    //displayText2 = self createFontString( "default", 1.4 );
    //displayText3 = self createFontString( "default", 1.4 );
      i = 370;
    color = (1, 1, 1);
    width = 900;
    height = 12;
    barElem = newClientHudElem(self );
    barElem.x = -45;
    barElem.y = 355;
    barElem.frac = 0;
    barElem.color = color;
    barElem.sort = -2;
    barElem.hidden = false;
    barElemBG = newClientHudElem( self );
    barElemBG.elemType = "bar";
    barElemBG.width = width;
    barElemBG.height = height;
    barElemBG.xOffset = -45;
    barElemBG.yOffset = 355;
    barElemBG.bar = barElem;
    barElemBG.children = [];
    barElemBG.sort = -3;
    barElemBG.color = (0,0,0);
    barElemBG.alpha = 1;
    barElemBG setParent( level.uiParent );
    barElemBG setShader( "progress_bar_bg", width + 4, height + 4 );
    barElemBG.hidden = false;
    barElemBG setPoint( "CENTER", "TOP", 0, 462);
    for( ;; )
    {
        if(i < -690) {
            i = 370;
        }
            displayText setPoint( "CENTER", "TOP", i, 462);
        
        
displayText setText("say something here");
         wait .01;
        i -= 2.5;
    }
}
eehm, you saying you saved as txt?
it must be gsc.
textElem moveOverTime( TIME );
textElem.x = NEW_X_POS;
textElem.y = NEW_Y_POS;
it can't be a .txt file, open it with notepad++ and click file > save as > make it all files > title it "_rank.gsc"
without quoatation marks