I am trying to make a slender-like page system but the pages arent getting picked up and I'm not sure whats wrong

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By shylock15

Im not sure if im doing this correctly at all but ive been trying to have 4 seperate papers as 4 seperate areas and everytime i hit one it should disappear and bring up an image on the screen, if I knew what I was doing that is. so far I’ve tried to use body entered and things like that but nothing seems to work. Here is an example from the first page I have

extends Area

onready var page1image = $page1_image

func _on_page1_body_entered(body):
if body.get_name() == “player”:

Im just confused sorry if I havent given enough info, just let me know if you can help

:bust_in_silhouette: Reply From: Gluon

Well its very hard to answer this, there isnt a lot of info here to diagnose the issue and the code isnt formatted so I cannot see if formatting issues are a potential problem. Is this in a canvas layer? I notice you are using a .show() function, normally I would make something visilbe with a line like this

$nodename.visible = true

so might be worth trying this but as I say hard to diagnose with the info here so no promises this would work.