So I'm pretty new to XNA and C# in general but I'm running into a problem here. I'm just making this very basic "soccer game" and I have a collision event that when the player runs into the ball, the ball should stay in front of the player while they move around and what not.
But as soon as I run into the rectangle, the ball moves a little bit, but then the rectangle stays where it was and doesn't follow the ball..
Here's what I have..
Vector2 soccerBallPosition = new Vector2(0,0);
Update()
soccerBallBounds = new Rectangle(588, 338, 24, 24);
if (blueTeamCenter.blueTeamCenterBounds.Intersects(soccerBallBounds))
{
soccerBallPosition = new Vector2(blueTeamCenter.BTCmDirection.X + 32, blueTeamCenter.BTCmDirection.Y);
}
Draw()
spriteBatch.Draw(soccerBall, soccerBallBounds, null, Color.White, 0, soccerBallPosition, SpriteEffects.None, 0);