self means current instance, it is same with this in another languages.
Wow… so let me try to understand…
the last line ‘connect’ the pressed state of “button” with the function declared at second line. It connect the function to a trigger. Ok.
But what is " !get_node(“Sprite”).is_hidden() " doing exactly ?
Is it a way to flip/flap visible and hidden according to current state of the “Sprite” ?
( Just starting with Godot, aka total noob as would say friendlyappretice )
Graphitik | 2017-09-05 00:51
Thanks for the reply @volzhs. And yep Graphitik it is to do as you’ve written