Skip to main content
deleted 25 characters in body
Source Link
Kromster
  • 10.7k
  • 4
  • 54
  • 67

I have a screen class in libGDX. In this screen, I want to change a sprite's texture a certain number of times before the screen changes to a different screen class. I tried having a for loop in the render method, but that obviously didn't work as render is constantly called.

Can anyone help?

Thank you in advance!

I have a screen class in libGDX. In this screen, I want to change a sprite's texture a certain number of times before the screen changes to a different screen class. I tried having a for loop in the render method, but that obviously didn't work as render is constantly called.

Can anyone help?

Thank you in advance!

I have a screen class in libGDX. In this screen, I want to change a sprite's texture a certain number of times before the screen changes to a different screen class. I tried having a for loop in the render method, but that obviously didn't work as render is constantly called.

Can anyone help?

Source Link

Update Loop in libGDX

I have a screen class in libGDX. In this screen, I want to change a sprite's texture a certain number of times before the screen changes to a different screen class. I tried having a for loop in the render method, but that obviously didn't work as render is constantly called.

Can anyone help?

Thank you in advance!