[code]local function countDown(e)
if(time_remain == 10) then
ready = true;
display_txt.text = “Go!”;
end
time_remain = time_remain - 1;
countDowntxt.text = time_remain;
if(time_remain == 0) then
time_up = true;
if(o ~= 0) then
display_txt.text = “FAIL!”;
ready = false;
end
end
end
[/code]
If anybody could help me out with this problem, this is what it says in the error log,
"WARNING: Invalid reference point constant passed to object: setReferencePoint()
Runtime error
main.lua:48: attempt to index global countDowntxt’ (a nil value)
main.lua:48: in function ‘_listener’
?: in function
If anybody could help me out to fix this, that’d be great. Thanks! [import]uid: 19768 topic_id: 6499 reply_id: 306499[/import]