I am trying to build a 2D RTS game with Godot 3.
I've tried several things but I have zero idea of how to move the KinematicBody2D units that I have to the specific mouse co-ordinates when an area is clicked. I have implemented selection and I tried really hard, hours and hours, I can't get the movement done :/
This is the unit script without any of my movement attempts shown:
var selected = false setget set_selected
var max_health = 100
var hp = max_health
selected = value
$HealthBar.visible = value
func _on_input_event(viewport, event, shape_idx):
if not event is InputEventMouseButton:
if event.button_index == BUTTON_LEFT and not event.is_pressed():
Thank you so much in advance - I will be thankful for any help received.