Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Heinz |
I’m new in godot and gdscript. I’m making a 2D tank game with tutorial on YT. Everything works fine, turret rotates with the movement of the mouse but it’s doing it too fast. So my question is: how can I limit the turret rotation speed? Also my second, less important question is: how I can limit rotation of the turret like in a tank destroyer?
Script that rotate the turret:
$Turret.look_at(get_global_mouse_position())
Sorry if there are errors in this question. English isn’t my first language.