I can't get this button to work

Hey, guys! I’m new to Godot and I’m following the Godot course on Udemy, but when I tried to remake the application in the video, I’ve come to a dead end and I don’t know how to resolve this. I just made a the Loony Lips word game that’s incomplete, but there’s a function that doesn’t work. I want to make a button that inserts the text, but it’s not updating the text for some reason. The enter key works just fine, but the button does nothing.

Hi,

looking at you _on_TextureButton_pressed()

you currently are setting response to whats in the DisplayText, this is effectively taking whats already in there and repeating, so i would guess the buttons working correctly, its just not getting the correct text to allow you to see the difference

what you should have is
var response = $VBoxContainer/HBoxContainer/PlayerText.text

so you are getting the player entry box and using its text instead.

Afternoon,

did the suggestion I made help any getting it working?

Privacy & Terms