How do I do this in Godot 3.2?

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

I was following a tutorial in an older version of Godot, and I was getting the error:

Invalid call to function ‘set_hidden’ in base ‘Sprite’. Expected 0 arguments

What is the current version of this function? I tried changing to some other things like ‘hide’ but that wasn’t working.

:bust_in_silhouette: Reply From: kidscancode

hide() and show() work perfectly fine on all CanvasItem nodes, which includes Sprite.

You can also use the visible property, ie:

visible = false

If you’re still having trouble, you’ll have to show what you actually wrote that isn’t working.