I want to animate some text thats in an arraylist that gets changed often but I can’t figure out how to animate it on the Y-Axis as it needs to move up and down and I’ve only set it up for
obj.renderY += 10 * deltaTime but I need it to smoothly animate to the position wanted without overcomplciating it.
The current setup for animating the Y-Axis of the text is
obj.renderY = (obj.renderY * (speed - 1) + offset) / speed and this is frame dependent and I haven’t figured out how I would implement deltaTime into it properly most of the times I’ve tried it just breaks it.
The offset is just equal to
2 + count * (fontHeight + 1) I don’t know if that would help but sure I’ll include it anyway. Thanks for taking your time and reading this post.
Example of trying to animate the texts movement:
float speed = 14; obj.renderY = (obj.renderY * (speed - 1) + offset) / speed
Leave an answer