This is the second day I am going at this, and not getting anywhere. I need help.
I am trying to create a sprites at different places, but at different intervals. In other words, I don’t want them to appear all at the same time.
I already have their positions, it’s just a matter of placing them.
I just need a slight delay between each placement, but my efforts at doing this all fail, and I cannot find a single example on the internet.
spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend);
for (int i = 0; i < 111; i++)
{
int n = 0;
while (n < 30) { n += 1; } // fail
xx = objPosX[aArray[i]]; yy = objPosY[aArray[i]];
spriteBatch.Draw(obj[i], new Vector2(xx, yy), rect0,
Color.Blue, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.1f);
}
spriteBatch.End();
…Appreciate any help in getting this done.