The thing is there are 3 shapes in my picture box a circle(Ellipse) and 2 Rectangles i want to only invalidate the circle is there a way to do that.
The circle goes up and down while rectangles move towards the left when the rectangles disappear 2 more show up
The first para is me making the colour and graphics
The second para is making the bird
the third para is me making 2 opposite walls which will always have space betweem them
However when i use my UpdateScreen function to make the bird move and create a video affect the bird moves however the walls move and respawn making it a jittery mess
A visual representation
A visual representation
https://youtu.be/zYg4GA5XeMw
What I have tried:
i have tried putting circle and rectangle in different methods when they are called but the command i use Canvas.Invalidate (Canvas being picture box) hence it refreshes the whole picture box
SolidBrush Yellow = new SolidBrush(Color.Yellow);
Graphics Canvas = e.Graphics;
Canvas.FillEllipse(Yellow, Bird.X, Bird.Y, Settings.WidthBird, Settings.HeightBird);
int MAxHeight = PbCanvas.Size.Height;
int MH = MAxHeight - 80;
int HeightD = random.Next(0, MAxHeight - 80);
int HeightU = MH - HeightD;
int Bottom = PbCanvas.Bottom;
new Settings();
Canvas.FillRectangle(Black, X, 0, 50, HeightU);
Canvas.FillRectangle(Black, X, Bottom - HeightD, 50, HeightD);