Can't handle BaseButton Release

saodedsaoded Posts: 2Member

Using Godot 3.2.1, I created a button for my 2D game.
I want it to display a popup while pressed and hide it on release (or mouse-leave).
I connected the signals (via interface, not the connect() method) and just made it print("down") and print("up") on botton_down and button_up respectively.
Both are printed as I press the button down ("up" comes before "down"), and none when I release.
Is this a known issue? Have I misunderstood how buttons are supposed to function?

Answers

  • MegalomaniakMegalomaniak Posts: 2,898Admin
    edited August 9

    show code? Also I don't think you want to use the BaseButton node but one of the derivatives.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file