private void AddEnemy() { //create the animation object Animation enemyAnimation = new Animation(); //Animation balloonEnemyAnimation = new Animation(); //initizlize theanimation with the correct ahimation information enemyAnimation.Initialize(enemyTexture, Vector2.Zero, 47, 61, 8, 30, Color.White, 1f, true); // balloonEnemyAnimation.Initialize(balloonEnemyTexture, Vector2.Zero, 47, 61, 8, 30, Color.White, 1f, true); //randomly generate the position of the enemy or later change this to a specific spot Vector2 position = new Vector2(ScreenManager.GraphicsDevice.Viewport.Width + enemyTexture.Width / 2, random.Next(100, ScreenManager.GraphicsDevice.Viewport.Height - 100)); // Vector2 balloonPosition = new Vector2(ScreenManager.GraphicsDevice.Viewport.Width + balloonEnemyTexture.Width / 2, randomEnemy.Next(100, ScreenManager.GraphicsDevice.Viewport.Height - 100)); //create an enemy Enemy enemy = new Enemy(); //Enemy balloonEnemy = new Enemy(); //initizlize the enemy enemy.Initialize(enemyAnimation, position); //balloonEnemy.Initialize(balloonEnemyAnimation, balloonPosition); // add the enemy to the active enemies list enemies.Add(enemy); //balloonEnemies.Add(balloonEnemy); }