"for" in deltaTime

Godot Version



for a in 10:
    for i in 60:
        rotation_degrees += 1
        await get_tree().process_frane

How can I make this a delta?

This question may be over my head :smile: Can you explain it in a different way?

I want to convert a 60 degree rotation over 60 frames to a delta, meaning from frames to time.

I think I solved it. (not the actual code)

for i in 5:
    while create_timer.time < 1:
        rotation_degrees += deltatime

Do you have any suggestions for improvement?

I’ll leave this one to better mathy minds. Good luck.