So I'm trying to move a sprite to a specified position using Lerp, however, when I run my game the sprite just moves to one location between the two points and doesn't constantly move and I can't figure out why... I'm pretty sure its my 'amount' value but I have tried putting in a non-changing value and a value that changes with time.
In my code, the 'sprite1' is part of the components list. Here is my code:
public override void Update(GameTime gameTime)
sprite1.pos = Vector2.Lerp(new Vector2(destionion.pos.X - 40, destionion.pos.Y - 40), gridclass.cord[7,3].nodepos, 0.4f);
foreach (Components component in gamecomps)
Thanks for any help in advance!