Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Prilat |
Hi, might be a stupid question but i could not find a way to do it
so i want an object to turn 180 degrees smoothly when a key is just pressed , the code below makes the object turn instantly,
if Input.is_action_just_pressed("turn"):
rotation_degrees.z += 180
i tried to use lerp but it would not work unless i hold or spam the key, again i’m new to godot and gamedev in general,some help would be amazing.