what is the best way to run the engine physics a certain amount of times? I have the engine time scale set to zero and I want the game to unpause and repause for a set amount of physics ticks.
You could store a variable that counts down per frame.
var ticks_left: int = 100
func _physics_process(delta: float) -> void:
ticks_left -= 1
if ticks_left <= 0:
Engine.time_scale = 0.0
easiest solution of all time, thank you so much
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.