func _on_input_event(event: InputEvent) -> void:
if event.is_action_just_pressed("mb_left"):
pass
if event.is_action_just_pressed("mb_right"):
Gm.money += 100
$"../..".queue_free()
written code is attached to an area2d and worked previously however it has started returning this and im not sure why?
E 0:00:04:0108 emit_signalp: Error calling from signal 'input_event' to callable: 'Area2D(select.gd)::_on_input_event': Method expected 1 arguments, but called with 3.
<C++ Source> core/object/object.cpp:1200 @ emit_signalp()