first of all sorry for the not really clear title but i hope you will get what i mean.
i'm currently doing the menu for my game and wanted to ask you something about the code:
I know that this can't work because right after it sets the sprite to invisible it gets "detected by the next condition" and set to visible again because the key was released before.
But what i want is that with every press of the button the sprite gets visible if its invisible and if its already visible it gets invisible.
so I wanted to ask if there is any action that "says" start reading the code from above again without looking any further in the code, so that i can place this action right after the set visible/invisible action.
I hope i could point out what i meant.