Hi, I would like to create a system that shoots at the start every second 1 Bullet, all the more, the longer the player survives, the more balls spawn at shorter intervals
InvokeRepeating(“InstantiateASphere”, 1f, 1f);
Hi, I would like to create a system that shoots at the start every second 1 Bullet, all the more, the longer the player survives, the more balls spawn at shorter intervals
InvokeRepeating(“InstantiateASphere”, 1f, 1f);
Look into Coroutines. You can easily create coroutines that run forever, waiting a certain amount of time before running again via the yield return new WaitForSeconds(x);
statement. Your coroutine could adjust its wait time, and behavior, based on the current conditions of your scene at the moment each pass is being evaluated.
Can you show me an Example?