private void Form1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawImage(ship, 350 + x, 530);
e.Graphics.DrawImage(bullet, 375 + x, 520 + y);
e.Graphics.DrawImage(bug_one, 350, 0);
if (draw_flag == false && y <= -510)
{
e.Graphics.DrawImage(coll, 350, 0);
}
else if(draw_flag==true)
{
e.Graphics.DrawImage(black, 350, 0);
}
}
int count = 0;
private void timer2_Tick(object sender, EventArgs e)
{
if(count %2==0)
{
draw_flag = false;
}
else
{
draw_flag = true;
}
count++;
}
well I have got my code to blink on and off, it almost does what I want. I have worked on my timer function.