Just wondering what the ‘official’ recommendation is for creating a game loop.
For example image I wanted something to happen after 10 seconds, then something else after 20 seconds etc.
Is it best practice to do something like this:
Runtime:addEventListener( “enterFrame”, pmain )
function pmain()
lapsedTime=system.getTimer-startTime
if lapsedTime > 10000
end
end
Or is that ‘clunky’? [import]uid: 9371 topic_id: 3895 reply_id: 303895[/import]