Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
You can do this by the following workaround:
ADD A: 1/60 B: Memory out
ADD output: Memory input
Since the microcontroller runs in 60 ticks / second (or close enough, it seems accurate with my real life stopwatch) this should work as a timer.
Does the fluffypony site mentioned in the guide have any clock or timer feature within it?
A = 0
function onTick()
if FirstCondition == 1 then
A = A + 1
if A > 350 then
-- do something after the first Condition and 350 tick (?)
A = 0
end
end
end
if a=a+1 causes an error it's because you're not declaring it and calling a nil value or you made a typo and calling a nil value.
Lua is case sensative so a and A are not the same.
Post your code here and you can post it inbetween [code] [/code] tags to keep it's spaces etc..
Just change ticks=300 which is 5 seconds in ticks to what you want. (desired timer seconds * 60)
So to run it's code every 1 second you would put ticks=60. Because 60 ticks = 1 second
The only issue is that'll require it to run in onTick, but I need it to run in onDraw or else screen.drawText wouldn't work (but I could be wrong).
Why? Because fúck you that's why.
No, i have no idea why it's that figure either.