Get your own free workspace
View
 

UpdateProgressBar

Page history last edited by Gamemaster 3 years, 9 months ago

 

 

UpdateProgressBar

Usage:

                UpdateProgressBar(Actor, BarHandle, Value)

Description:

The UpdateProgressBar command updates the value of a progress bar previously created with CreateProgressBar.

Example:

                Function Main()
                        Player = Actor()
                        // Create a red progress bar displaying time remaining, count down 10 seconds
                        P = CreateProgressBar(Player, 255, 0, 0, 0.01, 0.48, 0.2, 0.04, 10, 10, "Time left")
                                Clicks = 10
                                .UpdateBar
                                        Clicks = Clicks - 1
                                        Delay(1000)
                                        UpdateProgressBar(Player, P, Clicks)
                                GoToIf(Clicks > 0, UpdateBar)
                        DeleteProgressBar(Player, P)
                        Return()
                End Function

Comments (0)

You don't have permission to comment on this page.