I have twelve enemies in an ArrayList
and I want to delay the batch.draw
for each enemy. I tried the following code in the render
method but it just makes the sprites flicker. I am using libgdx
. Please help ;(
for (int i = 0; i < list.size(); i++)
{
fireDelay -= Gdx.graphics.getDeltaTime();
if (fireDelay <= 0)
{
batch.draw(list.get(i)//..etc)
fireDelay += 0.2;
}
}