Previously when making games I have just been using a Vector2 as the sprites position and altering that for movement, i.e.:
if(right key pressed) Position.X += movementspeed * gametime...;
However I now have the need to use a velocity vector for movement. So far what i'm doing is:
if(right key pressed) Velocity.X = movementspeed * gametime...; ... Position += Velocity; Velocity = Vector2.Zero; // Set velocity to 0
Is this how Velocity is implemented? I.e. setting it to a zero vector after each call of update?
Edit: When I stop pressing the key the sprite must stop moving, hence setting the velocity to zero.