Falling particles help
Go to solution
Solved by dialgarocksful,
Anyways, I found the answer. Turns out, I also need to set the Y-position in the Update method
protected override void Update(GameTime gameTime) { for (arrayCtr = 0; arrayCtr < snowRect.Length; arrayCtr++) { randY[arrayCtr]++; if (snowRect[arrayCtr].Y > 770) { randX[arrayCtr] = rnd.Next(0, 1366); randY[arrayCtr] = -5; } snowRect[arrayCtr] = new Rectangle(randX[arrayCtr], randY[arrayCtr], 10, 10); } base.Update(gameTime); }
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now