Hi, I'm learning Godot3. I want to control a KinematicBody2D with my mouse. I understand how to move my object with the mouse like this
var mouse = get_viewport().get_mouse_position()
However I want to controll the speed of my object. So I can frustrate the user with a slow movement.
First thought is to capture the mouse and be able to set the speed of the mouse. But I don't see anything for that.
I looked in to InputEventMouseMotion but can't find how to use it.
In the docs there is a setspeed. But InputEventMouseMotion.setspeed won't work.
Could somebody explain me this basic controll?