Changed frame starting point from 0 to 1

Frame UI now start at 1 instead of 0. Also added a "Current frame:" label.
This commit is contained in:
OverloadedOrama 2019-09-10 02:30:43 +03:00
parent 6ee8095162
commit 0058edbc4a
4 changed files with 24 additions and 10 deletions

View file

@ -41,7 +41,7 @@ func _ready() -> void:
frame_button = load("res://FrameButton.tscn").instance()
frame_button.name = "Frame_%s" % frame
frame_button.get_node("FrameButton").frame = frame
frame_button.get_node("FrameID").text = str(frame)
frame_button.get_node("FrameID").text = str(frame + 1)
Global.frame_container.add_child(frame_button)
frame_texture_rect = Global.find_node_by_name(frame_button, "FrameTexture")