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

The Dark Side

Former Staff Member
Messages
1,010
Points
768
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
Points
593
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
776
Points
653
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