public MC(ContentManager content, GraphicsDevice device) : base(content.Load <Texture2D>("Images/Megaman/Idle/MegamanIdle00"), new Vector2(100, 10), Vector2.Zero, true, 0.0f, 1.5f, SpriteEffects.None, content.Load <SoundEffect>("Sounds/Shoot")) { //Sets each animation to their own key. Animation a = new Animation(); for (int i = 0; i < 6; i++) { a.AddCell(content.Load <Texture2D>(StringUtilities.NextImageName("Images/Megaman/Idle/MegamanIdle00", i))); } AddAnimation("Idle", a); a = new Animation(); for (int i = 0; i < 10; i++) { a.AddCell(content.Load <Texture2D>(StringUtilities.NextImageName("Images/Megaman/Run/MegamanRun00", i))); } AddAnimation("Run", a); a = new Animation(); for (int i = 0; i < 10; i++) { a.AddCell(content.Load <Texture2D>(StringUtilities.NextImageName("Images/Megaman/Jump/MegamanJump00", i))); } AddAnimation("Jump", a); a = new Animation(); for (int i = 0; i < 4; i++) { a.AddCell(content.Load <Texture2D>(StringUtilities.NextImageName("Images/Megaman/Shoot/MegamanShoot00", i))); } AddAnimation("Shoot", a); CurrentAnimation = "Idle"; animationDictionary["Idle"].LoopAll(1.5f); }