Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | DodoIta | |
Old Version | Published before Godot 3 was released. |
Hi!
I want a KinematicBody2D
to shoot and move towards a point not at the same time. I tried this inside the _fixed_process
callback updating the time elapsed using delta: firing works fine but calling the move
function moves the sprite really fast, and I can’t seem to slow it down. This is the code I use for motion:
var movement = direction.normalized() * speed
move(movement)
where speed
is set at 1.0. Decreasing it only reduces the distance walked, not its speed. Can anyone help me fix this behviour? It looks like a simple issue but I have few experience with Godot