if timer()+intsecondtimer>1000
should be
if timer()>(intsecondtimer+1000)
the code as it is tries to check if the time plus the oldtime was greater than 1000 (it will be), so it gets called every loop, then when you call updatesecondsimage you need to pass it the_time$ since the function will not see the time, like this
updatesecondsimage(the_time$)
and the function definition needs to be told it will be getting the time with
function updatesecondsimage(the_time$)
and to get the bitmap to work you replace this
load bitmap "foliage.bmp",1
with
create bitmap 1,200,20
and it should work (not tried all this though
), cheers.
Mentor.
ps: you don`t need to sync inside the function since you sync at the end of the loop anyway, that would halve the speed of the code.