var index = 0
var array = ["text1", "text2", "text3", "text4"]
func _process(delta):
if Input.is_action_just_pressed("ui_accept"):
print(array[index]) #or $Label.text = String(array[index]) if you have a label
index+=1
if index == 4:
index = 0 #reset to beginning