Hi i want a shape to move when up / down is pressed
if ((Event.Type == Event.KeyPressed) && (Event.Key.Code == Key::Up))
{
Polygon.Move(0,-5);
//Polygon.Rotate(15);
}
if ((Event.Type == Event.KeyPressed) && (Event.Key.Code == Key::Down))
{
Polygon.Move(0,5);
//Polygon.Rotate(15);
}
but it flickers how can i make it move smoothly?