Doing simple platformer game with LibGDX and Android. For me not a problem to do an animation with sprite sheets but I'm wondering about efficient way to do "static animation for map elements"... for example:
stars on the sky
moving grass
moving trees
Such kind of elements may be a lot on the map and I can define such object layer in my tiled map and inject all those animated elements when game started but in that case when map builded and all elements inserted these animated elements will be animated simultaneously even if they are outside of Game Camera. What the efficient way of doing multiple 2D animations for static map objects?