I got the mouse event using RigidBody2d, if you use RigidBody2d you get an option in Inspector tab named "Pickable" click to set it on, then in Node tab under CollisionObject2d text there is input_event(),connect this event to your script. A function will generate automatically like this on your script:
func _on_sprite_input_event( viewport, event, shape_idx ):