I wanted to do a screenshot series of my prototype, but I didnt wanted to play with my hands tapping periodically the screenshot key. So I wrote a two liner which does this for me automatic, so here it is:
Code:
//call once before the main loop starts
function screenshot_series (interval_)
{
while (1)
{
file_for_screen ("screenshot_", int(total_ticks));
wait(-interval_);
}
}
Its not a big deal, but such odds and ends make life easier. Do you know when you rush with your finger to the screenshot key to capture at any moment the perfect screenshot and it was too late? This is the solution... play your game and dig out of the bunch of screenshots you made the PERFECT one.
It works*
Ciao
Christian
*doesnt influence the gameplay with 2 seconds intervals and 800x600 resolution.