Timer:AlternateReal

From Data Realms Wiki

Jump to: navigation, search
Function
SyntaxAlternateReal( * An int with the alternating period in ms. The time specified here is how long it will take for the switch to alternate. )
Description:
Returns true or false, depending on whether the elapsed time falls in one of two repeating intervals which divide it. This is useful for blink animations etc.
ReturnsWhether the elapsed time is in the first state or not.




Example
DescriptionPlaceholder!
Code
  1. for k,v in pairs(PagesWithoutExamples) do
  2.     v.MakeExample(NoErrors);
  3. end
OutputPlaceholder!
Personal tools