can someone please help me with this?

Godot Version

4.3

Question

im trying to make a screen in my game open via keypress. but whatever i tried nothing works as i intended. change_scene_to_file() command resets the game. open and close statements make the buttons dissapear and the visible function makes the buttons visible all the time. im losing it over this someone please help

You will have to post some of your code, changing visibilty seems like your best option. Can you specify what feature you want to create? A pause menu, inventory screen?

1 Like

i want to create a crafting screen

heres the code that makes it “work”

if Input.is_action_just_pressed(“open_crafter”):
visible = true
print(“crafter opened”)
if Input.is_action_just_pressed(“close_crafter”):
visible = false
print(“crafter closed”)