if (ragereadyon == true)
{
if (Stats.rage == (20 + (Stats.level / 2)) + Skills.SkillHelper.ragemax)
{
rageready = "ULTRARAGE READY FOR USE!";
}
else
{
ragereadyon = false;
}
}
else
{
rageready = "";
}
float flash = (float)gameTime.ElapsedGameTime.TotalMilliseconds;
timer4 -= flash;
if (timer4 < 1)
{
if (ragereadyon == false)
{
ragereadyon = true;
}
else
{
ragereadyon = false;
}
timer4 = TIMER4;
}
The context is in a game, which when a meter is full, text starts flashing. The full code, which explains it a bit better, is at this link (in fact, the whole thing's a mess): http://pastie.org/pr...862vbhiw8agydxw
Especially take note the references to figuring out the in-game time. I know this isn't probably the worst code you've seen, but it's definetly the worst one I've seen and written.
NOTE: This code is not for resale. You can use it if you want, but 1) It'd be nice to get some credit and 2) Don't resell it.

New Topic/Question
Reply




MultiQuote






|