// Update sprites on a timebased basis constantTasks.create().start([=] (task &t) { voitureSprite->update(); logoSprite->update(); });