I am getting this error: Invalid set index 'set_wait_time' (on base: 'null instance') with value of type 'float'.
when start()
is called.
duration
and frequency
are timers and child nodes.
const AMPLITUDE = 20
const DURATION = 0.2
const FREQUENCY = 15
func start():
$duration.set_wait_time = DURATION
$frequency.set_wait_time = 1/float(FREQUENCY)
$duration.start()
$frequency.start()
I am new so I'd greatly appreciate if you could help :D