Using visual studio 2015 I use a picture box as a player and have it move up, down, left and right. When the picture box moves it shrinks and then looks like it teleports. That is not what it is supposed to do. How do I properly get the picture box to change whenever I press the wasd keys?
if (e.KeyCode == Keys.D)
{
x += 6;
playerBox.Image = Properties.Resources.playerRight;
}
//moves player right and changes the image