How can I do something every second? [LibGDX]
Lets say I want to make a loop or something that prints out, for example, "Mario" every second. How can I do this? Can't seem to find any good tutorials that teach this anywhere =P You can use java.util.Timer. new Timer().scheduleAtFixedRate(task, after, interval); task is the method you want to execute, after is the amount of time till the first execution and interval is the time between executions of aforementioned task. As @BennX said you can sum up the delta time you have in your render method or get it by calling Gdx.graphics.getDeltaTime(); . If it is bigger then 1 ( delta is a float ,