I am making a fireball, which is moving to a mouse clicked position. The fireball sprite is already moving to the postion, but I can't see the fireball fly. I want to see, that the fireball "flys" to the postion?
here is my monogame code, written in c#
protected override void Update(GameTime gameTime)
{
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Escape))
Exit();
// TODO: Add your update logic here
var CurrentMouseState = Mouse.GetState();
PreviousMouseState = CurrentMouseState;
if (CurrentMouseState.LeftButton == ButtonState.Pressed)
{
ballPosition = new Vector2(CurrentMouseState.X, CurrentMouseState.Y);
}
base.Update(gameTime);
}
Could anybody help me? I didn't find help in other questions.