Timer trouble?
BlitzPlus Forums/BlitzPlus Programming/Timer trouble?
| ||
Dear anybody, Just wondering if anyone has problems accessing Timer properties within declared functions Eg if I create a Timer "Game" {Game = CreateTimer(5)} as i declare global properties and access "TimerTicks" from within the game cycle then no problems BUT if i declare any function eg CheckGameCycle() and try to access TimerTicks(Game) then I get errors saying "Invalid handle". Anybody know why? It is almost as though the TimerTicks called is a local variable within the Function CheckGameCycle() and not recognised. Do I need to declare the Timer as Global and if so how? Thanks in advance Julius |
| ||
try changing it to Global Game=CreateTimer(5) |