Hi,
I’m coming from a Javascript/flash background and I’m getting confused :S
Basically, I want to run a function every second or so.
Inside an enterFrame, I have this:
[blockcode]
lapsedTime=system.getTimer()-startTime
counter = lapsedTime / 100
if(counter > 3) then
–function goes here
counter = 0
end
[/blockcode]
So, I thought that the the timer would count up to three, then reset to zero and start counting again. Instead, it just stops at zero. Any ideas? Am I going about this the wrong way?
Thanks.
[import]uid: 35072 topic_id: 6254 reply_id: 306254[/import]