CozyPixelStudio/Scripts/FrameButton.gd

7 lines
125 B
GDScript

extends Button
var frame := 0
func _on_FrameButton_pressed() -> void:
Global.current_frame = frame
Global.change_frame()