Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Control
- @onready var loading_bar: ProgressBar = %LoadingBar
- func _LoadingScreen():
- while(loading_bar.value < 100): //This is where my error is (loading_bar.value is null) but it should be 0.
- loading_bar.value += 1
- await get_tree().create_timer(0.3).timout;
- print("Game Loaded")
- func _enter_tree() -> void:
- _LoadingScreen()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement