..this doesnt seem to work at all and the “.hide” function appears to not work at all. it’s really annoying. I have no idea whats going on here.
I could either have the close key - F - try and hide the image when it is displayed or try to have the Raycast hide the image when it is not colliding with the object.
Make sure to paste scripts instead of screen shots, very on-brand for your profile picture (love it btw)
func _on_interacted(_body) -> void:
$AudioStreamPlayer3D.play()
$pagedisplay.show()
# This doesn't wait for inputs, it check if "jump" is pressed *right now*
# only on the same frame the page is shown.
if Input.is_action_just_pressed("jump"):
$pagdisplay.hide()
I would make your interactable handle inputs through a _unhandled_input function, then disable it when the page isn’t shown