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

The Dark Side

Former Staff Member
Messages
1,012
Reaction score
785
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
215
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

Moderator
Staff member
Messages
771
Reaction score
499
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