0 votes

It is a question about math.

func _delta():
    var actual = load_id + 1.0
    var max_size = to_be_loaded.size()
    var percent = (actual / max_size) * 100
    actual_percent += 1
    $label.text = "Loading... " + str(round(actual_percent)) + "%"
    $other_timer.wait_time = interval / percent
    $other_timer.start()
in Engine by (673 points)

What is the problem? You need to be more specific please.

So I'm making a loading screen it's working for now but I'm having trouble with the progress percentage. It's like I have an AnimationPlayer with a discrete and non-continuous animation (which is what I want it to look like). I think I have to use the delta in a processing function.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.