OK (I am using 3.4.4 on windows 11)
Now I have my Level as follows
Level-A
platform-A
platform-B --the platform I love to make disappear/reappear ---
Button [an Aear2d Sprite, collisionShape2d] about half on platform-A
exit [an Aear2d, Sprite, CollisionShape2D] at the end of platform-B
player
camera(a child of player)
I have tried placing the script file on platform-B
func physicsprocess(delta):
visible = false
it works the platform disappears
now when i tried to make the player walk the button
I connect the button signal to the script platform-B
then tried visible = true but it does not work.
I can use print("hello") and it prints hello in the output window