need help

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
lonestar888





Posts: 22
Joined: Fri Feb 03, 2006 4:23 pm

need help

Post by lonestar888 »

How do I get the progress bar to be fake? How do you get it to look like it is loading, when it isnt?
FIRST AI IN MULTIPLAYER MOD!
Mod for fame, not for fun.
xxANTMANxx





Posts: 108
Joined: Sat May 07, 2005 8:21 pm
Contact:

Post by xxANTMANxx »

just set the progressbar maximum to 100 or somthing of a good number i think that is the best to work with

then set the minimum to 0

so

ProgressBar1.Maximum = 100
ProgressBar1.Minimum = 0
ProgressBar1.Value = 1

then just increase the value every sec or so with a timer

then once you hit 100 just do

If ProgressBar1.Value = 100 Then
ProgressBar1.Value = 0
End If

that will reset it so it wont go over

thats all the basics all you need to do now is mess with it till you find something you like

good luck :D
lonestar888





Posts: 22
Joined: Fri Feb 03, 2006 4:23 pm

Post by lonestar888 »

Public Class Form1

Private Sub ProgressBar1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ProgressBar1.Click
ProgressBar1.Maximum = 100
ProgressBar1.Minimum = 0
ProgressBar1.Value = 1
If ProgressBar1.Value = 100 Then
ProgressBar1.Value = 0
End If

End Sub
End Class

Is that what I have to do? Is that right?
FIRST AI IN MULTIPLAYER MOD!
Mod for fame, not for fun.
xxANTMANxx





Posts: 108
Joined: Sat May 07, 2005 8:21 pm
Contact:

Post by xxANTMANxx »

no you would have to use a timer to make it go up each sec because the way it is now will just make it go to 1
Post Reply