Ignore my scratchings!
This commit is contained in:
parent
150e703d29
commit
0bf60b7363
3 changed files with 101 additions and 8 deletions
|
|
@ -12,16 +12,11 @@ var spawn_readiness: bool = false
|
|||
@onready var start_pos = survivor_spawn.global_position
|
||||
|
||||
func _ready() -> void:
|
||||
spawn_readiness = false
|
||||
|
||||
func _physics_process(delta):
|
||||
if spawn_readiness == true:
|
||||
spawn_survivor()
|
||||
spawn_readiness = false
|
||||
start()
|
||||
|
||||
else:
|
||||
func start() -> void:
|
||||
spawn_readiness = true
|
||||
spawn_survivor()
|
||||
|
||||
#func _physics_process(delta):
|
||||
#if spawn_readiness == true:
|
||||
|
|
@ -37,7 +32,7 @@ func spawn_survivor():
|
|||
else:
|
||||
|
||||
var survivor_delay: float = randf_range(1, 2.5)
|
||||
|
||||
var start_variance = Vector3((randf_range(-1, 2)),0,0)
|
||||
|
||||
for x in range(survivors):
|
||||
var s = survivor.instantiate()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue