I am new to libgdx and am enjoying the learning that it is providing me with.
I am currently creating some custom actors (that extend the Actor class) and am moving them around the screen.
My question is that when moving the actors by using, setX(), setY(), how do I properly scale this with the passed in float delta which is provided as a parameter to the act method?
Example,
@Override
public void act(float delta) {
if (wasTouched) {
setY(getY() - .5f);
}
}
How can I properly scale the movement with the delta? Is there a built in function for this within the libgdx Actor class?