Hi I am creating a simple game in VB where monsters randomly spawn in and disappear when you click on the picture box several times. Each enemy has a progress bar on top which should disappear when the enemy dies (when the enemies disappear).
The code I am trying is as follows:
Private Sub Form1...
progbarstart()
progbarshow()
End sub
Private Sub progbarstart()
ProgBarEnemy.Visible = false
End sub
Private Sub progbarshow()
If PicBoxEnemy.Visible = true then
ProgBarEnemy.Visible = true
Else
ProgBarEnemy.Visible = false
End If
End sub()
I think this all the info you will need there is more code which I think is irrelevant. Thanks in advance.