Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | shadowkeeper47258 |
I’m new to game design, so for my first game, I decided to make a clicker game. The clicking works so far, but sometimes will register multiple clicks at once, and I was wondering if there was a way to fix that. Here’s the snippet involving the code if you need it.
func _on_Cursor_input_event(_viewport, _event, _shape_idx):
if Input.is_action_just_pressed("click"):
clicks += click_value