This page is out of date

You've reached a page on the Ren'Py wiki. Due to massive spam, the wiki hasn't been updated in over 5 years, and much of the information here is very out of date. We've kept it because some of it is of historic interest, but all the information relevant to modern versions of Ren'Py has been moved elsewhere.

Some places to look are:

Please do not create new links to this page.


ui.autobar

Creates a bar (with a range of range) that automatically moves from start to end in time seconds.

# Shows a bar at the top of the screen that automatically tracks the score variable, animating as it does.

init python:
    def overlay():
        global old_score       

        ui.hbox()
        ui.text("Score: ")
        ui.autobar(100, old_score, score, 1.0)
        ui.close()

        old_score = score

    config.overlay_functions.append(overlay)

label start:
    $ score = old_score = 0

    "You have zero points."

    $ score += 10

    "Now you have ten more points."

Category:New in 6.9.0