![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | CatRass |
I want a dialogue box to pop up when I enter the specific area, and press the accept key (z in my case) but when I use my code, the dialogue doesn’t work. The dialogue pops up when I make my code have it pop up when I just enter the area, but not with the if statement. What am I doing wrong?
func _on_ComputerDetector_area_entered(area):
if Input.get_action_strength("ui_accept"):
$Speech.show()
Please use the Code-Sample formatting for your code (The { } above the text editor)
This makes your posts much more readable, and wont remove the underscores
whiteshampoo | 2020-06-25 08:27