Skip to content

Monogame Animated Sprite 🎯 Recent

spriteBatch.Draw(Texture, destinationRectangle, sourceRectangle, Color.White);

using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; monogame animated sprite

_frames.Add(new Rectangle(i * frameWidth, 0, frameWidth, frameHeight)); spriteBatch

Texture = texture; Rows = rows; Columns = columns; millisecondsPerFrame = frameSpeed; _frames.Add(new Rectangle(i * frameWidth