+ 1
Pass Animationslist through Objects libgdx
Hey guys. I'm writing a game in Android and I'm desperate. I have a class that creates an ArrayList in it's constructor with different Animations out of a PNG with all animated movement pictures. Then I wrote a little Physics engine class. It's not static so I have to initialise it in my core game script. in this Physics engine I create another ArrayList for the created objects out of the animation class so every object could have another Animation if I pass another PNG.
2 ответов
+ 1
But if I try to batch.draw the animation of an object of the physic object out in the core/main script he doesn't event render other Textures. I couldn't get an error to be drawn.
+ 1
If I create the animation object directly in the core/main script it works. but that's not what I want 😫