Simple way to use delta time to make movement smooth
<p>This is a novice question about using delta time to move a sprite across the screen.</p>

<p>Also, I'm looking for advice as to whether or not delta time is even needed in this case...</p>

<p>Here is how I'm calculating delta time:</p>

<pre><code>currentTime = System.currentTimeMillis();

            if (lastTime == 0) {
                lastTime = currentTime;
                deltaTime = 0;
            } else {
                deltaTime = currentTime - lastTime;
                lastTime = currentTime;
            }
</code></pre>

<p>And I wanted to use this to somehow make a more fluid movement for objects in 2d space.</p>

<p>This is my current method to move an object up:</p>

<pre><code>public void move() {
    this.mPos.y -= mSpeed;
}
</code></pre>

<p>The thread constantly calls the move() method and it works well but the objects are slightly jittery across the screen. Any tips on how to incorporate delta time into this move() method? I'm trying to set a maximum speed of 10.</p>