Timer:AlternateSim

From Data Realms Wiki

Revision as of 00:56, 28 June 2012 by Beautifybot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
SyntaxAlternateSim( * 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