Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | dinopop |
Here is my code so far and it is randomly moving at every tick of the game, but I want it to move preferably every 1 to 2 seconds:
extends StaticBody
var rng = 0
var speed = 0.5
func _process(delta):
randomize()
rng = rand_range(-30.0, 30.0)
translate(Vector3(rng,0,rng)*delta)