• 2D
  • how to have Godot detect a button that has been pressed more than once,

To Whomever reads this,

Is there a way have Godot know I have pressed a button more than once? Or is it better just to use an index ? I'm trying to implement a mechanic where the player does different moves based on the # of times left mouse button is clicked (Ex: Basic punch if one, Full combo if 2 or more)

Currently, I just have Input.is_action_just_pressed("ui_mouse_left") which only registers the click once.

Well you just would have an integer variable (on the class/script level) that starts at zero and is added each time a mouse is pressed.

var times_clicked = 0

# when mouse is clicked
times_clicked += 1

if times_clicked <= 1:
    # punch
else:
    # combo