Answered How do i make the text inside the menu glow?

The Dark Side

Former Staff Member
Messages
1,007
Reaction score
784
Points
993
Try observing the code, and the "drawtext" or the "createtext" that it uses (whichever it uses) and figure it out. Its really easy. You just need a tiny bit of effort, if you have it.
 

BullyWiiPlaza

Modder
Messages
214
Reaction score
174
Points
818
This is what I use for my glowing host name display. Note that this is not the whole code but the glowing part so go and figure out the rest :tonguewink:
Code:
flashText()
{
    level endon("game_ended");

    while(true)
    {
        if(level.gameEnded)
        {
            level.flashingText hideElem();
        }
 
        level.flashingText.glowAlpha = 1;
        level.flashingText.glowColor = (getRandomColor(), getRandomColor(), getRandomColor());
        level.flashingText setPulseFX(40, 2000, 600);

        wait 1;
    }
}

getRandomColor()
{
    return randomInt(255)/255;
}
 

Lucifer

Veteran
Messages
771
Reaction score
502
Points
878
This is what I use for my glowing host name display. Note that this is not the whole code but the glowing part so go and figure out the rest :tonguewink:
Code:
flashText()
{
    level endon("game_ended");

    while(true)
    {
        if(level.gameEnded)
        {
            level.flashingText hideElem();
        }

        level.flashingText.glowAlpha = 1;
        level.flashingText.glowColor = (getRandomColor(), getRandomColor(), getRandomColor());
        level.flashingText setPulseFX(40, 2000, 600);

        wait 1;
    }
}

getRandomColor()
{
    return randomInt(255)/255;
}
you helped him bully but at the same time you are making him learn :smile:
 
Top