PRo-Beaniie
Well-known member
- Joined
- Mar 17, 2011
- Messages
- 55
- Programming Experience
- 3-5
Hey Guys,
I had some trouble a while back with my progress bars exeeding their maximum sizes. I though I had fixed the problem but obviously I was wrong every time the maximum size is exeeded the application enteres debugging mode .... this is really frustrating as the progress bars are a major factor in the game...
What I have is one progress bar which is linked to a clock the clock which ticks up to 1:30 and the game then ends. I also have another progress bar showing the health of the shooter.
I have a series of collision codes set up which are linked to these progress bars, that add to them and take from them.
I have tried re-routing the overload so that if it cannot add no more to the progress bars it adds nothing to them. i could really use some help with this....
Any Ideas ....
I had some trouble a while back with my progress bars exeeding their maximum sizes. I though I had fixed the problem but obviously I was wrong every time the maximum size is exeeded the application enteres debugging mode .... this is really frustrating as the progress bars are a major factor in the game...
What I have is one progress bar which is linked to a clock the clock which ticks up to 1:30 and the game then ends. I also have another progress bar showing the health of the shooter.
I have a series of collision codes set up which are linked to these progress bars, that add to them and take from them.
VB.NET:
'Heath pick up collision code...
If (HPU.Top + HPU.Height >= Shooter.Top) And (HPU.Top <= Shooter.Top + Shooter.Height) And (HPU.Left + HPU.Width >= Shooter.Left) And (HPU.Left <= Shooter.Left + Shooter.Width) And HPU.Visible = True Then
HPU.Visible = False
HPU.Top = -100
status.Text = status.Text + 25
'This is the code in question...
[COLOR=red]HEALTHBAR.Value = HEALTHBAR.Value + 25[/COLOR]
Else
HEALTHBAR.Value = HEALTHBAR.Value + 0
End If
I have tried re-routing the overload so that if it cannot add no more to the progress bars it adds nothing to them. i could really use some help with this....
Any Ideas ....
Last edited: