I'm using a single timer that can spawn mobs & coins on a random location around my player.
How do I change the timer's wait time 0.5s for mobs and then 5s for coins?
export (PackedScene) var mobscene
export (PackedScene) var coinscene
func _ready():
randomize()
func onSpawnTimer_timeout():
var rng = RandomNumberGenerator.new()
rng.randomize()
$Player/MobPath/MobSpawnLocation.offset = rng.randi_range(0, 6000)
var mob = mob_scene.instance()
var coin = coin_scene.instance()
mob.global_position = $Player/MobPath/MobSpawnLocation.global_position
add_child(mob)
coin.global_position = $Player/MobPath/MobSpawnLocation.global_position
add_child(coin)