A
A
Alexander Sinitsyn2019-03-11 19:24:58
Android
Alexander Sinitsyn, 2019-03-11 19:24:58

How and where to redraw the screen with a given period?

It is necessary to make the object move one cell of the field every 10 ms.
How is this done correctly on LibGdx?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2019-03-11
@a_u_sinitsin

There must be some kind of Render or Update that is called every frame. libGDX implements it like Screen.
Here you count how much time has passed, and if necessary - move

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question