Loading progress

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JulioYagami

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

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

p7f | 2018-12-13 12:57

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.

JulioYagami | 2018-12-13 13:39