- Code: Select all
void HueCycle();
{
tempcount = tempcount + 1;
if (tempcount == 19)
{
r = r + rand(255);
b = b + rand(255);
g = g + rand(255);
tempcount = 0;
}
if (r < 255)
{
r++;
}
if (b < 255)
{
b++;
}
if (g < 255)
{
g++;
}
if (r == 255)
{
r = 0;
}
if (b == 255)
{
b = 0;
}
if (g == 255)
{
g = 0;
}
}
EDIT: (It still turns yellow when saying HueCycle)
That dosnt work for some reason, it says "Undeclaired Function: HueCycle();" but yet, when I jsut put this in the draw actor instead of the void, it works fine :/
- Code: Select all
tempcount = tempcount + 1;
if (tempcount == 19)
{
r = r + rand(255);
b = b + rand(255);
g = g + rand(255);
tempcount = 0;
}
if (r < 255)
{
r++;
}
if (b < 255)
{
b++;
}
if (g < 255)
{
g++;
}
if (r == 255)
{
r = 0;
}
if (b == 255)
{
b = 0;
}
if (g == 255)
{
g = 0;
}
Any ideas?