Input(event) function, not working

Godot Version

4

Question

` hey so i am making a game, and i have tried to implement a pause menu. here is the programing

extends Control

func _input(event):
print(“Prob,func”)
if event.is_action_just_pressed(“pause”):
visible = !visible
visibleCheck()
print(“Prob,if”)

func visibleCheck():
self.visible = visible

it appears that my input event does not do the print test and justs sits there instead, if anyone has any ideas or questions that could help me or others that would be great to hear `

Try this…

Input.is_action_just_pressed(“pause”)

put that where???

i see let me try it

it still doesn’t work

Take the code out of the input function, and place it in a process function

Is your Control node set to Always process?