error: marioimg cannot be null
Private Sub Level1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
marioimg.MakeTransparent(Color.Lime)
e.Graphics.DrawImage(New Bitmap(marioimg), pt)
End Sub
Private Sub Level1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
SetStyle(ControlStyles.AllPaintingInWmPaint, True) This will lower the flicker
SetSTyle(ControlStyles.DoubleBuffer, True) This will lower it too
pt = New Point(20, 300) starting point
marioimage = "marioright0.bmp" starting pic
imagecount = 0 starting piccount
flyimagecount = -1 starting flypiccount
jumpinc = 5 pixels on jump increase
End Sub
End Class